/scoreboard objectives add armor dummy
Adds a score called armor that can only be changed with commands
/scoreboard players set @a armor 0
Sets the score at 0, this is used to super-fast reset the score
/scoreboard players set @a armor n {Inventory:[{Slot:xb,id:"minecraft:id"}]}
Sets at "n" the score of all the players with "id" in their "x" slot
Helmet slot: 103b
Chestplate slot: 102b
Leggings slot: 101b
Boots slot: 100b
/clear @a[score_armor_min=n,score_armor=n] id
Removes "id" from the inventory of all the players with the score setted at "n"
Recent Comments