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

NBT arrays can't be expanded via set/give wrong error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.4
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      Overview:
      When trying to expand an allocated NBT array, it will give the wrong response.

       

      To Reproduce:

      /data modify storage nbtbug array set value []
      /data modify storage nbtbug array[0] set value "value"
      Returns "Nothing changed. The specified properties already have these values"
      /data get storage nbtbug array[0]
      Returns "Found no elements matching array[0]"

       

      Expected either:
      The error states something like "Nothing changed. Arrays cannot be expanded"
      Or it succeeds and data get storage nbtbug array[0] successfully returns "value"

            Unassigned Unassigned
            Immodial Immodial
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: