How do you test for a TAG on certain armor pieces?
Looking for on the web but can only find if it's equipped or for its name.
Looking for on the web but can only find if it's equipped or for its name.
2
On a player (with an iron chestplate):
On the ground (as an iron chestplate):
/execute if entity @a[nbt={Inventory:[{id:"minecraft:iron_chestplate",Count:1b,Slot:102b,tag:{custom_tag:1}}]}]On the ground (as an iron chestplate):
/execute if entity @e[type=item,nbt={Item:{id:"minecraft:iron_chestplate",Count:1b,tag:{custom_tag:1}}}]What are you trying to do? Are you trying to select any player that has a certain item, or are you trying to select an item on the ground that has a certain tag?
