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

When using /setblock to place a chest at the same location twice, chest contents get deleted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.13.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      OS: MacOS 10.13.6 (High Sierra, latest update)

      Java: bundled java runtime

       
    • Confirmation Status:
      Unconfirmed

      Description

      When the command

      /setblock ~ ~ ~ chest[facing=south]{Items:[

      {id:"stone_pickaxe",Slot:1,Count:1}

      ]}

      is run when block ~ ~ ~ is not a chest, it places a chest with the correct nbt arguments (facing south, stone pickaxe in slot 1). The command

      /execute store success score @s foo run setblock ~ ~ ~ chest[facing=south]{Items:[

      {id:"stone_pickaxe",Slot:1,Count:1}

      ]}

      also sets variable foo to 1. However, when the first command is run again (i.e. there is now a chest at position ~ ~ ~), the chest becomes cleared of its inventory, and when the second command is run, variable foo turns to 0.

      Note: in the screenshots, I have used the second command, and replaced "foo" with "test1", which can be seen on the scoreboard on the right.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                TriggeredCreeper Lukasz Gmyrek
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: