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

Chests with 'LootTable' defined that haven't been opened explode items if replaced with /setblock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, 1.15.2, 20w15a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Chests which have a loot table (i.e. have not been opened by a player) will explode items based on that loot table.

      How to reproduce

      Create a chest with a loot tag and use the setblock-replace command to replace this with an air block. If the chest has not been generated and still has the loot table tag as confirmed by using data-get-block, the chest will explode random items.

      If the chest has been opened by a user and the loot generated, when being overwritten by the setblock-replace, no items will drop as expected with the replace modifier.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            LZStealth Mark Rapson
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: