diff --git a/crates/horizon-client/src/game/advancements.rs b/crates/horizon-client/src/game/advancements.rs index 1056df7ae..c2130145e 100644 --- a/crates/horizon-client/src/game/advancements.rs +++ b/crates/horizon-client/src/game/advancements.rs @@ -408,6 +408,14 @@ impl Game<'_> { equipment[4] = slot(&m.extra.legs); equipment[5] = slot(&m.extra.feet); } + // A wolf's armor is its body slot, with its durability. + if m.species() == horizon_client::mobs::Species::Wolf { + equipment[6] = m.extra.head.as_ref().map(|id| { + let mut armor = ItemStack::new(id, 1); + armor.damage = m.extra.body_damage.max(0) as u32; + item_view(&armor) + }); + } EntityView { kind: m.kind.id.clone(), position: [m.position.x, m.position.y, m.position.z], diff --git a/crates/horizon-client/src/game/creatures.rs b/crates/horizon-client/src/game/creatures.rs index 3145c2f75..74bc46743 100644 --- a/crates/horizon-client/src/game/creatures.rs +++ b/crates/horizon-client/src/game/creatures.rs @@ -3871,6 +3871,9 @@ impl Game<'_> { } } if let Some(stack) = armor_drop { + // Mob.shearItem: PLAYER_SHEARED_EQUIPMENT with the armor and the wolf. + let target = self.mob_entity(&self.mobs[index]); + self.trigger_item_entity("minecraft:player_sheared_equipment", &stack, &target); self.spawn_item(stack, [center[0], center[1] + 0.5, center[2]], [0.0; 3], 10); } for (item, count) in drops {