I am trying to write a /execute command that activates if a certain NBT data tag (Text on a sign) is a certain value, but I'm not sure how to do it. If anyone could help me with this that would be very helpful.
execute if block <x> <y> <z> minecraft:sign{Text1:"{\"text\":\"hi\"}"} run ...
or you can use this, this one will act just like the /testforblock command so you can put a comparator next to the command block and get an output, or use the above one to set your own action
execute if block <x> <y> <z> minecraft:sign{Text1:"{\"text\":\"hi\"}"}
I am trying to write a /execute command that activates if a certain NBT data tag (Text on a sign) is a certain value, but I'm not sure how to do it. If anyone could help me with this that would be very helpful.
Thanks!
Hi, use this:
or you can use this, this one will act just like the /testforblock command so you can put a comparator next to the command block and get an output, or use the above one to set your own action
Command block engineer // Developer // #TeamTrees