Mojira Archive
MC-279635

Item entities with "container" component inconsistently drop items when destroyed

The item entities seem to only drop items in their container component when they are a placeable tile.

To Confirm
/give @s minecraft:mud[minecraft:container=[{item: {count: 1,id:"minecraft:chiseled_stone_bricks"},slot: 1}]] 

Throw item on the ground.

/data modify entity @n[type=item] Fire set value 500 

The above command should set the item on fire.

Notice it drops the Chiseled Stone Bricks when the item is destroyed.

/give @s minecraft:stick[minecraft:container=[{item: {count: 1,id:"minecraft:chiseled_stone_bricks"},slot: 1}]]  

Throw item on the ground.

/data modify entity @n[type=item] Fire set value 500  

The above command should set the item on fire.

Notice how nothing is dropped when the item is destroyed.

Unresolved

catiosis

2025-01-19, 02:10 PM

2025-01-20, 12:57 PM

3

0

Confirmed

Low

Platform

Commands, Items

1.21.4, 25w03a

-