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

Using /setblock or /fill on a container with loot not yet generated will always drop its contents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.5, 1.17, 1.17.1, 1.19
    • None
    • Confirmed
    • (Unassigned)

      The bug

      If /setblock or /fill is used on a container that has not had its loot generated yet, it will always drop its contents. The expected behavior would be for the container to only drop its contents if the "destroy" argument is used.

      How to reproduce

      1. Run the command
        /setblock ~ ~ ~1 minecraft:chest{LootTable:"minecraft:blocks/dirt"}
        
      2. Then run the command
        /setblock ~ ~ ~1 air 

        →  Notice dirt has been dropped by the chest despite the command not being set to "destroy".

        1. 2021-05-15_18.45.39.png
          242 kB
          [Mod] Avoma
        2. MC-225394.mp4
          4.26 MB
          [Mod] Avoma

            Unassigned Unassigned
            Aldinyx Aldinyx
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: