Quote from RawrStreams»
Searched the forums and cant seem to find what I'm looking for.
I'm trying to set a command block to allow teleport when pressing a button, but only teleport the person when holding a tripwire hook with the name KEY
So many things have changed to where my old commands don't work anymore
/tp @a[nbt={SelectedItem:{id:"minecraft:stick",tag:{display:{Name:"{\"text\":\"key_name\"}"}}}}] <x> <y> <z>
the name detection syntax depends on how you named the item, this example should work for items named in an anvil.
2