In *Minecraft*, there are numerous reasons you might want to eliminate mobs, and using commands is the quickest way to achieve this. The /kill command, while straightforward, does require some understanding to use effectively. Here's a comprehensive guide on how to utilize this command to target all mobs in *Minecraft*.
How To Use the Kill Command to Kill All Mobs in Minecraft
Before you can wield the power of the /kill command, ensure that you're playing on a world where cheats are enabled. If you're unsure about enabling cheats, skip to the next section for instructions.
The /kill command is simple to execute—just type /kill into the chat box. However, without additional parameters, this command will result in your own demise, which is certainly not the goal here. To target specific entities, you need to add some syntax before the /kill command.
To kill all mobs, use the following command:
/kill @e[type=!minecraft:player] - Here, @e stands for all entities, and the specification within the brackets ensures that you are not included in the kill order.
You can also tailor the /kill command to eliminate specific types of mobs. For example, to eradicate all chickens, the command would be:
/kill @e[type=minecraft:chicken]
Moreover, you can set a distance parameter to kill mobs within a certain radius. To kill all mobs within 15 blocks in Java Edition, the command is:
/kill @e[distance=..15]
In Bedrock Edition, to achieve the same result within 10 blocks, you would use:
/kill @e[r=10]
To target a specific type of mob within a 15-block radius in Java Edition, the command would look like this:
/kill @e[distance=..15, type=minecraft:sheep]
In Bedrock Edition, to kill sheep within a 10-block radius, you would use:
/kill @e[r=10, type=minecraft:sheep]
Both versions of *Minecraft* will autocomplete these commands, so you don't need to memorize them. With a couple of tries, you'll master the /kill command.
Besides @e, there are other selectors you might find useful:
- @p - targets the nearest player
- @r - targets a random player
- @a - targets all players
- @e - targets all entities
- @s - targets yourself
Related: Best Y Levels for Diamonds in Minecraft
How To Turn On Cheats/Commands in Minecraft
To use the /kill command effectively, you must play in a *Minecraft* world where cheats are enabled. Here's how to turn on cheats in both Java and Bedrock editions.
Java Edition

To temporarily enable cheats in Java Edition, enter your world, press Esc, and select "Open to LAN." In the resulting menu, toggle "Allow Commands" to On. Note that you'll need to repeat this process every time you start the world. For a permanent solution, create a new world with cheats enabled:
- From the main menu, select Singleplayer.
- Choose your world and click "Re-create" at the bottom.
- In the new menu, set "Allow Commands" to On.
Bedrock Edition

Enabling cheats in Bedrock Edition is straightforward. Navigate to your world list, click the pencil icon next to the world you want to modify, and in the bottom right of the new menu, toggle "Cheats" to On.
With these steps, you're now equipped with the knowledge to efficiently manage mobs in *Minecraft* using the /kill command.
*Minecraft is available now on PlayStation, Xbox, Nintendo Switch, PC, and mobile.*