[PR #2328] [MERGED] Projectiles ring bells they hit #4209

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

📋 Pull Request Information

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

Base: main ← Head: fix/arrows-bells-buttons


📝 Commits (2)

  • 472da65 Projectiles ring bells they hit
  • 8027bda Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

4 files changed (+70 additions, -19 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+24 -1)
📝 crates/horizon-world/src/level/interact.rs (+3 -16)
📝 crates/horizon-world/src/level/mod.rs (+16 -0)
📝 crates/horizon-world/src/level/redstone.rs (+27 -2)

📄 Description

What and why

Arrows, snowballs and other projectiles that hit a bell did nothing. In Java a projectile that strikes the bell proper rings it: the ring sound, the swinging animation, the game event (so sculk sensors hear it) and, for a player's shot, the "Times Bell Rung" statistic.

Horizon only rang bells on a right-click or a redstone signal. This adds the projectile hit. It runs in projectile_hit, which the server thread and the LAN guests (run with the guest's state) both use, so it works on every path. The side check that the right-click used is now one shared function, so a hit from the wrong side (or on the cap of the bell) does not ring it, as in Java.

Wooden buttons pressed by arrows are not part of this change, because #2156 already covers them.

Vanilla reference

  • BellBlock.onProjectileHit calls onHit(level, state, hitResult, owner-if-player, true).
  • BellBlock.onHit / isProperHit / attemptToRing (sound, block event, game event, Stats.BELL_RING for players only).
  • Projectile.onHitBlock calls BlockState.onProjectileHit for every projectile.

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/2328 **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/arrows-bells-buttons` --- ### 📝 Commits (2) - [`472da65`](https://github.com/horizon-rust/horizon/commit/472da6509dca7ebb9c4084d45ec40f96570e1d63) Projectiles ring bells they hit - [`8027bda`](https://github.com/horizon-rust/horizon/commit/8027bda6bff32ec98f4fe30407f232897ab0bbea) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **4 files changed** (+70 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+24 -1) 📝 `crates/horizon-world/src/level/interact.rs` (+3 -16) 📝 `crates/horizon-world/src/level/mod.rs` (+16 -0) 📝 `crates/horizon-world/src/level/redstone.rs` (+27 -2) </details> ### 📄 Description ## What and why Arrows, snowballs and other projectiles that hit a bell did nothing. In Java a projectile that strikes the bell proper rings it: the ring sound, the swinging animation, the game event (so sculk sensors hear it) and, for a player's shot, the "Times Bell Rung" statistic. Horizon only rang bells on a right-click or a redstone signal. This adds the projectile hit. It runs in `projectile_hit`, which the server thread and the LAN guests (run with the guest's state) both use, so it works on every path. The side check that the right-click used is now one shared function, so a hit from the wrong side (or on the cap of the bell) does not ring it, as in Java. Wooden buttons pressed by arrows are not part of this change, because #2156 already covers them. ## Vanilla reference - `BellBlock.onProjectileHit` calls `onHit(level, state, hitResult, owner-if-player, true)`. - `BellBlock.onHit` / `isProperHit` / `attemptToRing` (sound, block event, game event, `Stats.BELL_RING` for players only). - `Projectile.onHitBlock` calls `BlockState.onProjectileHit` for every projectile. ## 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:29 +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#4209
No description provided.