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

/data modify with multiple values nbt remove an item on Slot:0b

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w50a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, 1.15.2, 20w08a
    • None
    • Confirmed
    • Commands

      How to reproduced (Video):
      1. Place items inside the container (in this test I use water bottle)
      2. run at least two /data modify command in the same tick

      /data modify block <container> Items[{tag:{Potion:"minecraft:water"}}].tag set value {Value:"foo"}
      /data modify block <container> Items[{tag:{Potion:"minecraft:water"}}].tag set value {Value:"bar"}

      3. The item at Slot:0b will be removed even if the previous command returns nothing

      What doesn't affect by this:
      1. Items[index].tag work just fine
      2. other commands such as /data get, etc.

      Actual commands I use:

      /data modify block ~-1 ~ ~ Items[{tag:{Potion:"minecraft:water"}}] set value {Value:"foo"}
      /data modify block ~-1 ~-1 ~ Items[{tag:{Potion:"minecraft:water"}}] set value {Value:"bar"}

            Unassigned Unassigned
            Boomber Boomber
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: