Folia fix · Commissioned, now our product

Ignite StasisFix

On Folia, a pearl in a stasis chamber is deleted when its owner changes dimension (Folia issue #421). Ignite StasisFix stores each chamber on disk and treats that record as the truth, so the chamber still pulls its owner back after the pearl is gone.

#421Folia issue worked around
1,462lines of Java
6.99EUR in our shop

The problem

Stasis chambers are how survival players travel home. On Folia, ThrownEnderpearl#tick removes a pearl whose owner is no longer in the same region, which happens every time the owner goes to the Nether or the End. Vanilla and Paper keep the pearl, so on Folia every chamber broke the first time its owner left the dimension.

What we built

  1. 01Chambers stored in stasis-data.yml as soon as a pearl settles
  2. 02Triggers that still pull the owner back after the pearl entity is gone
  3. 03Chambers that survive the owner's death and bring them home after respawn
  4. 04Admin commands to list and clear stored chambers
  5. 05A hook so other plugins can block a release

Technical decisions

The calls that shaped the build, and why we made them.

  • Disk is the source of truth

    The plugin does not try to keep the pearl alive against Folia. It trusts the stored chamber location instead, so it does not matter what Folia does to the entity.

  • Only real chambers count

    A pearl only registers once it settles in water, a bubble column or a waterlogged block, and a trigger only fires when a block really touches the pearl one tick later. Pearls wedged against a wall are ignored.

  • Tracked where the pearl lives

    Each pearl is followed on its own region thread, and chambers are keyed by pearl rather than by player, so one player can keep several active.

Stack and size

Counted from the repository

Java
1,462 lines in 9 files
Platform
Folia or Paper 1.21+
Storage
stasis-data.yml
Config keys
11
  • Java 21
  • Folia
  • Paper 1.21
  • IgniteAPI
  • YAML

Outcome

Built for one server and now sold from our shop. On Paper, where pearls are not deleted, it simply makes stasis chambers last across restarts.

Need something like this?

Tell us what the server needs. You get a fixed price and a delivery date back, usually the same day.