[PR #3624] [MERGED] Audio: play break sound and track stats when tools break while mining #5101

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3624
Author: @deloskiytbackup
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/tool-break-sound


📝 Commits (1)

  • c6fbd42 Audio: play break sound and track stats when tools break while mining (#3524)

📊 Changes

4 files changed (+13 additions, -24 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -8)
📝 crates/horizon-client/src/game/creatures.rs (+1 -8)
📝 crates/horizon-client/src/game/enchant_effects.rs (+9 -0)
📝 crates/horizon-client/src/game/mace.rs (+1 -8)

📄 Description

Fixes #3524

Summary

Fixes missing item break sound effect and broken statistic tracking when tools and weapons break during gameplay:

  • When a tool breaks while mining a block (mine_block_with_held), route durability damage through damage_held(per_block) instead of clearing the slot silently.
  • Route weapon wear in mace.rs through damage_held.
  • Route armadillo brush wear in creatures.rs through damage_held.
  • Play minecraft:entity.item.break and update equipment when worn armor breaks from Thorns in enchant_effects.rs.

Validation

Verified with python3 tools/pr_ready.py:

  • Public tree: pass
  • Python tests: 408 passed
  • rustfmt: pass
  • clippy: pass (-D warnings)
  • tests: horizon-client: 799 passed
  • doc tests: pass

🔄 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/3624 **Author:** [@deloskiytbackup](https://github.com/deloskiytbackup) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/tool-break-sound` --- ### 📝 Commits (1) - [`c6fbd42`](https://github.com/horizon-rust/horizon/commit/c6fbd42aeeab9040ad272b03af59e0324776f04f) Audio: play break sound and track stats when tools break while mining (#3524) ### 📊 Changes **4 files changed** (+13 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -8) 📝 `crates/horizon-client/src/game/creatures.rs` (+1 -8) 📝 `crates/horizon-client/src/game/enchant_effects.rs` (+9 -0) 📝 `crates/horizon-client/src/game/mace.rs` (+1 -8) </details> ### 📄 Description Fixes #3524 ### Summary Fixes missing item break sound effect and broken statistic tracking when tools and weapons break during gameplay: - When a tool breaks while mining a block (`mine_block_with_held`), route durability damage through `damage_held(per_block)` instead of clearing the slot silently. - Route weapon wear in `mace.rs` through `damage_held`. - Route armadillo brush wear in `creatures.rs` through `damage_held`. - Play `minecraft:entity.item.break` and update equipment when worn armor breaks from Thorns in `enchant_effects.rs`. ### Validation Verified with `python3 tools/pr_ready.py`: - Public tree: pass - Python tests: 408 passed - rustfmt: pass - clippy: pass (-D warnings) - tests: horizon-client: 799 passed - doc tests: pass --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:15 +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#5101
No description provided.