1

Testing for custom equips

Radi__ 4/29/20 4:05 pm
102
4/30/2020 2:55 am
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.
Posted by
Radi__
Level 17 : Journeyman Miner
2

  Have something to say?

JoinSign in

2

HoboMaggot
04/30/2020 2:55 am
Level 55 : Grandmaster Blob
history
On a player (with 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}}}]
1
mrurl42
04/29/2020 4:27 pm
Level 43 : Master Procrastinator
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?
1

Welcome