Home > News > How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

Author:Kristen Update:Mar 03,2025

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 simple command has some 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 activated, 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. Locate your worlds.
  2. Select the world you wish to modify.
  3. Click the pencil icon to edit world settings.
  4. In the bottom-right 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, simply typing /kill, will unfortunately kill you. To target mobs, you need to add selectors.

  • Kill All Mobs (Except the Player): /kill @e[type=!minecraft:player] (@e selects all entities; type=!minecraft:player excludes the player.)

  • Kill Specific Mob Types: /kill @e[type=minecraft:chicken] (Replace minecraft:chicken with the desired mob type, e.g., minecraft:sheep, minecraft:zombie.)

  • 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 a radius of 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]

Important Selectors:

  • @p: Nearest player
  • @r: Random player
  • @a: All players
  • @e: All entities
  • @s: Yourself

The command will autocomplete, so you don't need to memorize the exact syntax. Experiment and you'll quickly master it!

Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.