Forgot password
Enter the email address you used when you joined and we'll send you instructions to reset your password.
If you used Apple or Google to create your account, this process will create a password for your existing account.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Reset password instructions sent. If you have an account with us, you will receive an email within a few minutes.
Something went wrong. Try again or contact support if the problem persists.
Cactus Flower in Minecraft.

How To Kill All Mobs in Minecraft

There could be many reasons you’d want to kill mobs in Minecraft. The easiest way to do this is by using commands – the /kill command to be specific. However, even this simple command has a bit of intricacy. So, here is how you can call all mobs in Minecraft.

Recommended Videos

How To Use the Kill Command to Kill All Mobs in Minecraft

Before you can use the kill command, make sure you are on a world with cheats on. Skip to the next heading if you don’t know how to turn on cheats. 

The kill command itself is quite simple; all you need to do is type /kill in the chat box. However, this will just end up killing you, which is not what we want. You can specify what you want to kill by typing some syntax in front of the /kill.

Now, if your goal is to just kill all mobs, the command for that is:

/kill @e[type=!minecraft:player] – Here @e means all entities, then the stuff inside the brackets just specifies not to kill you.

You can use the kill command to also kill specific types of mobs. For instance, if you want to just kill all chickens. The command will be:

/kill @e[type=minecraft:chicken]

You can even specify the distance. Let’s say you want to kill all mobs within 15 blocks; the command for that will be:

kill @e[distance=..15] – Java Edition

kill @e[r=10] – Bedrock Edition

If you want to kill a specific mob within 15 blocks, you can do it like this:

kill @e[distance=..15, type=minecraft:sheep] – Java Edition

kill @e[r=10,type=minecraft:sheep] – Bedrock Edition

Both versions will autocomplete the commands so you don’t really need to memorize these. The kill command is relatively simple to use and you will figure it out after one or two tries. 

Now there are other selectors than @e that target different things. The important ones to know are these:

  • @p – the nearest player
  • @r – a random player
  • @a – all players
  • @e – all entities
  • @s – yourself

Related: Best Y Levels for Diamonds in Minecraft

How To Turn On Cheats/Commands in Minecraft

The kill mobs commands won’t work if you don’t have a Minecraft world with cheats on. If you don’t have cheats on your world, here is how you can do it.

Java Edition

Minecrafr Open to Lan Screen  Java Edition
  • All you need to do is go into your world. 
  • After loading in, press Esc and then Select “Open to Lan.’
  • There you will see the option Allow Commands, set it to On. Now, commands will work in your world.

However, you will have to repeat this step every time you open your world. If you want to permanently enable cheats, you will have to make a copy of the world with cheats on. 

To do this,

  • Click on Singleplayer in the main menu, and you will be taken to a new menu with all your worlds.
  • Select your world and click on Re-create at the bottom.
  •  It will then take you to a new menu, where you will see the Allow Commands, set it to On, and you are done.

Bedrock Edition

Minecraft Cheats Screen Bedrock edition as part of an article about how to kill mobs.

Turning cheats on in the Bedrock edition is simpler than Java. Just navigate to where your worlds are at. 

  • Then, click on the pencil next to the world you want to turn cheats on. 
  • You will see a Cheats option at the bottom right menu in the new menu. 
  • Click on it and in the first option there will be a toggle for Cheats, set it to On. 

And that’s everything you need to know about how to kill all mobs in Minecraft.

Minecraft is available now on PlayStation, Xbox, Nintendo Switch, PC, and mobile.


The Escapist is supported by our audience. When you purchase through links on our site, we may earn a small affiliate commission. Learn more about our Affiliate Policy
Author
Image of Burair Noor
Burair Noor
Burair is a freelance writer at The Escapist where he covers content related to games, anime/manga, TV shows and movies. More than a writer, Burair is a lifelong and passionate gamer always keeping an eye out for what's new. When not doing that, you will find him listening to music or watching F1.