[PR #2436] [MERGED] Falling suspicious sand and gravel break where they land #4314

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

📋 Pull Request Information

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

Base: main ← Head: fix/brushable-fall


📝 Commits (1)

  • 8c2ef15 Falling suspicious sand and gravel break where they land

📊 Changes

3 files changed (+42 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/falling_block.rs (+20 -0)
📝 crates/horizon-client/src/game.rs (+3 -5)
📝 crates/horizon-client/src/game/falling_damage.rs (+19 -0)

📄 Description

🤖 Opened by FusselTV's AI agent (Claude Code, Opus 5.5), not by FusselTV personally.

What and why

BrushableBlock.tick makes its falling block entity with disableDrop. When suspicious sand or gravel falls, vanilla breaks it where it lands (onBrokenAfterFall: level event 2001 and the block_destroy game event) and places nothing. Horizon landed it as a block without its archaeology block entity, so it held no loot.

This shows in pre-generated worlds. Cold ocean ruins place suspicious gravel over water, and it falls during the first ticks. Over seeds 12345, 1 and 8675309 (1,024 × 1,024 blocks), 63 suspicious blocks were saved without a block entity, most of them one block below where vanilla had them.

What changes:

  • falling_block::Damage::falling picks a falling block's settings: anvils as before, and cancel_drop for minecraft:suspicious_*.
  • On landing, a brushable block sends level event 2001 and the minecraft:block_destroy game event, as onBrokenAfterFall does.

Vanilla reference

  • BrushableBlock.tick: FallingBlockEntity.fall then disableDrop.
  • BrushableBlock.onBrokenAfterFall.
  • FallingBlockEntity.tick: cancelDrop discards the entity on landing.

Tests

  • New unit test falling_block::tests::only_brushable_blocks_break_where_they_land. Negative control: without the cancel_drop line it fails.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on 0ed27ce7ecf3, against upstream/main at 68db8847e, 3 min 14 s)

Check Result
Scope ✅ 3 files, +42 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (6 s)
clippy ✅ (20 s)
tests: horizon-client ✅ 1336 passed (2 min 44 s)
doc tests ✅ 0 passed (3 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 331 affected, to run in CI (--quick): arrow, attribute_map_queries, auto_jump, biome_source_codec, biome_temperature, biome_weather, biome_zoom, block_blob, block_collision_scan, block_column, block_entity_anim, block_entity_render and 319 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 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/2436 **Author:** [@FusselTV](https://github.com/FusselTV) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/brushable-fall` --- ### 📝 Commits (1) - [`8c2ef15`](https://github.com/horizon-rust/horizon/commit/8c2ef15171d2bdfd31a07c83f5ea80df315068e1) Falling suspicious sand and gravel break where they land ### 📊 Changes **3 files changed** (+42 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/falling_block.rs` (+20 -0) 📝 `crates/horizon-client/src/game.rs` (+3 -5) 📝 `crates/horizon-client/src/game/falling_damage.rs` (+19 -0) </details> ### 📄 Description > 🤖 Opened by FusselTV's AI agent (Claude Code, Opus 5.5), not by FusselTV personally. ## What and why `BrushableBlock.tick` makes its falling block entity with `disableDrop`. When suspicious sand or gravel falls, vanilla breaks it where it lands (`onBrokenAfterFall`: level event 2001 and the `block_destroy` game event) and places nothing. Horizon landed it as a block without its archaeology block entity, so it held no loot. This shows in pre-generated worlds. Cold ocean ruins place suspicious gravel over water, and it falls during the first ticks. Over seeds 12345, 1 and 8675309 (1,024 × 1,024 blocks), 63 suspicious blocks were saved without a block entity, most of them one block below where vanilla had them. What changes: - `falling_block::Damage::falling` picks a falling block's settings: anvils as before, and `cancel_drop` for `minecraft:suspicious_*`. - On landing, a brushable block sends level event 2001 and the `minecraft:block_destroy` game event, as `onBrokenAfterFall` does. ## Vanilla reference - `BrushableBlock.tick`: `FallingBlockEntity.fall` then `disableDrop`. - `BrushableBlock.onBrokenAfterFall`. - `FallingBlockEntity.tick`: `cancelDrop` discards the entity on landing. ## Tests - New unit test `falling_block::tests::only_brushable_blocks_break_where_they_land`. Negative control: without the `cancel_drop` line it fails. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on 0ed27ce7ecf3, against upstream/main at 68db8847e, 3 min 14 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +42 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (6 s) | | clippy | ✅ (20 s) | | tests: horizon-client | ✅ 1336 passed (2 min 44 s) | | doc tests | ✅ 0 passed (3 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 331 affected, to run in CI (--quick): arrow, attribute_map_queries, auto_jump, biome_source_codec, biome_temperature, biome_weather, biome_zoom, block_blob, block_collision_scan, block_column, block_entity_anim, block_entity_render and 319 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:17 +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#4314
No description provided.