[PR #2337] [MERGED] Wear shears on mooshrooms and apply Unbreaking to held tool wear #4218

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

📋 Pull Request Information

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

Base: main ← Head: fix/shears-wear


📝 Commits (2)

  • b32989c Wear shears on mooshrooms and apply Unbreaking to held tool wear
  • 01e6dae Merge main into fix/shears-wear

📊 Changes

1 file changed (+3 additions, -16 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+3 -16)

📄 Description

What and why

  • Shearing a mooshroom did not use up any durability on the shears. It now costs 1 durability, like shearing a sheep.
  • The tool wear used for shears on sheep, flint and steel on creepers, and the other held-tool uses (lead, llama, ghast, copper golem, sulfur cube) ignored Unbreaking, and did not play the break sound or count the "broken" statistic when the tool ran out. They now go through the same wear code as other held items, so Unbreaking, the break sound and the statistic all apply.

Vanilla reference

  • MushroomCow.mobInteract: itemStack.hurtAndBreak(1, player, hand.asEquipmentSlot()) after shear.
  • ItemStack.hurtAndBreak / processDurabilityChange: Unbreaking is applied to the wear amount, creative players take no wear.

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/2337 **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/shears-wear` --- ### 📝 Commits (2) - [`b32989c`](https://github.com/horizon-rust/horizon/commit/b32989cf1e6cb14d63548d243614b76bc6f31966) Wear shears on mooshrooms and apply Unbreaking to held tool wear - [`01e6dae`](https://github.com/horizon-rust/horizon/commit/01e6dae6f737b4b688d6133ffca616f87e6e2634) Merge main into fix/shears-wear ### 📊 Changes **1 file changed** (+3 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+3 -16) </details> ### 📄 Description ## What and why - Shearing a mooshroom did not use up any durability on the shears. It now costs 1 durability, like shearing a sheep. - The tool wear used for shears on sheep, flint and steel on creepers, and the other held-tool uses (lead, llama, ghast, copper golem, sulfur cube) ignored Unbreaking, and did not play the break sound or count the "broken" statistic when the tool ran out. They now go through the same wear code as other held items, so Unbreaking, the break sound and the statistic all apply. ## Vanilla reference - `MushroomCow.mobInteract`: `itemStack.hurtAndBreak(1, player, hand.asEquipmentSlot())` after `shear`. - `ItemStack.hurtAndBreak` / `processDurabilityChange`: Unbreaking is applied to the wear amount, creative players take no wear. ## 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:33 +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#4218
No description provided.