diff --git a/crates/horizon-client/src/game/lan.rs b/crates/horizon-client/src/game/lan.rs index 3ef5473cc..1dd463fac 100644 --- a/crates/horizon-client/src/game/lan.rs +++ b/crates/horizon-client/src/game/lan.rs @@ -739,7 +739,7 @@ fn mob_meta( defaults.push((index, serializer::BOOLEAN, Value::Bool(true))); } } - // Enderman.DATA_CARRY_STATE. + // Enderman.DATA_CARRY_STATE and DATA_CREEPY (angry: the open mouth). "minecraft:enderman" => { if let Some(state) = e.carried { meta.push(( @@ -748,6 +748,10 @@ fn mob_meta( Value::Id(state.0 as i32), )); } + if e.flag { + meta.push((17, serializer::BOOLEAN, Value::Bool(true))); + } + defaults.push((17, serializer::BOOLEAN, Value::Bool(false))); } _ => {} } diff --git a/crates/horizon-client/src/game/remote_mob_data.rs b/crates/horizon-client/src/game/remote_mob_data.rs index b1dd94c69..f0071cf0f 100644 --- a/crates/horizon-client/src/game/remote_mob_data.rs +++ b/crates/horizon-client/src/game/remote_mob_data.rs @@ -117,6 +117,9 @@ fn apply(m: &mut Mob, values: &[(u8, i32, Value)], builtin: &Builtin, local_enti (Species::Slime | Species::MagmaCube, 18, Value::Int(size)) => { m.extra.size = (*size).clamp(1, 127); } + // Enderman.DATA_CREEPY (after DATA_CARRY_STATE): the open mouth + // and raised head of an angry enderman. + (Species::Enderman, 17, Value::Bool(creepy)) => m.extra.flag = *creepy, // Warden.CLIENT_ANGER_LEVEL: the heartbeat's pace. (Species::Warden, 16, Value::Int(anger)) => { if let Some(st) = m.extra.warden.as_mut() {