Minecraft: Ultimate Guide to Mob Annihilation

Author: Christian Feb 22,2025

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:

  1. Enter your world.
  2. Press Esc.
  3. Select "Open to LAN."
  4. 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.

Minecrafr Open to Lan Screen  Java Edition

Bedrock Edition:

  1. Navigate to your worlds.
  2. Select the world you want to modify.
  3. Click the pencil icon.
  4. In the settings menu, toggle "Cheats" to "On."

Minecraft Cheats Screen Bedrock edition as part of an article about how to kill mobs.

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] (@e selects all entities; type=!minecraft:player excludes the player.)

  • Kill Specific Mobs: /kill @e[type=minecraft:chicken] (Replaces chicken with 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.)
  • Kill Specific Mobs Within a Radius:

    • Java Edition: /kill @e[distance=..15,type=minecraft:sheep]
    • Bedrock Edition: /kill @e[r=10,type=minecraft:sheep]

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.