How To Kill All Mobs in Minecraft

Author : Zoey Apr 05,2025

In *Minecraft*, there are numerous reasons you might want to eliminate mobs. The most straightforward method to do this is by utilizing commands, specifically the /kill command. This command, while simple, has a few nuances you should be aware of. Here’s a detailed guide on how to use the /kill command to target all mobs in *Minecraft*.

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

Before diving into the /kill command, ensure you're playing on a world where cheats are enabled. If you're unsure how to activate cheats, skip to the next section.

The /kill command itself is straightforward; simply type /kill into the chat box. However, this will only result in your own character's demise, which is not the goal here. To target specific entities, you need to add some syntax before the /kill command.

To kill all mobs, the command you need is:

/kill @e[type=!minecraft:player]

In this command, @e represents all entities, and the brackets specify to exclude players, ensuring you don't accidentally kill yourself.

You can also target specific types of mobs. For instance, to eliminate all chickens, use:

/kill @e[type=minecraft:chicken]

If you want to kill mobs within a certain radius, say 15 blocks, the commands vary slightly between editions:

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

/kill @e[r=10] – Bedrock Edition

For targeting a specific mob within 15 blocks, you would use:

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

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

Both versions of *Minecraft* will auto-complete these commands, so you don’t need to memorize them. The /kill command is user-friendly and you’ll get the hang of it after a few tries.

Additionally, there are other selectors besides @e that target different entities:

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

For more *Minecraft* tips, check out the best Y levels for diamonds.

How To Turn On Cheats/Commands in Minecraft

Remember, the /kill command won’t work unless you’re in a world with cheats enabled. Here’s how to turn on cheats in both Java and Bedrock editions.

Java Edition

Minecraft Open to LAN Screen Java Edition

To enable cheats in Java Edition, enter your world, press Esc, and select “Open to LAN.” You’ll see an option labeled “Allow Commands”; toggle it to On. Note that you’ll need to repeat this process each time you open the world. For a permanent solution, create a new world with cheats enabled:

  1. From the main menu, click on Singleplayer.
  2. Select your world and click on “Re-create” at the bottom.
  3. In the new menu, set “Allow Commands” to On.

Bedrock Edition

Minecraft Cheats Screen Bedrock Edition

Enabling cheats in Bedrock Edition is simpler. Navigate to your worlds, click the pencil icon next to the world you want to modify. In the new menu, find the “Cheats” option at the bottom right, toggle it to On.

Now you're equipped with everything you need to know about using the /kill command to manage mobs in *Minecraft*.

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