How To Kill All Mobs in Minecraft

Author: Olivia Feb 27,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 nuances. This guide details 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 wish 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 your player character. To target mobs, you need to specify your target.

Killing All Mobs:

/kill @e[type=!minecraft:player]

This command targets all entities (@e) except players (type=!minecraft:player).

Killing Specific Mob Types:

To kill a specific mob type (e.g., chickens):

/kill @e[type=minecraft:chicken]

Targeting Mobs by Distance:

You can also specify a distance. For mobs within 15 blocks:

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

To target a specific mob type within a certain 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:

Understanding these selectors is crucial for precise targeting:

  • @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.