This question already has an answer here:

I use this command kill @e[type=!Player] to kill everything except for players, but does anyone know how to make it not kill tamed wolves/dogs as well as players?

marked as duplicate by MrLemon, SirBenet, MBraedley, Unionhawk, Shadow Z. Feb 21 '15 at 18:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Similarly to how you are doing it for player. Both wolves and dogs have the same entity name, "Wolf", so use this:

/kill @e[type=!Wolf]

Note: Keep in mind that this targets everything except wolves, which means that it kills all players (which was what OP's original question asked before the eidt).

  • how do you do it for wolfs and players – alixey999 Feb 21 '15 at 12:52
  • 2
    @alixey999 That's not what you asked, and unfortunately has a completely different and more complicated answer. – SirBenet Feb 21 '15 at 12:53
  • sorry i meant both of them but thx lot anyway – alixey999 Feb 21 '15 at 12:56
  • @Frank Ah, ok. Didn't see the edit. – Studoku Feb 21 '15 at 15:56
  • Feel free to dispute the downvotes, but that doesn't belong in your answer, I'm afraid. – Frank Feb 21 '15 at 16:56

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