Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-151876

Containers with a loot table drop their items if removed


    • Icon: Bug Bug
    • Resolution: Fixed
    • Preview, 1.19.10
    • 1.18.2 Hotfix, 1.18.12 Hotfix, 1.18.30, 1.18.31
    • None
    • Confirmed
    • Windows
    • 722408

      The bug

      Containers that have a loot table applied to it will drop its contents when removed with commands. This is undesirable because the items will always need cleaned up afterward. It's worth noting that containers with items placed inside do not drop their items when replaced in the same manner.

      Steps to reproduce:

      • Install the attached world file. Inside is a chest with some dungeon loot, and a structure to place one down more conveniently (name is mystructure:dungeon_chest). Take care not to open the chest to generate the loot, the chest must be untouched.
      • Remove the chest block with commands. For example: /setblock 0 -60 3 air

      The chest drops a loot table, making a mess everywhere.

            Sprunkles Sprunkles
            1 Vote for this issue
            2 Start watching this issue