From 58fe23d33005d8998c51902c1bbacd1ee9c28f0f Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sat, 10 Oct 2026 19:58:56 +0200 Subject: [PATCH] Match vanilla entity model poses on every compared layer The warden's walk, idle wobble and pulsating spots now use Mth's sine table as WardenModel and WardenRenderer do, and baby sniffers no longer apply SnifferAnimation.BABY_TRANSFORM: SnifferRenderer wraps the baby geometry in a plain SnifferModel, so that animation never runs in 26.3. The harness now drives the illusioner through explicit arm poses like the other illagers, and the oracle shows its hat as IllusionerRenderer does. All 132 compared layers match over 3,876 cases. Co-Authored-By: Claude Opus 5.5 --- .../examples/entity_anim_fixture.rs | 2 +- crates/horizon-client/src/mobs/sniffer.rs | 7 ++----- crates/horizon-client/src/mobs/warden.rs | 17 ++++++++++------- .../parity/VanillaEntityAnimOracle.java | 2 ++ tools/test_entity_model_parity.py | 2 +- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/crates/horizon-client/examples/entity_anim_fixture.rs b/crates/horizon-client/examples/entity_anim_fixture.rs index df13cbb61..51d877630 100644 --- a/crates/horizon-client/examples/entity_anim_fixture.rs +++ b/crates/horizon-client/examples/entity_anim_fixture.rs @@ -406,7 +406,7 @@ fn main() -> horizon_client::Result<()> { num("ticksUsingItem"), ); } - Species::Evoker | Species::Pillager | Species::Vindicator => { + Species::Evoker | Species::Illusioner | Species::Pillager | Species::Vindicator => { use horizon_client::mobs::illager::{ArmPose, anim_pose}; let pose = match case["armPose"].as_str() { Some("CROSSED") => ArmPose::Crossed, diff --git a/crates/horizon-client/src/mobs/sniffer.rs b/crates/horizon-client/src/mobs/sniffer.rs index 398fabd21..e8049b2d3 100644 --- a/crates/horizon-client/src/mobs/sniffer.rs +++ b/crates/horizon-client/src/mobs/sniffer.rs @@ -630,11 +630,8 @@ pub fn anim(m: &Mob, s: &State, p: &mut Poses, animations: &HashMap [(&'static str, &'static str, f ( "warden#pulsating_spots", "entity/warden/warden_pulsating_spots_1", - ((age * 0.045).cos() * 0.25).max(0.0), + ((age * 0.045).mcos() * 0.25).max(0.0), ), ( "warden#pulsating_spots", "entity/warden/warden_pulsating_spots_2", - ((age * 0.045 + PI).cos() * 0.25).max(0.0), + ((age * 0.045 + PI).mcos() * 0.25).max(0.0), ), ( "warden#tendrils", diff --git a/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaEntityAnimOracle.java b/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaEntityAnimOracle.java index a99361dc2..c9e04db44 100644 --- a/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaEntityAnimOracle.java +++ b/mods/horizon/src/test/java/dev/horizonlab/parity/VanillaEntityAnimOracle.java @@ -174,6 +174,8 @@ public final class VanillaEntityAnimOracle { var cls = findClass(head[1]); var baked = roots.get(location).bakeRoot(); var model = (net.minecraft.client.model.Model) cls.getConstructor(ModelPart.class).newInstance(baked); + // IllusionerRenderer shows the hat IllagerModel hides. + if (layer.equals("minecraft:illusioner#main")) ((net.minecraft.client.model.monster.illager.IllagerModel) (Object) model).getHat().visible = true; var type = stateClass(cls); var state = (EntityRenderState) type.getDeclaredConstructor().newInstance(); state.getClass(); diff --git a/tools/test_entity_model_parity.py b/tools/test_entity_model_parity.py index ed83a3b0e..9f5d1090a 100644 --- a/tools/test_entity_model_parity.py +++ b/tools/test_entity_model_parity.py @@ -157,7 +157,7 @@ SPECIES = { 'piglin': PIGLIN, 'piglin_brute': PIGLIN, 'cat': FELINE, 'ocelot': FELINE, 'creaking': [{'canMove': F}, {'attackAnimationState': 2}, {'invulnerabilityAnimationState': 3}, {'deathAnimationState': 1}], - 'evoker': ILLAGER, 'pillager': ILLAGER, 'vindicator': ILLAGER, + 'evoker': ILLAGER, 'pillager': ILLAGER, 'vindicator': ILLAGER, 'illusioner': ILLAGER, 'sheep': [{'eatTick': t} for t in (2, 10, 36, 39)], 'guardian': [{'tailAnimation': 4.0, 'spikesAnimation': 0.3}, {'tailAnimation': 0.0, 'spikesAnimation': 0.0}], 'elder_guardian': [{'tailAnimation': 4.0, 'spikesAnimation': 0.3}],