[PR #2232] [MERGED] Note blocks play on a left click and let mob heads be placed on top #4125

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

📋 Pull Request Information

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

Base: main ← Head: fix/note-block-attack-and-heads


📝 Commits (2)

  • 8d77913 Note blocks play on a left click, and take mob heads on top
  • 6120c8c Attack the block when a guest's START_DESTROY_BLOCK arrives

📊 Changes

3 files changed (+50 additions, -7 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -2)
📝 crates/horizon-client/src/game/lan_actions.rs (+14 -0)
📝 crates/horizon-world/src/level/interact.rs (+30 -5)

📄 Description

What and why

Two note block differences from Java:

  • Left-clicking a note block did nothing. Attacking it only handled redstone ore. It now plays the note (only if the block above is air, or the instrument is a mob-head one) and awards the play_noteblock statistic.
  • Holding a mob head and clicking the top face of a note block tuned the block, so the head could not be placed on it. Now the click passes to the item and the head is placed, as in Java.

Both are in the shared use code, so the in-process server's guests get them too.

Vanilla reference

  • NoteBlock.attack, NoteBlock.playNote
  • NoteBlock.useItemOn, item tag minecraft:noteblock_top_instruments
  • Stats.PLAY_NOTEBLOCK

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/2232 **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/note-block-attack-and-heads` --- ### 📝 Commits (2) - [`8d77913`](https://github.com/horizon-rust/horizon/commit/8d77913ea524f60ea52c7ac22ccba3092f5d7409) Note blocks play on a left click, and take mob heads on top - [`6120c8c`](https://github.com/horizon-rust/horizon/commit/6120c8c0ad40618ec4636041d995ca0842f17ef0) Attack the block when a guest's START_DESTROY_BLOCK arrives ### 📊 Changes **3 files changed** (+50 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -2) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+14 -0) 📝 `crates/horizon-world/src/level/interact.rs` (+30 -5) </details> ### 📄 Description ## What and why Two note block differences from Java: - Left-clicking a note block did nothing. Attacking it only handled redstone ore. It now plays the note (only if the block above is air, or the instrument is a mob-head one) and awards the `play_noteblock` statistic. - Holding a mob head and clicking the top face of a note block tuned the block, so the head could not be placed on it. Now the click passes to the item and the head is placed, as in Java. Both are in the shared use code, so the in-process server's guests get them too. ## Vanilla reference - `NoteBlock.attack`, `NoteBlock.playNote` - `NoteBlock.useItemOn`, item tag `minecraft:noteblock_top_instruments` - `Stats.PLAY_NOTEBLOCK` ## 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:14:52 +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#4125
No description provided.