Home > News > How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

By BlakeFeb 23,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 involves using commands, specifically the /kill command. However, this seemingly 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 enabled, follow these instructions:

Java Edition:

  1. Load your world.
  2. Press Esc.
  3. Select "Open to LAN."
  4. Toggle "Allow Cheats" 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 want 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, simply typing /kill, will unfortunately kill your player character. To target specific entities, you need to add selectors.

  • Killing All Mobs: /kill @e[type=!minecraft:player] This targets all entities (@e) except the player (type=!minecraft:player).

  • Killing Specific Mob Types: /kill @e[type=minecraft:chicken] This kills all chickens. Replace minecraft:chicken with the desired mob type.

  • Killing Mobs Within a Radius:

    • Java Edition: /kill @e[distance=..15] Kills all entities within 15 blocks. Adjust 15 as needed.
    • Bedrock Edition: /kill @e[r=10] Kills all entities within a radius of 10 blocks. Adjust 10 as needed.
  • Killing Specific Mobs Within a Radius:

    • Java Edition: /kill @e[distance=..15,type=minecraft:sheep] Kills all sheep within 15 blocks.
    • Bedrock Edition: /kill @e[r=10,type=minecraft:sheep] Kills all sheep within a radius of 10 blocks.

The game will autocomplete commands, so you don't need to memorize the exact syntax.

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

Previous article:Warlock Tetropuzzle takes Tetris-likes to the next level, with magic (and tile-matching) Next article:James Gunn's Superman: Unmasking the Villains - Ultraman, The Hammer of Boravia, and The Engineer