[PR #2393] [MERGED] Wolf armor can be worn, repaired and sheared off, and absorbs damage #4271

Closed
opened 2026-11-03 04:15:57 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2393
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/wolf-armor


📝 Commits (5)

  • de2df51 Wolf armor: put it on, repair it, shear it off, and let it take the damage
  • 512e003 Wolf armor: check the acting player's UUID and keep the armor's components
  • 7c1055d Merge main into fix/wolf-armor
  • 967a936 entity_death_loot: give wolves their gear in the body slot
  • 76e3a0f Merge main into fix/wolf-armor

📊 Changes

9 files changed (+193 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+17 -0)
📝 crates/horizon-client/src/game/creatures.rs (+57 -1)
📝 crates/horizon-client/src/game/lan.rs (+11 -2)
📝 crates/horizon-client/src/game/remote.rs (+5 -1)
📝 crates/horizon-client/src/mobs.rs (+65 -3)
📝 crates/horizon-client/src/mobs/drops.rs (+5 -0)
📝 crates/horizon-client/src/mobs/render.rs (+25 -1)
📝 crates/horizon-client/src/mobs/species.rs (+7 -2)
📝 tools/test_entity_death_loot_parity.py (+1 -1)

📄 Description

What and why

Wolf armor did nothing in Horizon: right-clicking a tamed wolf with it just made the wolf sit, the armor never showed, and it protected nothing.

Now, as in vanilla:

  • The owner puts wolf armor on a tamed adult wolf that wears none (equip sound, one item used up).
  • A sitting wolf's armor is repaired by an armadillo scute (an eighth of its durability, repair sound).
  • Shears take the armor off for the owner (not while sneaking); it drops with its damage and the shears lose durability.
  • A wolf in armor takes no health damage from hits that are not in #bypasses_wolf_armor. The armor loses ceil(damage) durability, plays the crack sound when it crosses a crack step, and breaks at 64.
  • The armor is drawn on the wolf with the three crack overlays, saved and loaded with its damage, dropped on death, and sent to server-thread clients with its damage.

Not done: the crack item particles, the dyed overlay (dyed wolf armor) and dispensers equipping wolves.

Vanilla reference

  • Wolf.mobInteract (equip, repair, sit), Wolf.canArmorAbsorb, Wolf.actuallyHurt, Wolf.getHurtSound, Wolf.canShearEquipment.
  • Entity.interact / Mob.attemptToShearEquipment / Mob.shearItem for the shears.
  • WolfArmorLayer and Crackiness.WOLF_ARMOR (0.95, 0.69, 0.32).
  • DamageTypeTags.BYPASSES_WOLF_ARMOR; Horizon's untyped Generic damage stands in for its kill, freeze, starve and wither members.

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2393 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/wolf-armor` --- ### 📝 Commits (5) - [`de2df51`](https://github.com/horizon-rust/horizon/commit/de2df51193171de808cbd3e6a79add64aa012e39) Wolf armor: put it on, repair it, shear it off, and let it take the damage - [`512e003`](https://github.com/horizon-rust/horizon/commit/512e003cbd50f13572286ee759a26a33ef0b08dc) Wolf armor: check the acting player's UUID and keep the armor's components - [`7c1055d`](https://github.com/horizon-rust/horizon/commit/7c1055df97e06d22ec0cb8c9672edece9b3c9fb9) Merge main into fix/wolf-armor - [`967a936`](https://github.com/horizon-rust/horizon/commit/967a9363ceec4e58f8dd6a42e32aca6d2fd28898) entity_death_loot: give wolves their gear in the body slot - [`76e3a0f`](https://github.com/horizon-rust/horizon/commit/76e3a0f7b733ab0d54c735728c7bdcec6fdc97fe) Merge main into fix/wolf-armor ### 📊 Changes **9 files changed** (+193 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+17 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+57 -1) 📝 `crates/horizon-client/src/game/lan.rs` (+11 -2) 📝 `crates/horizon-client/src/game/remote.rs` (+5 -1) 📝 `crates/horizon-client/src/mobs.rs` (+65 -3) 📝 `crates/horizon-client/src/mobs/drops.rs` (+5 -0) 📝 `crates/horizon-client/src/mobs/render.rs` (+25 -1) 📝 `crates/horizon-client/src/mobs/species.rs` (+7 -2) 📝 `tools/test_entity_death_loot_parity.py` (+1 -1) </details> ### 📄 Description ## What and why Wolf armor did nothing in Horizon: right-clicking a tamed wolf with it just made the wolf sit, the armor never showed, and it protected nothing. Now, as in vanilla: - The owner puts wolf armor on a tamed adult wolf that wears none (equip sound, one item used up). - A sitting wolf's armor is repaired by an armadillo scute (an eighth of its durability, repair sound). - Shears take the armor off for the owner (not while sneaking); it drops with its damage and the shears lose durability. - A wolf in armor takes no health damage from hits that are not in `#bypasses_wolf_armor`. The armor loses `ceil(damage)` durability, plays the crack sound when it crosses a crack step, and breaks at 64. - The armor is drawn on the wolf with the three crack overlays, saved and loaded with its damage, dropped on death, and sent to server-thread clients with its damage. Not done: the crack item particles, the dyed overlay (dyed wolf armor) and dispensers equipping wolves. ## Vanilla reference - `Wolf.mobInteract` (equip, repair, sit), `Wolf.canArmorAbsorb`, `Wolf.actuallyHurt`, `Wolf.getHurtSound`, `Wolf.canShearEquipment`. - `Entity.interact` / `Mob.attemptToShearEquipment` / `Mob.shearItem` for the shears. - `WolfArmorLayer` and `Crackiness.WOLF_ARMOR` (0.95, 0.69, 0.32). - `DamageTypeTags.BYPASSES_WOLF_ARMOR`; Horizon's untyped `Generic` damage stands in for its kill, freeze, starve and wither members. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:57 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4271
No description provided.