Mastering Minecraft Mob Elimination: A Guide to the /kill
Command
There are many reasons to eliminate mobs in Minecraft. The most efficient method is using the /kill
command, though it requires specific syntax. This guide details how to use this command effectively.
Prerequisites: Ensure your Minecraft world has cheats enabled. Instructions for enabling cheats are provided below.
The /kill
Command:
The basic command, /kill
, will only kill the player executing it. To target mobs, you need to add selectors.
-
Killing All Mobs:
/kill @e[type=!minecraft:player]
This targets all entities (@e
) except the player (type=!minecraft:player
). -
Killing Specific Mob Types:
/kill @e[type=minecraft:chicken]
This kills all chickens. Replaceminecraft:chicken
with 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. You can adjust the15
to change the radius. - Bedrock Edition:
/kill @e[r=10]
Similar to Java, but usesr
to specify the radius (10 blocks in this example).
- 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]
Same functionality as Java, using ther
radius selector.
- Java Edition:
The game autocompletes commands, making memorization unnecessary.
Important Selectors:
@p
: Nearest player@r
: Random player@a
: All players@e
: All entities@s
: Yourself
Enabling Cheats/Commands:
Commands won't function without cheats enabled. Here's how to enable them:
Java Edition:
- Enter your world.
- Press Esc, then select "Open to LAN."
- Toggle "Allow Commands" to "On."
- Note: This enables cheats only for that session. To permanently enable cheats, create a world copy with cheats enabled using the "Re-create" option in the singleplayer world menu.
Bedrock Edition:
- Navigate to 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.