Home News How To Kill All Mobs in Minecraft

How To Kill All Mobs in Minecraft

Author : Lucas Update:Feb 24,2025

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

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

Prerequisites: Enabling Cheats

Before using any commands, ensure your world has cheats enabled. Instructions for enabling cheats are provided below.

The /kill Command: Basics and Variations

The basic /kill command is simply /kill, but this will kill you. To target mobs, you need to add selectors.

  • Killing All Mobs: The command to kill all mobs (excluding the player) is:

    /kill @e[type=!minecraft:player]

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

  • Killing Specific Mob Types: To kill a specific mob type (e.g., chickens):

    /kill @e[type=minecraft:chicken]

  • Killing Mobs Within a Radius: To kill mobs within a certain distance:

    • Java Edition: /kill @e[distance=..15] (kills mobs within 15 blocks)
    • Bedrock Edition: /kill @e[r=10] (kills mobs within 10 blocks)
  • Killing Specific Mobs Within a Radius: Combine type and distance selectors:

    • 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)

The game will autocomplete commands, so precise memorization isn't necessary.

Important Selectors:

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

Enabling Cheats in Minecraft

Commands won't function without cheats enabled. Here's how to do it:

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." This is temporary; you'll need to repeat this each time you open the world. To permanently enable cheats, create a copy of the world with cheats enabled 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 settings menu, toggle "Cheats" to "On."

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

Trending Games More +
Latest Games More +
Role Playing | 65.6 MB
Improve your mini bus driving skills with the Mini Coach Bus Driving Game. Gamerz Hive offers a mini bus driving game for off-road mini coach bus enthusiasts. We warmly invite you to experience our mini coach bus driving simulator. Get ready to take
Racing | 144.5 MB
Experience the most realistic offline car destruction and crash simulation game.DMG Drive delivers an incredibly realistic car destruction simulator. Test drive vehicles ranging from classic models to modern foreign cars across dangerous proving grou
Racing | 87.3 MB
Picture yourself driving responsibly, obeying traffic signals and skillfully navigating around hazards.Finalist for "Best Basque VideoGame" at AZPlay 2017.Selected for the "Nordic Game Discovery Contest" in 2017.MiniMOW is a free and simplified versi
Racing | 33.8 MB
Behind the wheel of your racing machine, experience exhilarating speeds while taking in breathtaking scenery.Need For Racing Speed Car delivers intense, high-octane racing action. In arcade-style gameplay, showcase your supreme driving abilities - pu
Role Playing | 131.4 MB
Immerse yourself in a relaxing ASMR doctor game focused on skin beauty care and makeup treatments.Satisfaction plays a vital role in our daily lives. If you're feeling restless and need mental relaxation, we invite you to play ASMR Hospital games and
Role Playing | 53.00M
Dive into the adrenaline-fueled world of Water Slide Car Race games, a heart-pounding fusion of high-speed racing and aquatic thrill rides. Master the art of maneuvering powerful vehicles across liquid racecourses, executing gravity-defying tricks an