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.

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

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_Mind
    Jul 1 '16 at 15:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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