Mastering Minecraft Mob Elimination: A Comprehensive Guide to the /kill
Command
There are many reasons why you might want to eliminate mobs in Minecraft. The most straightforward method is using commands, specifically the /kill
command. However, even this seemingly simple command has some nuances. This guide will show you how to effectively use the /kill
command to target and remove various mobs.
Using the /kill
Command
Before using any commands, ensure your world is set to allow cheats. (Instructions on enabling cheats are provided below.)
The basic /kill
command, simply typing /kill
in the chat, will unfortunately kill you. To target specific entities, you need to add syntax.
To kill all mobs (excluding the player):
/kill @e[type=!minecraft:player]
(@e selects all entities; type=!minecraft:player
excludes the player.)
To kill a specific mob type (e.g., all chickens):
/kill @e[type=minecraft:chicken]
Targeting mobs within a specific radius:
/kill @e[distance=..15]
(kills all entities within 15 blocks)/kill @e[r=10]
(kills all entities within 10 blocks)To target a specific mob type within a radius:
/kill @e[distance=..15,type=minecraft:sheep]
(kills sheep within 15 blocks)/kill @e[r=10,type=minecraft:sheep]
(kills sheep within 10 blocks)The game will autocomplete commands, so precise memorization isn't necessary. Experimentation will quickly familiarize you with the command's functionality.
Important Entity Selectors:
@p
: Nearest player@r
: Random player@a
: All players@e
: All entities@s
: YourselfEnabling Cheats/Commands in Minecraft
Commands won't function unless cheats are enabled in your world. Here's how to do it:
Java Edition:
Commands will work within this session. To permanently enable cheats, create a new world with cheats enabled from the main menu's "Singleplayer" section.
Bedrock Edition:
Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.