A server-side companion fix for the Jaden's Nether Expansion entity-save crash.
Jaden's Nether Expansion 2.4.1 can crash the server with a Saving entity NBT error. When
an apparition possesses a gargoyle statue, the resulting possessed mob is created with a
null PossessionOf value — and when the entity is saved, that null is written with
CompoundTag.putString. Minecraft 1.21.1 rejects null string tags, the save throws, and
the server crashes. It only takes one converted gargoyle vessel in the world.
What this fix does
- Intercepts only that one null write: the null
PossessionOffield is left out of the saved NBT instead of crashing the save. - A small marker is saved with the entity so the null possession is restored exactly as JNE intended when the entity loads again — exorcism behaviour is unchanged (a null-possession vessel is still discarded, not converted to a skeleton).
- Real (non-null) possession values and every other NBT field pass through untouched.
- Existing affected entities are repaired by the save path itself — no entity deletion is needed.
Good to know
- This is a companion mod for Jaden's Nether Expansion — it is not a replacement and contains none of JNE's code. The original mod is required.
- JNE's own config option
apparitionsCanPossessGargoylesdoes not prevent this crash in 2.4.1 — that build never reads the setting before using the gargoyle goals — so turning it off is not a substitute for this fix. - This build targets JNE 2.4.1 exactly (the current release). If JNE updates and fixes the null write upstream, remove this mod.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.267 or newer
- Jaden's Nether Expansion 2.4.1
- Java 21
Installation
Server-side only. Put the jar in the server's mods folder alongside Jaden's Nether
Expansion. Clients joining the server do not need it.
Credits
Fix by Vonix Network. Jaden's Nether Expansion is by ThatJadenXgamer: https://www.curseforge.com/minecraft/mc-mods/jadens-nether-expansion
Licensed LGPL-3.0-or-later.