[PR #2241] [MERGED] Count cake, cauldron, note block, bell, ender chest and jukebox statistics #4134

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

📋 Pull Request Information

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

Base: main ← Head: fix/stats-block-interactions


📝 Commits (1)

  • 06fb035 Count the block interaction statistics

📊 Changes

3 files changed (+45 additions, -8 deletions)

View changed files

📝 crates/horizon-client/src/cauldron.rs (+23 -8)
📝 crates/horizon-client/src/game.rs (+21 -0)
📝 crates/horizon-client/src/game/jukebox.rs (+1 -0)

📄 Description

What and why

Several block interactions never counted their statistic, so the statistics screen and the scoreboard criteria stayed at 0 for them. They now count, for the host's own player and for players on the server thread:

  • eat_cake_slice when a slice of cake (or a candle cake) is eaten
  • fill_cauldron (emptying a bucket into a cauldron), use_cauldron (bottles, filling a bucket from a cauldron), clean_armor, clean_banner, clean_shulker_box
  • tune_noteblock when a note block is right-clicked
  • bell_ring when a bell is rung by hand
  • open_enderchest when an ender chest opens
  • play_record when a disc goes into a jukebox

Not included: play_noteblock (vanilla gives it only for a left-click on the note block), pot_flower (putting a plant into a pot does not exist yet), and target_hit and interact_with_campfire (already part of the open target block and campfire cooking pull requests).

Vanilla reference

  • CakeBlock.eat, CauldronInteractions (emptyBucket, fillBucket, the bottle entries, bannerInteraction, shulkerBoxInteraction, dyedItemIteration)
  • NoteBlock.useWithoutItem, BellBlock.onHit, EnderChestBlock.useWithoutItem, JukeboxPlayable.tryInsertIntoJukebox

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/2241 **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/stats-block-interactions` --- ### 📝 Commits (1) - [`06fb035`](https://github.com/horizon-rust/horizon/commit/06fb03567e4f124315872936eced832c6d47afde) Count the block interaction statistics ### 📊 Changes **3 files changed** (+45 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/cauldron.rs` (+23 -8) 📝 `crates/horizon-client/src/game.rs` (+21 -0) 📝 `crates/horizon-client/src/game/jukebox.rs` (+1 -0) </details> ### 📄 Description ## What and why Several block interactions never counted their statistic, so the statistics screen and the scoreboard criteria stayed at 0 for them. They now count, for the host's own player and for players on the server thread: - `eat_cake_slice` when a slice of cake (or a candle cake) is eaten - `fill_cauldron` (emptying a bucket into a cauldron), `use_cauldron` (bottles, filling a bucket from a cauldron), `clean_armor`, `clean_banner`, `clean_shulker_box` - `tune_noteblock` when a note block is right-clicked - `bell_ring` when a bell is rung by hand - `open_enderchest` when an ender chest opens - `play_record` when a disc goes into a jukebox Not included: `play_noteblock` (vanilla gives it only for a left-click on the note block), `pot_flower` (putting a plant into a pot does not exist yet), and `target_hit` and `interact_with_campfire` (already part of the open target block and campfire cooking pull requests). ## Vanilla reference - `CakeBlock.eat`, `CauldronInteractions` (`emptyBucket`, `fillBucket`, the bottle entries, `bannerInteraction`, `shulkerBoxInteraction`, `dyedItemIteration`) - `NoteBlock.useWithoutItem`, `BellBlock.onHit`, `EnderChestBlock.useWithoutItem`, `JukeboxPlayable.tryInsertIntoJukebox` ## 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:55 +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#4134
No description provided.