enchanted_outlines-0.1.4.jar
Curse Maven Snippet
What's new
v0.1.4 (2026-08-08)
🛠️ Fix: Elytra Outline Misalignment with FA+Player & EMF Resource Packs
- Issue: When using the FA+Player v1.1 resource pack (which includes
emf/cem/elytra.jem), the elytra outline would drift out of sync with the actual wing model. - Root Cause: In Minecraft 1.21.1,
ElytraLayerfetches theElytraModelviaEntityModelSet.bakeLayer(ModelLayers.ELYTRA). EMF (Entity Model Features) intercepts this call and swaps in a custom model tree from the.jemfile (moving wing geometry into custom EMF sub-parts with bespoke animations). Our previous approach tried to mirror the entire render pipeline—copyPropertiesTo,setupAnim, and even manually triggering EMF animations via reflection atElytraLayer#renderHEAD. Even the tiniest deviation from the native render path caused the outline to desync from the actual pose. - Fix: Moved the outline injection point to
ElytraLayer#renderTAIL. The native render flow istranslate(0,0,0.125) → copyPropertiesTo → setupAnim → renderToBuffer, with EMF's custom animations applied internally duringrenderToBuffer → EMFModelPartWithState.render → root.animate(). At TAIL, the native render is complete andelytraModelholds the final pose used for the actual wings. We simply reuse that exact pose to render the outline—no logic duplication, no reflection, 100% sync with the base model. Depth testing handles the rest: the base model (cutout, drawn first, writes depth) occludes the inner surface of the expanded outline shell, while the outline (translucent, drawn second) only shows the outer edge without bleeding onto the base model. - Removed: The old HEAD approach's manual
setupAnimreplication and EMFgetRoot()/animate()reflection calls (no longer needed). - Compatibility Note: This feature has zero hard dependencies on EMF or any other mod (like ETF). We don't reference a single EMF class, and
neoforge.mods.tomlonly lists NeoForge/Minecraft as required. When EMF is present, the outline automatically syncs to its custom animations; when absent, it falls back to vanilla poses—one codebase, both scenarios. - Files Changed:
src/main/java/com/enchantedoutlines/mod/mixin/ElytraLayerMixin.java
Fly true. Your wings and their glow are finally one. 🪽✨
This mod has no additional files

