You can now check if a player is wearing armor using the "ifPlayerHeadIs"
", "ifPlayerChestIs", "ifPlayerLegsAre", and "ifPlayerFeetAre":
Code (Text):
ifPlayerHeadIs:
- "minecraft:DIAMOND_HELMET"
- "minecraft:GOLD_HELMET"
ifPlayerChestIs: "minecraft:IRON_CHESTPLATE"
# Set one of these to "nothing" to require the player doesn't wear armor in this slot
ifPlayerLegsAre: "nothing"
action: sendMessage
messages:
- "You are wearing either a diamond or gold helmet"
- "AND you are wearing an iron chestplate"
- "AND you are wearing nothing on your legs"
- "you could be wearing anything, or nothing, on your feet"