Mastering Minecraft Mob Elimination: A Comprehensive Guide to the /kill Command
There are many reasons to eliminate mobs in Minecraft. The simplest method involves using commands, specifically the /kill command. However, this seemingly straightforward command has some nuances. This guide details how to effectively use the /kill command to target various mobs.
Before You Begin: Enabling Cheats
The /kill command requires a world with cheats enabled. If cheats aren't already activated, follow these instructions:
Java Edition:
- Enter your world.
- Press Esc.
- Select "Open to LAN."
- Toggle "Allow Commands" to "On."
Remember, this enables cheats only for that session. To permanently enable cheats, create a copy of your world with cheats enabled during the world creation process.

Bedrock Edition:
- Navigate to your worlds.
- Click the pencil icon next to the desired world.
- In the settings menu, toggle "Cheats" to "On."

Using the /kill Command
The basic /kill command, entered alone, will unfortunately kill the player. To target mobs, you need to add selectors.
-
Kill all mobs (excluding the player):
/kill @e[type=!minecraft:player](@eselects all entities;type=!minecraft:playerexcludes the player.) -
Kill specific mobs:
/kill @e[type=minecraft:chicken](Replaceschickenwith the desired mob type.) -
Kill mobs within a radius:
- Java Edition:
/kill @e[distance=..15](Kills mobs within 15 blocks.) - Bedrock Edition:
/kill @e[r=10](Kills mobs within 10 blocks.)
- Java Edition:
-
Kill specific mobs within a radius:
- Java Edition:
/kill @e[distance=..15,type=minecraft:sheep] - Bedrock Edition:
/kill @e[r=10,type=minecraft:sheep]
- Java Edition:
The game autocompletes commands, minimizing the need for memorization.
Important Selectors:
@p: Nearest player@r: Random player@a: All players@e: All entities@s: Yourself
Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.
