Home >  News >  How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

Authore: VioletUpdate:Feb 27,2025

Mastering the Minecraft Kill Command: A Comprehensive Guide

There are many reasons to eliminate mobs in Minecraft, and the /kill command offers the most straightforward approach. However, this command requires precise syntax. This guide details how to effectively use the /kill command to target various mobs.

Prerequisites: Enabling Cheats

Before using any commands, ensure your world has cheats enabled. The instructions below explain how to do this for both Java and Bedrock editions.

The /kill Command: Syntax and Usage

The basic /kill command, when used alone (/kill), will unfortunately target the player. To target mobs, you must specify your target using selectors.

  • Killing All Mobs:

    /kill @e[type=!minecraft:player] This command targets all entities (@e) except players (type=!minecraft:player).

  • Killing Specific Mob Types:

    /kill @e[type=minecraft:chicken] This command targets all chickens. Replace minecraft:chicken with the desired mob type (e.g., minecraft:sheep, minecraft:zombie).

  • 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 10 blocks.

The game autocompletes commands, minimizing the need for memorization.

Important Selectors:

Familiarize yourself with these 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, then select "Open to LAN."
  3. Toggle "Allow Commands" to "On." Note: This only enables cheats for the current session. To permanently enable cheats, create a new world with cheats enabled.

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 settings menu, toggle "Cheats" to "On."

With these instructions, you can effectively manage mobs in your Minecraft world. Minecraft is available on PlayStation, Xbox, Nintendo Switch, PC, and mobile devices.