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

Incorrect/Different '/data modify' behavior

XMLWordPrintable

    • Confirmed
    • Commands

      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"
        

            boq [Mojang] Bartosz Bok
            Teixon Teixon
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: