Mojira Archive
MC-148268

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

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.

Duplicate

Suso

2019-04-14, 05:08 PM

2019-04-15, 12:27 PM

2019-04-15, 07:38 AM

4

2

Confirmed

container, data, modify

Minecraft 19w12b - Minecraft 1.14 Pre-Release 2Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2

-