Home News > How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

by Matthew 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 the /kill command, although its application requires some understanding. This guide details how to use this command effectively.

Prerequisites: Enabling Cheats

Before using any commands, ensure your Minecraft world has cheats enabled. The instructions below differ depending on your edition.

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 and click the pencil icon to edit settings.
  3. In the bottom-right menu, find the "Cheats" option and toggle it "On."

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

Using the /kill Command

The /kill command's basic syntax is straightforward, but requires parameters to target specific entities. Simply typing /kill will kill your own player character.

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

  • Killing a specific mob type (e.g., chickens): /kill @e[type=minecraft:chicken]

  • Killing mobs within a specific radius:

    • Java Edition: /kill @e[distance=..15] (kills entities within 15 blocks)
    • Bedrock Edition: /kill @e[r=10] (kills entities within 10 blocks)
  • Killing a specific mob type 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, minimizing the need for memorization.

Important Entity 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.

Latest Apps