I'm making a puzzle map and am lowering player health using attributes. I want to know how to clear iron pants that the player is NOT wearing (not in the leg slot). I have tried clearing iron pants, but that also removes the pants in the armor slot. The players will have other items in their inventory.
-
2Have you made any attempt to solve this yourself? Arqade works better when askers show effort to solve their own problems; we see that you have a problem you've worked on, and answerers respond to that. You also get a more specific answer that's tailored exactly to the part you're stuck, and Arqade gets a very specific question. Everybody wins!– FrankCommented Jun 29, 2016 at 22:38
-
1@Frank Is there a meta most or something that lists these stock comments?– rivermontCommented Jun 29, 2016 at 22:56
-
@rivermont-WillB. Nope. It's just mine.– FrankCommented Jun 29, 2016 at 23:02
Add a comment
|
1 Answer
Other thing you can do is clear both pants and then give the player a new set of pants in the appropriate armor slot.
-
I am disappointed in myself for not thinking of using a chain command block. Thanks for the quick reply!– RS_MindCommented Jul 1, 2016 at 15:04