I am trying to make a door open when a player is holding a nametag named "Key 1224", unfortunately, I may have done something very wrong or Minecraft is simply not working.
This is my command:
/testfor @a[r=10] {SelectedItem:{id:"minecraft:name_tag",tag:{display:{Name:"Key 1224"}}}}
I have set up my comparator system correctly - or at least I think I did - but it isn't working.
Could anyone help?