mojira.dev
MC-196476

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

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.

Environment

Java 1.8.0_51 64 bits
Windows 10

Linked issues

Comments 1

Thank you for your report!
We're tracking this issue as MC-139625, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit

migrated

(Unassigned)

Unconfirmed

1.16.1

Retrieved