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

Using ranged values in NBT selector is valid but fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.16.2
    • None
    • Unconfirmed
    • (Unassigned)

      These commands work as intended:

      /execute if entity @p[nbt={ SelectedItemSlot: 0 }]
      /execute if entity @p[nbt={ XpLevel: 0 }]

      But you must of course have the left-most slot selected for the first one and be level 0 for the second one.

      But these ones always fail, even though the syntax is accepted:

      /execute if entity @p[nbt={ SelectedItemSlot: 0..8 }]
      /execute if entity @p[nbt={ XpLevel: 0.. }]

      Given what they select, they should always successfully find all connected players, at least the one executing the commands.

            Unassigned Unassigned
            AHL AHL
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: