Home News > How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

by Emery Mar 04,2025

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

There are many reasons to eliminate mobs in Minecraft. The simplest method involves using commands, specifically the /kill command. However, even this seemingly straightforward command has nuances. This guide explains how to use it effectively.

Prerequisites: Enabling Cheats

Before using any commands, ensure your Minecraft world has cheats enabled. Instructions for both Java and Bedrock editions are provided below.

The /kill Command: Syntax and Usage

The basic /kill command is simple: /kill. However, this will kill you. To target specific entities, use the following syntax:

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

  • Killing Specific Mob Types: /kill @e[type=minecraft:chicken] (Replaces chicken with the desired mob type.)

  • Killing Mobs Within a Radius:

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

    • 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 a radius of 10 blocks.)

Command autocompletion assists, minimizing memorization.

Important Entity Selectors:

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

Enabling Cheats in Minecraft:

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."
  5. Commands are now active, but this setting resets each time you load the world. To permanently enable cheats, create a world copy with cheats enabled. In the main menu, select "Singleplayer," choose your world, click "Re-create," and enable "Allow Commands" during world creation.

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

Latest Apps