I don't know if something about tags has changed between the 1.13 guides I keep finding and now, but I cannot get tags to function. I am giving the player an item with this code:
And in whatever manner works best, I want to be able to execute @a[nbt(...)] run (...) and have it work. I'm really good at working from examples, so once I get this item, I should have no trouble with others in the future, I can just reverse-engineer.
I don't know if something about tags has changed between the 1.13 guides I keep finding and now, but I cannot get tags to function. I am giving the player an item with this code:
And in whatever manner works best, I want to be able to execute @a[nbt(...)] run (...) and have it work. I'm really good at working from examples, so once I get this item, I should have no trouble with others in the future, I can just reverse-engineer.
I don't understand what you are trying to achieve but here is the command for detecting a named held item:
/execute as @a[nbt={SelectedItem:{id:"minecraft:written_book",tag:{display:{Name:"Book of Teleportation"}}}}] at @s run ...
if this doesn't work, change Name:"Book of Teleportation" to Name:"\"Book of teleportation\""
I don't know if something about tags has changed between the 1.13 guides I keep finding and now, but I cannot get tags to function. I am giving the player an item with this code:
And in whatever manner works best, I want to be able to execute @a[nbt(...)] run (...) and have it work. I'm really good at working from examples, so once I get this item, I should have no trouble with others in the future, I can just reverse-engineer.
I don't understand what you are trying to achieve but here is the command for detecting a named held item:
if this doesn't work, change Name:"Book of Teleportation" to Name:"\"Book of teleportation\""
Command block engineer // Developer // #TeamTrees