mojira.dev
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.

Linked issues

Comments 0

No comments.

catiosis

(Unassigned)

Confirmed

Platform

Low

Commands, Items

1.21.4, 25w03a, 1.21.6

Retrieved