Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-279635

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.4, 25w03a
    • None
    • Confirmed
    • Commands, Items
    • Low
    • Platform

      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.

            Unassigned Unassigned
            catiosis catiosis
            Votes:
            5 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: