[PR #2424] [MERGED] Show the note particle above a playing note block #4301

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

📋 Pull Request Information

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

Base: main ← Head: fix/note-block-particle


📝 Commits (1)

  • 5a70691 Show the note particle above a note block when it plays

📊 Changes

2 files changed (+33 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+25 -0)
📝 crates/horizon-world/src/level/redstone.rs (+8 -1)

📄 Description

What and why

A note block only played its sound. In vanilla a tunable instrument also sends up a coloured note particle above the block, with the colour taken from the note. The block event now also queues the particle, and the client draws it above the block (1.2 blocks up, note / 24 as the colour). Mob head and custom head instruments stay silent of particles, like vanilla. Because it comes from the block event, a player on a server sees it too, from their own copy of the event.

Vanilla reference

  • NoteBlock.triggerEvent (NoteBlockInstrument.isTunable, level.addParticle(ParticleTypes.NOTE, ...))

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/2424 **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-particle` --- ### 📝 Commits (1) - [`5a70691`](https://github.com/horizon-rust/horizon/commit/5a70691d63980600cd6de1fc03b6ad0c03c02e60) Show the note particle above a note block when it plays ### 📊 Changes **2 files changed** (+33 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+25 -0) 📝 `crates/horizon-world/src/level/redstone.rs` (+8 -1) </details> ### 📄 Description ## What and why A note block only played its sound. In vanilla a tunable instrument also sends up a coloured note particle above the block, with the colour taken from the note. The block event now also queues the particle, and the client draws it above the block (1.2 blocks up, `note / 24` as the colour). Mob head and custom head instruments stay silent of particles, like vanilla. Because it comes from the block event, a player on a server sees it too, from their own copy of the event. ## Vanilla reference - `NoteBlock.triggerEvent` (`NoteBlockInstrument.isTunable`, `level.addParticle(ParticleTypes.NOTE, ...)`) ## 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:16:11 +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#4301
No description provided.