-1

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.

2
  • minecraftplzhelp nice name lol
    – sysfiend
    Commented Nov 25, 2016 at 17:54
  • @e effects all entities, that includes players and yourself Commented Nov 26, 2016 at 14:52

4 Answers 4

4

If it's vanilla version, you can use

/kill @e[type=Zombie]

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

3

You can also use

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

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

1
  • 2
    Be aware this will also kill armor stands.
    – Skylinerw
    Commented Nov 25, 2016 at 18:36
2

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

/kill @e[type=Zombie]
2

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 .