Mojira Archive
MC-139625

In NBT paths, a list with an index cannot be followed by a compound

The bug

When specifying an NBT path you're unable to let a compound be followed by a list after specifying the index.

Examples

(1) /execute if data entity @s SelectedItem{id:"minecraft:stone"}
(2) /execute if data entity @s Inventory[0]{id:"minecraft:stone"}

(1) is allowed and tests whether the SelectedItem of the player is stone, (2) is not allowed but should test whether the first compound in the Inventory list has an id of minecraft:stone.

Works As Intended

Alex³

[Mojang] Bartosz Bok

2018-11-19, 07:46 PM

2020-08-20, 02:22 AM

2018-11-29, 10:40 AM

4

11

Confirmed

Minecraft 18w46a, Minecraft 18w47a, Minecraft 18w47b

-