[PR #2959] [MERGED] Show the item revealed by brushing suspicious blocks #4713

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

📋 Pull Request Information

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

Base: main ← Head: fix/brushable-item-display


📝 Commits (1)

  • ca28a0e Show items revealed by brushing suspicious blocks

📊 Changes

7 files changed (+158 additions, -14 deletions)

View changed files

📝 crates/horizon-client/src/chunk/block_entity.rs (+11 -0)
📝 crates/horizon-client/src/containers.rs (+17 -5)
📝 crates/horizon-client/src/game.rs (+5 -2)
📝 crates/horizon-client/src/game/brush.rs (+94 -6)
📝 crates/horizon-client/src/lan/chunks.rs (+10 -0)
📝 crates/horizon-client/src/save.rs (+20 -0)
📝 crates/horizon-client/src/vanillagen.rs (+1 -1)

📄 Description

What and why

Brushing suspicious sand or gravel dropped the item at the end, but never showed it while the dust came off. Horizon also kept the loot only as raw saved data.

  • Suspicious sand and gravel are now block entities that keep their loot table, loot seed and the rolled item, and save and load them.
  • Brushing records which face was brushed. The item is drawn on that face and moves out as the block gets more dusted (steps of 0.075 of a block), as in vanilla.
  • The item and the brushed face are sent to clients of a LAN or integrated server, so guests see it too.

Vanilla reference

  • BrushableBlockEntity.java:59-83,190-223: loot table unpacking, item, hitDirection, saving, and the update packet.
  • BrushableBlockRenderer.java:39-94: where the item is drawn for each face and dusting level.
  • Direction.java:33-45: the direction ids used for hit_direction.

Self-check

clippy and fmt pass for horizon-client. Not run in game.


🔄 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/2959 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/brushable-item-display` --- ### 📝 Commits (1) - [`ca28a0e`](https://github.com/horizon-rust/horizon/commit/ca28a0edadead21adfba5ec86b9f88fc39e992c4) Show items revealed by brushing suspicious blocks ### 📊 Changes **7 files changed** (+158 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/chunk/block_entity.rs` (+11 -0) 📝 `crates/horizon-client/src/containers.rs` (+17 -5) 📝 `crates/horizon-client/src/game.rs` (+5 -2) 📝 `crates/horizon-client/src/game/brush.rs` (+94 -6) 📝 `crates/horizon-client/src/lan/chunks.rs` (+10 -0) 📝 `crates/horizon-client/src/save.rs` (+20 -0) 📝 `crates/horizon-client/src/vanillagen.rs` (+1 -1) </details> ### 📄 Description ## What and why Brushing suspicious sand or gravel dropped the item at the end, but never showed it while the dust came off. Horizon also kept the loot only as raw saved data. - Suspicious sand and gravel are now block entities that keep their loot table, loot seed and the rolled item, and save and load them. - Brushing records which face was brushed. The item is drawn on that face and moves out as the block gets more dusted (steps of 0.075 of a block), as in vanilla. - The item and the brushed face are sent to clients of a LAN or integrated server, so guests see it too. ## Vanilla reference - `BrushableBlockEntity.java:59-83,190-223`: loot table unpacking, `item`, `hitDirection`, saving, and the update packet. - `BrushableBlockRenderer.java:39-94`: where the item is drawn for each face and dusting level. - `Direction.java:33-45`: the direction ids used for `hit_direction`. ## Self-check clippy and fmt pass for horizon-client. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:23 +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#4713
No description provided.