
Sable Sub-Level Collision Bounds Guard
Fixes a permanent freeze caused by Sable sub-levels. When a sub-level's collision region balloons to millions of blocks, the game hangs on a single tick that never finishes — on a server, nobody can play until it's restarted; in singleplayer, the world locks up the same way. This mod contains the oversized bounds and motion before they reach the collision code that loops on them.
This is a companion mod for Sable — not a standalone mod and not a replacement for Sable. It only guards Sable's sub-level collision, so the original Sable mod (2.0+) must be installed; without Sable, it does nothing.
Built and proven against a real incident (a single item entity froze a tick for 413+ seconds), with an A/B negative control on a live dedicated server: without the guard the incident sweep never returns; with it, the sweep is refused in 11 ms.
The problem
A Sable sub-level's collision region is built by inverse-transforming the entity's swept box into the sub-level's local frame at its previous pose and again at its current pose, then unioning the two. When those poses are far apart, the union spans the gap between them — millions of blocks.
Sable itself refuses to walk such a region (watch for Enormous local sub-level collision bounds, quitting. in the log), but that only skips Sable's own block walk. The oversized motion is still returned, handed to vanilla Entity.collide(), expanded into a swept AABB, and walked by Lithium's uncapped ChunkAwareBlockCollisionSweeper — effectively forever.
What the guard does
- Narrows the pose union — when the union of the entity box at the sub-level's previous and current poses is implausibly large, it keeps the current-pose half. Collision against where the sub-level actually is keeps working; the sweep back to where it used to be is what is given up.
- Contains the returned motion — clamps Sable's returned motion before it leaves, so vanilla collision never receives a multi-million-block sweep.
- Caps the collision region — a safety net under the two fixes above.
- Refuses an oversized Lithium sweep — a second safety net at the exact loop that froze. Applies only when Lithium is present.
Nothing destructive: no pose, bounds, blocks, NBT or entity is modified, and the world is never written.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.265 or above
- Sable 2.0 or above (required — the original Sable mod; this companion guard does nothing without it)
- Java 21
- Lithium 0.15+ (optional — its guard applies only when present)
Installation
Drop sableboundsguard-1.21.1-1.0.0.jar in the mods/ folder. Install on both client and server — the freeze also occurs in singleplayer. A client without the mod can still join a server that has it (displayTest = IGNORE_ALL_VERSION), and only the server strictly needs it, but matching installs are recommended. No configuration needed.
Limits (system properties)
sableboundsguard.maxMotion— default 64 blocks/ticksableboundsguard.maxSweepVolume— default 262144 blocks
Verification
- Host jars pinned by SHA-256 at build time; the build fails on a mismatch.
- Opt-in binding self-check (
-Dsableboundsguard.selfcheck=true) proves all four handlers attached and that every decision predicate accepts legitimate input and rejects the incident's shapes. - Reproducible jar — two consecutive clean builds produce identical bytes, so the recorded hash is meaningful evidence.
- 1.0.0 jar SHA-256:
3fb2e4e9e6d72cf4ffe0689306240b923bc1f2b8376697c9b1b3a4f27b8bbb2d
Source & license
Source, the full incident diagnosis, and the evidence logs: https://github.com/Vonix-Network/sable-collision-guard
Licensed LGPL-3.0-or-later.