1
Clear Certain Armor Slot?
Hello! I am currently making a map, where it runs a command when players put on a pair of chain boots. Here is the command I am using:
Then I have a "Testfor" redstone clock. Is there anyway to remove the pair of chain boots automatically? I want it to be cleared, I don't want it going back to them.
/scoreboard players set @a armor 1 {Inventory:[{Slot:103b,tag:{display:{Name:"Armor_Name_Here"}}}]
Then I have a "Testfor" redstone clock. Is there anyway to remove the pair of chain boots automatically? I want it to be cleared, I don't want it going back to them.
Create an account or sign in to comment.
4
1
Yea no problem, but if you press tab on any command it should help for example.
/replaceitem tab tab tab tab
the list of slots would be.. feet, legs, chest, head
/replaceitem tab tab tab tab
the list of slots would be.. feet, legs, chest, head
1
Hey! Thanks! How would I do this for other slots? For example, for leggings would it be leggings, pants, legs, or what? Just wondering, since it is feet not boots.
1
Repeating command block
/replaceitem entity @a[score_armor_min=1] slot.armor.feet air
1
I'm not sure if you can clear certain spots in the inventory, but you can do /clear [player] chainmail_boots to clear all chainmall boots in your inventory. It will stop players from wearing chain boots.