Fix ender pearl stasis chambers on Folia
Filestasis-data.ymlFileconfig.ymlCommand/stasis listCommand/stasis reloadStasis chambers break on Folia because Folia deletes a thrown ender pearl as soon as its owner changes dimension, so when the trapdoor closes there is no pearl left to teleport anyone. Vanilla and Paper keep the pearl. Any fix has to stop depending on the pearl entity: remember the chamber when the pearl settles, and teleport the owner yourself when the chamber fires.
What players see
A player builds the usual chamber: a bubble column or a water cell, a trapdoor, and a way to flip it from far away. They throw a pearl in, walk through a nether portal, and later someone pulls the lever. On vanilla or Paper the owner comes home. On Folia nothing happens, and the pearl is gone from the chamber.
This is tracked as PaperMC/Folia issue #421, "Pearls get deleted when switching dimensions". The report tests it with no plugins installed and notes that Paper and vanilla keep the pearl, while Folia 1.21.11 deletes it once the player leaves the dimension. At the time of writing the issue is open.
Why Folia does this
Folia splits the world into regions that tick on their own threads. A thrown pearl belongs to the region it is in, and its owner belongs to whatever region they are standing in. When the pearl ticks and finds its owner is no longer in the same region, which is always the case after a dimension change, Folia removes the pearl. On Paper the whole world ticks on one thread, so the pearl can keep pointing at an owner anywhere.
There is a second, older reason a chamber can do nothing, and it applies to every server: if nobody is near the chamber, its chunk is unloaded, and redstone in an unloaded chunk never ticks. The lever is pulled, the signal never arrives.
What does not fix it
- Rebuilding the chamber. The design is fine. The pearl is removed by the server, not pushed out by water.
- Keeping the owner in the same dimension. It works, but it is the whole point of a stasis chamber that you can leave.
- Forcing the chunk loaded. A chunk loader keeps the redstone ticking, which fixes the second problem, but the pearl is still deleted.
So the fix has to accept that the pearl will disappear and keep the chamber alive without it.
How Ignite StasisFix keeps chambers working
Ignite StasisFix is a small plugin we wrote for exactly this. It treats the chamber, not the pearl, as the thing that matters:
- Every thrown pearl is watched on its own region thread.
- Filestasis-data.ymlA pearl that settles in one spot, inside water, a bubble column or a waterlogged block, is registered as a stasis and written to
stasis-data.yml. - When the pearl entity is later removed, the dimension-switch deletion included, the stored stasis stays.
- When a trapdoor, piston or redstone update touches the spot where the pearl sat, the plugin teleports the owner there with
teleportAsyncon the owner's own region.
A few details that matter on a real server:
- The original player-owned pearl is removed once the stasis is registered (
consume-registered-pearl), and an ownerless pearl is floated in its place for looks (respawn-visual-pearl). The visual pearl has no owner, so it can never teleport anyone. - Each stored chamber keeps its chunk loaded with a plugin chunk ticket (
keep-chamber-loaded), so the trigger still ticks while the owner is in the nether. One chunk per chamber; turn it off if you have thousands. - A chamber survives its owner's death and pulls them home after they respawn. If the owner is offline when it fires, the release is queued and they are teleported on their next join.
- A trigger only counts when a block really moves into the pearl's space one tick later, so a button pressed near a chamber or a chest opened next to it does nothing.
- Anything riding the owner is detached first (
detach-riders-before-teleport). Folia refuses to teleport an entity that is part of a vehicle stack (Folia issue #36), and a GSit sit stack is exactly that. With GSit installed the plugin uses GSit's own API. - A player can keep several chambers at once, because each stasis is keyed by its pearl.
On Paper there is no deletion bug, but the plugin still helps: chambers are stored on disk, so they survive a restart.
Set it up
Install the jar
Put the Ignite StasisFix jar in
plugins/on Folia or Paper 1.21 or newer, running Java 21. IgniteAPI is already inside the jar, so do not install it separately for this plugin.Start the server once
Fileconfig.ymlThe plugin writes
config.yml. Leavelicense-keyempty: the key is built into the jar you downloaded.Check the defaults
The defaults fit a normal water chamber.
require-liquid-anchorkeeps pearls wedged against a wall from counting.activation-radiusis 3.0 blocks, measured from the updated block to the pearl.triggersswitches redstone, piston and interact sources on or off one by one.Register a chamber
Command/stasis listThrow a pearl into a chamber and wait a couple of seconds. A pearl has to be watched for
minimum-tracked-ticks(30) and sit still near one spot forminimum-stationary-ticks(15) before it counts. Then run/stasis listand the chamber shows up with its owner, world and coordinates.Test it across dimensions
Command/stasis reloadGo through a portal, have someone flip the trapdoor (or use a timer circuit) and you should land back at the chamber. If nothing happens, set
debug: true, run/stasis reloadand watch the console while you test again.
The settings worth knowing
triggers:
redstone: true
piston: true
interact: true # a trapdoor, door or gate toggled by hand
activation-radius: 3.0
require-liquid-anchor: true
keep-stasis-on-pearl-removal: true
keep-chamber-loaded: true
chamber-reconcile-ticks: 100
detach-riders-before-teleport: true
purge-pending-release-on-startup: trueTwo of these change behaviour in a way players notice. keep-stasis-on-pearl-removal: false goes back to vanilla rules, where a chamber dies with its pearl. purge-pending-release-on-startup drops releases that were queued for an offline player and never claimed, on startup; active chambers are not touched.
Messages are MiniMessage strings under messages: in the same file, and every option has a comment above it.
Admin commands
| Command | What it does | Permission |
|---|---|---|
/stasis list | Every stored stasis: owner, world, coordinates, pending | ignitestasisfix.admin.list |
/stasis clear [player] | Clear all stored stasis, or one player's | ignitestasisfix.admin.clear |
/stasis reload | Reload config.yml | ignitestasisfix.admin.reload |
Permissionignitestasisfix.adminAll of them sit under ignitestasisfix.admin, which defaults to op.
For plugin developers
If your plugin has to stop a player from using their chambers for a while, set the ignitestasisfix-release-blocked metadata on the player. A refused release keeps the chamber stored and sends the release-blocked message, which you can leave empty to stay silent. A dragon egg plugin uses it so the egg carrier cannot pearl out.
If you write your own fix instead, the two rules from above are the whole job: never keep state on the pearl entity, and run every block read and every teleport on the region that owns that block or that player.
Getting it
Ignite StasisFix costs 6.99 EUR, paid once, for one server, from the shop or BuiltByBit. Keep an eye on issue #421: if Folia changes how it handles pearls, read its notes before you change anything on your side.