For my Minecraft map I have decided that when a player holds this sword he will gain speed 2 but it seems that it doesn't detect when I am holding the item.
This is the command I used:
/execute as @a[nbt={SelectedItem:[{Slot:0b,id:"minecraft:iron_sword",tag:{display:{Name:"{\"Kurikara\":\"\"}"}}}]}] run say hey
The command itself isn't highlighted red saying there is an error, but when it comes to actually detecting my item it never runs the command /say
so i think something is wrong elsewhere in the command.