2

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.

3
  • 2
    Have 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!
    – Frank
    Commented Jun 29, 2016 at 22:38
  • 1
    @Frank Is there a meta most or something that lists these stock comments?
    – rivermont
    Commented Jun 29, 2016 at 22:56
  • @rivermont-WillB. Nope. It's just mine.
    – Frank
    Commented Jun 29, 2016 at 23:02

1 Answer 1

1

Other thing you can do is clear both pants and then give the player a new set of pants in the appropriate armor slot.

1
  • I am disappointed in myself for not thinking of using a chain command block. Thanks for the quick reply!
    – RS_Mind
    Commented Jul 1, 2016 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.