Mojira Archive
MC-141876

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

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"}