This question already has an answer here:

Is there a way to kill all mobs other than /kill @e? For some reason, it kills me too. Someone told me to do something like

 /kill @e{type=Zombie} 

but every time I put it in, nothing happens.

marked as duplicate by RudolfJelin, Wrigglenite, Vemonus, Trent Hawkins, Timmy Jim Nov 26 '16 at 20:36

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.

  • minecraftplzhelp nice name lol – sysfiend Nov 25 '16 at 17:54
  • @e effects all entities, that includes players and yourself – George Willcox Nov 26 '16 at 14:52

If it's vanilla version, you can use

/kill @e[type=Zombie]

you were using {} instead of [], that was the problem.


You can also use

/kill @e[team=,type=!Player]

to kill all mobs, this saves items and other entities that aren't mobs.

  • 2
    Be aware this will also kill armor stands. – Skylinerw Nov 25 '16 at 18:36

Selector parameters must be encased in square brackets, not curly brackets:

/kill @e[type=Zombie]

Additionally, if you wish to kill all entities (Including items, item frames, etc.) excluding the player, you could do:

/kill @e[type=!Player]

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