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

Array Tag can't be followed directly by Compound Tag in NBT Path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.1
    • None
    • Java 1.8.0_51 64 bits
      Windows 10
    • Unconfirmed
    • (Unassigned)

      In a NBT Path, an Array Tag can't be followed without intermediate node by a Compound Tag.
      Example with this NBT Structure: 

      {Foo: [{bar: 0b}, {bar: 1b}]}
      

      This path is syntactically invalid:

      Foo[0]{bar: 1b}

      Whereas we can do

      Foo[0]
      Foo[0].fooz{bar: 0b}
      {bar: 0b} (if bar is in the root tag)
      Foo{bar: 0b} (if bar is a child of Compound Foo)

      independently.

      This is thus inconsistent.

            Unassigned Unassigned
            theogiraudet Théo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: