Mojira Archive
MC-170124

Compound filters in the NBT path can be followed by an array index

To Reproduce

  1. /data get entity @s {}[]
    

Expected

Reports syntax error. Because if something matches a compound filter, it must be a TAG_Compound. You would never get something by using index from a TAG_Compound.

Actual

No syntax error was reported.

Unresolved

[Mod] SPGoding

2020-01-19, 06:52 PM

2024-12-28, 11:59 AM

6

2

Confirmed

Low

Platform

Commands

nbt-path

1.15.2 Pre-release 2 - 1.21.41.15.2 Pre-release 2, 1.15.2, 20w06a, 20w07a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w14a, 20w16a, 20w17a, 20w18a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 6, 1.16.2 Release Candidate 1, 1.16.3, 1.16.4, 20w45a, 20w51a, 21w03a, 1.17 Pre-release 2, 1.19, 1.19.2, 1.21.4

-