Register reachable entity item textures in the modern item atlas
All checks were successful
DuneRealms Plugin CI / plugins (push) Successful in 2m20s

This commit is contained in:
unimatrixgit 2026-11-29 14:16:25 +01:00
commit 67db68218c

View file

@ -0,0 +1,11 @@
# Jerboa display texture registration
The actual deployed central pack (SHA-256 `61931cc463933706fb391ce8aaff78138ff1377241e062aac000aa144242a10d`) contains all four jerboa item definitions, 3D models and `assets/dunerealms/textures/entity/jerboa.png`. The actual retained Terrain `FaunaModels` emits PAPER ItemDisplays with `dunerealms:entity/jerboa`, `_curled`, `_walk_left` and `_walk_right` item models. The owner's client log explicitly reports the shared `dunerealms:entity/jerboa` texture missing from these models.
The missing dependency is registration in the modern **item atlas**, not an absent PNG. The old builder scanned only `models/item/`; these models live under `models/entity/`. Their texture is outside the automatically discovered `item/` and `block/` directories, and the deployed item atlas had an empty explicit source list. File-reference closure alone did not catch this renderer dependency.
Resolve model references from the actual modern item definitions regardless of the target model directory. Register reachable custom sprites outside the automatic directories and reject missing item-atlas registrations in the build. The current pack adds exactly one explicit sprite, `dunerealms:entity/jerboa`, covering all four animations. The tiny-worm model uses existing vanilla block textures and requires no new custom sprite.
No artwork, PNG, model geometry, item identity, native entity behavior, GUI source, backend JAR, font or transport is changed. Chukka is a native Chicken in the actual retained implementation; it has no custom display-model emission. The suspected chicken appearance is not established as another missing model and is not silently given a new global entity reskin.
Validation: full pack closure/deterministic build, existing equipment/font/vanilla coverage, and a failing-then-passing fixture for an item definition targeting `models/entity/`. Compare the built ZIP against the prior pack: only `assets/minecraft/atlases/items.json` should differ. Actual client acceptance still requires the new pack to load and the missing-jerboa warning to disappear; source tests are not an in-game visual claim. Deploy using the existing immutable pack publisher and source-pinned pack configuration, retaining all working runtime JAR hashes.