Home > News > How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

Author:Kristen Update:Feb 28,2025

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

There are many reasons to eliminate mobs in Minecraft. The most straightforward method involves using commands, specifically the /kill command. However, even this simple command requires some understanding. This guide explains how to use it effectively.

Before using the /kill command, ensure your world has cheats enabled. Skip to the "Enabling Cheats" section if you need instructions on how to do this.

The basic /kill command is simple: type /kill in the chat box. However, this will kill you. To target specific entities, use additional syntax.

To kill all mobs:

/kill @e[type=!minecraft:player]: @e selects all entities; type=!minecraft:player excludes the player.

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

/kill @e[type=minecraft:chicken]

To specify kill distance:

  • Java Edition: /kill @e\[distance=..15] (kills mobs within 15 blocks)
  • Bedrock Edition: /kill @e\[r=10] (kills mobs within 10 blocks)

To kill a specific mob type within a certain distance:

  • Java Edition: /kill @e\[distance=..15,type=minecraft:sheep] (kills sheep within 15 blocks)
  • Bedrock Edition: /kill @e\[r=10,type=minecraft:sheep] (kills sheep within 10 blocks)

Both editions offer command autocompletion, minimizing the need for memorization. The command is intuitive and easily mastered with a couple of attempts.

Beyond @e, other selectors target different entities:

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

Enabling Cheats/Commands in Minecraft

The mob-killing commands won't function without cheats enabled. Here's how to enable them:

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."

Commands are now active, but you must repeat this process each time you open the world. For permanent cheats, create a world copy with cheats enabled:

  1. In the main menu, click "Singleplayer."
  2. Select your world.
  3. Click "Re-create."
  4. Toggle "Allow Commands" to "On."

Bedrock Edition

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

  1. Navigate to your worlds.
  2. Click the pencil icon next to the desired world.
  3. In the bottom-right menu, toggle "Cheats" to "On."

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