Home News How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

Author : Jonathan Feb 28,2025

Mastering the Minecraft Mob-Killing Commands: A Comprehensive Guide

There are many reasons to eliminate mobs in Minecraft. The most straightforward method involves using commands, specifically the /kill command. However, this seemingly simple command has 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 the instructions below for your Minecraft edition:

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

Note: 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.

Bedrock Edition:

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

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

Using the /kill Command

The basic /kill command, entered alone, will kill the player. To target mobs, you need to add selectors.

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

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

  • Kill Mobs Within a Radius:

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

    • Java Edition: /kill @e[distance=..15,type=minecraft:sheep]
    • Bedrock Edition: /kill @e[r=10,type=minecraft:sheep]

Important Selectors:

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

The game autocompletes commands, making them relatively easy to learn.

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

Latest Articles More