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

"SelectedItem" nbt tag for players can be tested for with target selectors but cant be found or obtained with /data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 18w20c
    • None
    • Confirmed

      If you hold a stick in your hand and perform this command:

      /say @p[nbt={SelectedItem:{id:"minecraft:stick"}}]
      

      it will say your name.

      But if you use:

      /data get entity @p SelectedItem
      

      It claims that doesn't exist.

            Unassigned Unassigned
            Bluenade Cody Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: