/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
Attachments
Comments 5
i just tried this command to detect the item: /execute if entity @a[nbt={id: "minecraft:stone", Count: 1b, tag: {display: {Lore: ['[
{"text":"monkey"}
]'], Name: '[
{"text":"monkey"}]'}}}] run say hi . as that was wat the "/data get entity @s SelectedItem" gave me. and still does not function.
Do
/data get entity @s SelectedItem
to observe that you are not checking for the data as it appears