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

Using /data modify to replace all list values with a different type wipes the list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 18w50a
    • Fix Version/s: Minecraft 19w03a
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      How to reproduce

      1. Create a list in an NBT-safe area (item tag tag).
        /setblock ~ ~ ~ chest{Items:[{id:tnt,Count:1b,tag:{custom_list:[1,2,3]}}]}
      2. Try to replace all values in the list with those of a different type.
        /data modify block ~ ~ ~ Items[0].tag.custom_list[] set value 5b

         The list is cleared. It also remains in an invalid empty state (see MC-141814).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                boq [Mojang] Bartosz Bok
                Reporter:
                tryashtar [Mod] tryashtar
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: