Spelunky is © 2008, 2009 Derek Yu and Mossmouth, LLC, and is used under the [Spelunky User License v1.1b](https://spelunky.ai/LICENSE.txt). spelunky.ai is an unofficial fan project, not affiliated with or endorsed by Mossmouth. The game and its assets may not be sold.

Music by George Buzinkai and Jonathan Perry; sound effects made in SFXR. From Spelunky Classic 1.1, © 2008, 2009 Derek Yu and Mossmouth, LLC.

# The mothership's barrier throwing items left

From the spelunky.ai wiki: <https://spelunky.ai/wiki/mothership-barrier-throws-left>. Verified against the spelunky.ai port [v0.1.11](https://github.com/851-labs/spelunky/releases/tag/v0.1.11) on 28 October 2026.

The mothership's barrier throwing items left is a quirk of Spelunky Classic in which an item from the Alien Boss's side is thrown on through it.

| Quirk     |                                                                                                                                                                                                                    |
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Status    | GML + Oracle                                                                                                                                                                                                       |
| Where     | [`objects/oBarrier/collision_oItem.gml:1-12`](https://spelunky.ai/wiki/source/objects/oBarrier/collision_oItem#L1-L12)                                                                                             |
| Pinned by | `fidelity/replays/ice-seed-63-barrier-through.txt`                                                                                                                                                                 |
| Row       | [docs/quirks.md §1, Bugs and leftovers in the 1.1 source](https://github.com/851-labs/spelunky/blob/main/docs/quirks.md#1-bugs-and-leftovers-in-the-11-source): “The mothership's barrier throws every item left.” |

The [mothership](https://spelunky.ai/wiki/mothership)'s barrier keeps the player away from the [Alien Boss](https://spelunky.ai/wiki/alien-boss), throwing him back
the way he came. It throws items too, but always to the left, the side the player comes from, whichever side the
item reaches it from. So an item from the boss's side, behind the barrier, is thrown on through it.

## What happens

Behind the Alien Boss, a bomb at the foot of a shaft the player has dug breaks the rock holding the free
[Jetpack](https://spelunky.ai/wiki/jetpack) and blows it left. It hits the Alien Boss on its way, costing it a hit point, and reaches the
barrier, which throws it on to the left, and it lands beyond the barrier, which still stands[^1].

**Clip: The mothership's barrier throws an item on through it.** Behind the Alien Boss, a bomb at the foot of a shaft the player has dug breaks the rock holding the free Jetpack and blows it left. It hits the Alien Boss on its way, costing it a hit point, and reaches the barrier, which throws it on to the left, and it lands beyond the barrier, which still stands. ([video](https://spelunky.ai/wiki/media/clips/quirks/barrier-item-thrown-through/clip.mp4))

## Why

The barrier's collision with an item lights a [Bomb](https://spelunky.ai/wiki/bomb), and then throws the item, whatever it is:

```gml objects/oBarrier/collision_oItem.gml:11-12
other.xVel = -rand(4,6);
other.yVel = -2;
```

[`objects/oBarrier/collision_oItem.gml:11-12`](https://spelunky.ai/wiki/source/objects/oBarrier/collision_oItem#L11-L12), from `spelunky.gmk`, Spelunky Classic 1.1's source, © 2008, 2009 Derek Yu and Mossmouth, LLC ([Spelunky User License v1.1b](https://spelunky.ai/LICENSE.txt)).

`xVel` is always negative, to the left. Its collision with the player tests which side he's on, and throws him away
from it:

```gml objects/oBarrier/collision_oCharacter.gml:6-9
    if (other.x < x)
        other.xVel = -6
    else
        other.xVel = 6
```

[`objects/oBarrier/collision_oCharacter.gml:6-9`](https://spelunky.ai/wiki/source/objects/oBarrier/collision_oCharacter#L6-L9), from `spelunky.gmk`, Spelunky Classic 1.1's source, © 2008, 2009 Derek Yu and Mossmouth, LLC ([Spelunky User License v1.1b](https://spelunky.ai/LICENSE.txt)).

The item's has no such test, so an item that reaches the barrier from the right, the boss's side, is thrown on in
the way it was going[^2].

## Reproducing it

Get an item behind the barrier and send it left into it, with the barrier still standing. That's the hard part:
the barrier comes down when the Alien Boss dies[^3], and
when its emitter is destroyed: by an explosion, a bullet, or an item faster than 2 pixels a
step[^4][^5][^6], or once it's on screen with the block above it
gone[^7]. So bombs have to go off well clear of both. The replay, with
seed 63, reaches the mothership on level 10. Four bombs dig a shaft down the craft's right edge, and the last
breaks the rock holding the Jetpack and blows it left: it hits the boss, meets the barrier, which throws it on to
the left, and lands beyond it. The barrier, its emitter and the boss stand throughout[^8].

## In the port

The spelunky.ai port reproduces it exactly: it's in docs/quirks.md's list of the 1.1 source's bugs[^2], and the oracle's fingerprint of the replay pins the Jetpack's path. No option turns it off.

## FAQ

### Can an item get through the mothership's barrier?

From the [Alien Boss](https://spelunky.ai/wiki/alien-boss)'s side, yes. The barrier throws every item that touches it to the left, which sends one coming from the right on through it. One thrown from the left bounces back.

### Does the barrier throw the player the same way?

No. It throws the player away from it, to whichever side he came from, and takes a heart.

### Can you get the free Jetpack past the barrier without killing the Alien Boss?

Yes, if a blast sends it left into the barrier: the barrier throws it on. Bombs have to go off well clear of the boss and the barrier's emitter, as either one's end brings the barrier down.

## See also

- **Related:** [Mothership](https://spelunky.ai/wiki/mothership), [Alien Boss](https://spelunky.ai/wiki/alien-boss)

## References

[^1]: Clip quirks/barrier-item-thrown-through

[^2]: Quirk 1 (docs/quirks.md)

[^3]: [`objects/oAlienBoss/other_animation_end.gml:1-5`](https://spelunky.ai/wiki/source/objects/oAlienBoss/other_animation_end#L1-L5)

[^4]: [`objects/oExplosion/collision_oBarrierEmitter.gml:1`](https://spelunky.ai/wiki/source/objects/oExplosion/collision_oBarrierEmitter#L1)

[^5]: [`objects/oBarrierEmitter/collision_oBullet.gml:1`](https://spelunky.ai/wiki/source/objects/oBarrierEmitter/collision_oBullet#L1)

[^6]: [`objects/oBarrierEmitter/collision_oItem.gml:1-4`](https://spelunky.ai/wiki/source/objects/oBarrierEmitter/collision_oItem#L1-L4)

[^7]: [`objects/oBarrierEmitter/step.gml:1-5`](https://spelunky.ai/wiki/source/objects/oBarrierEmitter/step#L1-L5)

[^8]: Replay `fidelity/replays/ice-seed-63-barrier-through.txt`

### Source code

- [`objects/oBarrier/collision_oItem.gml`](https://spelunky.ai/wiki/source/objects/oBarrier/collision_oItem)
- [`objects/oBarrier/collision_oCharacter.gml`](https://spelunky.ai/wiki/source/objects/oBarrier/collision_oCharacter)
- [`objects/oBarrierEmitter/step.gml`](https://spelunky.ai/wiki/source/objects/oBarrierEmitter/step)
- [`objects/oBarrierEmitter/collision_oItem.gml`](https://spelunky.ai/wiki/source/objects/oBarrierEmitter/collision_oItem)
- [`objects/oBarrierEmitter/collision_oBullet.gml`](https://spelunky.ai/wiki/source/objects/oBarrierEmitter/collision_oBullet)
- [`objects/oExplosion/collision_oBarrierEmitter.gml`](https://spelunky.ai/wiki/source/objects/oExplosion/collision_oBarrierEmitter)
- [`objects/oAlienBoss/other_animation_end.gml`](https://spelunky.ai/wiki/source/objects/oAlienBoss/other_animation_end)
