Home >  News >  How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

by Christian Feb 28,2025

Mastering Minecraft Mob Elimination: A Comprehensive Guide to the /kill Command

There are many reasons to eliminate mobs in Minecraft. The most efficient method is using commands, specifically the /kill command. While seemingly simple, this command offers nuanced control. 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 activated, follow these steps:

Java Edition:

Minecrafr Open to Lan Screen  Java Edition

  1. Enter your world.
  2. Press Esc.
  3. Select "Open to LAN."
  4. Toggle "Allow Commands" to "On."

Note: This enables cheats only for the current session. To permanently enable cheats, create a world copy with cheats enabled using the "Re-create" option in the singleplayer menu.

Bedrock Edition:

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

  1. Locate your worlds.
  2. Select the world and click the pencil icon for editing.
  3. In the bottom-right menu, find the "Cheats" option and toggle it "On."

Using the /kill Command

The basic /kill command (without parameters) targets the player. To target mobs, use the following syntax:

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

  • Kill specific mobs: /kill @e[type=minecraft:chicken] (Replace minecraft: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 autocompletes commands, making memorization unnecessary.

Important Selectors:

Understanding these selectors enhances command precision:

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

Trending Games More >