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

Containers with a loot table drop their items if removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.10.20 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
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: