[GH-ISSUE #7743] Falling chests land without a block entity or supplied inventory #3352

Open
opened 2026-11-03 04:07:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7743

Originally assigned to: @TheMrZZ on GitHub.

🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

A falling chest becomes the correct chest block and the falling entity disappears, but the landed block has no block entity. This also loses the supplied TileEntityData.Items inventory. Direct /setblock chest placement and inventory data commands work.

In a fresh isolated world, freeze ticks and force-load the area. Wait until execute if loaded succeeds at the scene coordinates, then run:

fill 0 198 0 31 199 31 stone
fill 0 200 0 31 224 31 air
summon falling_block 10.5 203 10.5 {BlockState:"minecraft:chest",TileEntityData:{Items:[{Slot:0b,id:"minecraft:diamond",count:1}]}}
tick step 30

After the 30 ticks complete:

execute if block 10 200 10 chest
execute if entity @e[type=falling_block]
data get block 10 200 10 Items

Java 26.3 has the chest, no remaining falling entity, and one diamond in slot 0. Horizon has the chest and no falling entity, but the data query reports that it is not a block entity. Omitting TileEntityData reproduces the missing block entity for an empty falling chest too.

Current landing path: Game::finish_falling_block calls falling_block_landed without creating the placed block entity or applying the carried data. Java's FallingBlockEntity.tick gets the placed block entity, merges the supplied data into its saved data, loads components and marks it changed. Scope: creation and supplied inventory on successful landing; item count codecs and loading/data-update defects are separate.

🤖 Generated with Codex

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7743 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Filed by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. A falling chest becomes the correct chest block and the falling entity disappears, but the landed block has no block entity. This also loses the supplied `TileEntityData.Items` inventory. Direct `/setblock` chest placement and inventory data commands work. In a fresh isolated world, freeze ticks and force-load the area. Wait until `execute if loaded` succeeds at the scene coordinates, then run: ```mcfunction fill 0 198 0 31 199 31 stone fill 0 200 0 31 224 31 air summon falling_block 10.5 203 10.5 {BlockState:"minecraft:chest",TileEntityData:{Items:[{Slot:0b,id:"minecraft:diamond",count:1}]}} tick step 30 ``` After the 30 ticks complete: ```mcfunction execute if block 10 200 10 chest execute if entity @e[type=falling_block] data get block 10 200 10 Items ``` Java 26.3 has the chest, no remaining falling entity, and one diamond in slot 0. Horizon has the chest and no falling entity, but the data query reports that it is not a block entity. Omitting `TileEntityData` reproduces the missing block entity for an empty falling chest too. Current landing path: `Game::finish_falling_block` calls `falling_block_landed` without creating the placed block entity or applying the carried data. Java's `FallingBlockEntity.tick` gets the placed block entity, merges the supplied data into its saved data, loads components and marks it changed. Scope: creation and supplied inventory on successful landing; item count codecs and loading/data-update defects are separate. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@TheMrZZ commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6587326110 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3352
No description provided.