[PR #5875] [MERGED] Fix filled shulker box drops in Creative #6532

Closed
opened 2026-11-03 06:22:33 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5875
Author: @TiggerTakkyTTT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/creative-shulker-drops


📝 Commits (1)

  • 2daf81f Fix filled shulker box drops in Creative

📊 Changes

9 files changed (+97 additions, -17 deletions)

View changed files

📝 crates/horizon-client/src/block_entity_item.rs (+20 -13)
📝 crates/horizon-client/src/game.rs (+7 -0)
📝 crates/horizon-client/src/game/block_items.rs (+25 -0)
📝 crates/horizon-client/src/game/command_harness.rs (+5 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaCommandExecOracle.java (+5 -0)
📝 tools/command_exec_corpus.py (+32 -0)
📝 tools/integration_env.py (+1 -1)
📝 tools/port_map/game2-015.tsv (+1 -1)
📝 tools/port_map/game2-017.tsv (+1 -1)

📄 Description

🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6), not by TiggerTakkyTTT personally.

What and why

Fixes #5821.

Breaking a filled shulker box in Creative now drops one box containing its stored items and collected components, preserving its color. Empty Creative boxes still drop nothing. The filled-box drop appears at the block center with vanilla's pickup delay, including when block_drops is disabled.

Share component collection with the existing pick-block implementation without copying arbitrary block-entity NBT. Ordinary block drops now respect block_drops, while preserving vanilla's random-offset draw order.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

ShulkerBoxBlock.playerWillDestroy, BlockEntity.collectComponents, ItemEntity.setDefaultPickUpDelay, and Block.popResource in vanilla 26.3.

Extend the command-execution harness with real server-player block breaking on both engines. Cover all 17 shulker variants, filled/empty boxes, Creative/Survival, and the block-drop gamerule, including stored item names and enchantments, drop position, pickup delay, and exclusion of unrelated NBT.

Other projects' code

None.

Self-check

  • Real vanilla versus Horizon integrated server: 408/408 observations match across 102 block breaks. The local comparison used the built debug executable with the same command corpus and Java oracle; the standard runner is python3 tools/test_command_exec_parity.py --only 'creative shulker drops'.
  • Existing pick-block data parity: 148/148 cases match.

pr_ready (tools/pr_ready.py --quick --base upstream/main against upstream/main at bd8c53bfa, 2 min 55 s)

Check Result
Scope ✅ 9 committed files, +97 −17
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 515 passed (52 s)
rustfmt ✅ (8 s)
clippy ✅ (1 min 29 s)
tests: horizon-client ✅ 1668 passed (24 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Report omits machine identity; scope excludes unrelated untracked local files.

Port-ledger check and both updated mapping files validated. The ledger flags client-side/callee heuristics for the server-only Creative branch; the direct spawn is synchronized through normal entity tracking, and the existing ordinary removal path is unchanged.


🔄 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/5875 **Author:** [@TiggerTakkyTTT](https://github.com/TiggerTakkyTTT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/creative-shulker-drops` --- ### 📝 Commits (1) - [`2daf81f`](https://github.com/horizon-rust/horizon/commit/2daf81f4873f81ffe65e842610af2799b4fd5a61) Fix filled shulker box drops in Creative ### 📊 Changes **9 files changed** (+97 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/block_entity_item.rs` (+20 -13) 📝 `crates/horizon-client/src/game.rs` (+7 -0) 📝 `crates/horizon-client/src/game/block_items.rs` (+25 -0) 📝 `crates/horizon-client/src/game/command_harness.rs` (+5 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaCommandExecOracle.java` (+5 -0) 📝 `tools/command_exec_corpus.py` (+32 -0) 📝 `tools/integration_env.py` (+1 -1) 📝 `tools/port_map/game2-015.tsv` (+1 -1) 📝 `tools/port_map/game2-017.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by TiggerTakkyTTT's AI agent (Codex, GPT-6), not by TiggerTakkyTTT personally. ## What and why Fixes #5821. Breaking a filled shulker box in Creative now drops one box containing its stored items and collected components, preserving its color. Empty Creative boxes still drop nothing. The filled-box drop appears at the block center with vanilla's pickup delay, including when `block_drops` is disabled. Share component collection with the existing pick-block implementation without copying arbitrary block-entity NBT. Ordinary block drops now respect `block_drops`, while preserving vanilla's random-offset draw order. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `ShulkerBoxBlock.playerWillDestroy`, `BlockEntity.collectComponents`, `ItemEntity.setDefaultPickUpDelay`, and `Block.popResource` in vanilla 26.3. Extend the command-execution harness with real server-player block breaking on both engines. Cover all 17 shulker variants, filled/empty boxes, Creative/Survival, and the block-drop gamerule, including stored item names and enchantments, drop position, pickup delay, and exclusion of unrelated NBT. ## Other projects' code None. ## Self-check - Real vanilla versus Horizon integrated server: 408/408 observations match across 102 block breaks. The local comparison used the built debug executable with the same command corpus and Java oracle; the standard runner is `python3 tools/test_command_exec_parity.py --only 'creative shulker drops'`. - Existing pick-block data parity: 148/148 cases match. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` against upstream/main at bd8c53bfa, 2 min 55 s) | Check | Result | | --- | --- | | Scope | ✅ 9 committed files, +97 −17 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 515 passed (52 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (1 min 29 s) | | tests: horizon-client | ✅ 1668 passed (24 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Report omits machine identity; scope excludes unrelated untracked local files. Port-ledger check and both updated mapping files validated. The ledger flags client-side/callee heuristics for the server-only Creative branch; the direct spawn is synchronized through normal entity tracking, and the existing ordinary removal path is unchanged. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:22:33 +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#6532
No description provided.