Mojira Archive
MC-142735

Incorrect/Different '/data modify' behavior

I've noticed that data modify behaves differently since snapshot 19w03a.
In contrast to previous snapshots:

  • Trying to write to a non-existent list-NBT-path will no longer generate its path (non-list paths still work).
    Place down any tile entity which has an empty inventory. Run:
    /data modify block <pos> Items[{Slot:0b}] set value {Slot:0b,id:"minecraft:stone",Count:1b}
    
  • The attempt to write to a path which already contains the same data will no longer be rejected (You were able to use this to check for NBT equality dynamically).
    Modify the first slot of a tile entity's inventory (assuming it's a stone item):
    /data modify block <pos> Items[{Slot:0b}].id set value "minecraft:stone"
    

Fixed

Teixon

[Mojang] Bartosz Bok

2019-01-19, 05:56 PM

2019-04-03, 12:30 PM

2019-04-03, 12:30 PM

1

5

Confirmed

Commands

/data, /data-modify

Minecraft 19w03c

Minecraft 19w14a