Minecraft: check which armor to how?

Em
- in Plugins
2

I would like to check if a player is wearing dyed leather armor in Minecraft. In this case the armor consists of:

Helmet: Black leather helmet
Breastplate: Yellow leather breastplate
Pants: Yellow leather pants
Shoes: Yellow leather shoes

I would like to check if the player is wearing this armor.

Would you do something like that when creating a server using command blocks or better using a plugin because of the performance.

Po

/ execute if entity @p [nbt = {Inventory: [{id: "minecraft: leather_helmet", tag: {display: {color: 1908001}}}]}]

The performance does not suffer from it. That is not enough to fully utilize the server.

You can find the translation of all colors in https://minecraft.gamepedia.com/...#Item_data.

gl

/ execute if entity @a [nbt = {Inventory: [{id: "minecraft: leather_helmet", slot: 103b, tag: {display: {color: 1908001}}}, {id: "minecraft: leather_chestplate", slot: 102b, tag: {display: {color: 16701501}}}, {id: "minecraft: leather_leggings", Slot: 101b, tag: {display: {color: 16701501}}}, {id: "minecraft: leather_boots", Slot: 100b, tag: {display: {color: 16701501}}}]}]