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

Using /data modify to edit the contents of a chest deletes the item on slot 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2
    • Confirmed

      When trying to  edit the contents of a chest and selecting a specific slot iside of Items[], on top of editing that slot, the contents of Items[0] will be removed.

      As explained by Franco Caprile in the comments, the issue seems to be caused by the Slot tag being copied, overriding the index used to select what slot to put the info into.

      Recreating the issue:

      1. Place a chest and fill its first three slots with items.
      2. Run
        /data modify block [x] [y] [z] Items[1] set value {anything_works_here:2711} 

      As you can see, this would delete the contents of slot 2 as expected, but ends up removing slot 1 in the process as well. Any other slots work properly as illustrated by slot 3.

            Unassigned Unassigned
            Suso Suso
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: