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}],