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

execute with "SelectedItem" selector does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.18.1
    • None
    • Optifine 1.18.1, (testing world file attached)
    • Unconfirmed
    • (Unassigned)

      /give @p stone{display:{Name:'[

      {"text":"monkey"}

      ]',Lore:['[\{"text":"monkey"}]']}} 1

      /execute if entity @a[nbt={SelectedItem:{tag:{display:{Name:"\"monkey\"",Lore:["monkey"]}}}}] run say hi

            Unassigned Unassigned
            sacdj sacdj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: