Mastering Minecraft Mob Elimination: A Comprehensive Guide to the /kill Command
There are many reasons you might want to eliminate mobs in Minecraft. The most efficient method is using commands, specifically the /kill command. However, even this seemingly simple command has nuances. This guide explains how to target and eliminate mobs effectively.
Prerequisites: Enabling Cheats
Before using any commands, ensure your Minecraft world has cheats enabled. The instructions below detail how to do this for both Java and Bedrock editions.
The /kill Command: Syntax and Usage
The basic /kill command is straightforward: /kill. However, this will kill you. To target mobs, you need to add selectors.
-
Killing All Mobs:
/kill @e[type=!minecraft:player]This targets all entities (@e) except players (type=!minecraft:player). -
Killing Specific Mob Types:
/kill @e[type=minecraft:chicken]This kills all chickens. Replaceminecraft:chickenwith the desired mob type (e.g.,minecraft:sheep,minecraft:zombie). -
Killing Mobs Within a Radius:
- Java Edition:
/kill @e[distance=..15]kills all entities within 15 blocks. - Bedrock Edition:
/kill @e[r=10]achieves the same result (using radiusr).
- Java Edition:
-
Killing Specific Mobs Within a Radius:
- Java Edition:
/kill @e[distance=..15,type=minecraft:sheep]kills sheep within 15 blocks. - Bedrock Edition:
/kill @e[r=10,type=minecraft:sheep]performs the same action.
- Java Edition:
The game autocompletes commands, minimizing the need for memorization.
Important Selectors:
Familiarize yourself with these selectors:
@p: The nearest player@r: A random player@a: All players@e: All entities@s: Yourself
Enabling Cheats in Minecraft:
Java Edition:

- Enter your world.
- Press Esc.
- Select "Open to LAN."
- Toggle "Allow Commands" to "On."
Commands are active for that session only. To permanently enable cheats, create a world copy with cheats enabled using the "Re-create" option in the singleplayer menu.
Bedrock Edition:

- Locate your worlds.
- Select the world and click the pencil icon.
- In the settings menu, toggle "Cheats" to "On."
Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.