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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.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
    • Confirmed
    • Commands
    • Low
    • Platform

      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.

            Unassigned Unassigned
            SPGoding [Mod] SPGoding
            Votes:
            6 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: