Mastering Minecraft Mob Elimination: A Guide to the /kill Command
There are many reasons you might want to eliminate mobs in Minecraft. The easiest method is using commands, specifically the /kill command. However, even this simple command has nuances. This guide explains how to use it effectively.
Before You Begin: Enabling Cheats
The /kill command requires a world with cheats enabled. If cheats aren't already on, 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.
- Select the world you want to modify.
- Click the pencil icon.
- In the settings menu, toggle "Cheats" to "On."

Using the /kill Command
The basic /kill command, entered alone, will kill the player. To target mobs, use these variations:
-
Kill All Mobs (Except 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 will autocomplete commands, so precise memorization isn't necessary.
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.