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. While seemingly simple, this command offers nuanced functionality. This guide explains how to use it effectively.
Prerequisites: Enabling Cheats
Before utilizing the /kill
command, ensure your world has cheats enabled. Skip ahead if you've already done this.
The /kill Command: Syntax and Usage
The basic command, /kill
, will unfortunately only kill the player. To target mobs, you need to add specific syntax.
To eliminate all mobs:
/kill @e[type=!minecraft:player]
— @e
selects all entities; [type=!minecraft:player]
excludes the player.
Targeting Specific Mobs:
To kill all chickens, for example:
/kill @e[type=minecraft:chicken]
Adding Distance Restrictions:
To kill all mobs within a 15-block radius:
/kill @e[distance=..15]
– Java Edition
/kill @e[r=10]
– Bedrock Edition
To target a specific mob type within a radius:
/kill @e[distance=..15,type=minecraft:sheep]
– Java Edition
/kill @e[r=10,type=minecraft:sheep]
– Bedrock Edition
Minecraft autocompletes commands, so memorization isn't strictly necessary.
Key Entity Selectors:
Beyond @e
, other useful selectors include:
@p
– nearest player@r
– random player@a
– all players@s
– yourselfEnabling Cheats in Minecraft:
Cheats must be enabled for these commands to function. Here's how:
Java Edition:
Bedrock Edition:
Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.