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 +
Educational | 31.4 MB
A fun educational game for kids to learn numbers with Write Numbers Tracing."Write Number: Tracing 123" combines learning and fun. Trace numbers with colorful chalk and teach children number writing skills. This engaging educational app features an i
Card | 42.9 MB
Enjoy this timeless card game, also known as "What If," "Cool 104," or "Chain Up."The rules are straightforward.Match identical symbols or numbers to clear all cards from your hand!Earn bonuses by forming poker hands with your remaining cards!Music b
Educational | 97.3 MB
Welcome to the GUM Playbrush app—your gateway to smarter, fun-filled toothbrushing.The GUM Playbrush app introduces your family to Dayo and his Jungle Buddies, turning brushing time into playtime! With this app, your kids can enjoy games, master heal
Sports | 59.70M
Dive into the action-packed realm of the legendary Injustice Squad with Injustice Power Boat Racers 2! Feel the adrenaline rush of high-stakes boat racing, complete with challenging missions and expert speedboat handling. Leave slow cruises behind—i
Music | 1.1 GB
A romantic social, music, and dance mobile game for leisure and entertainment.Trendy and fashionable outfitsMix and match a wide variety of exquisite costumes, wings, and mounts to create your perfect in-game fashion style.Thousands of avatar customi
Adventure | 53.0 MB
Mine, Craft & Repeat! A relaxing incremental mining adventure.Idle Pocket Crafter 2 is a peaceful idle game focused on crafting, mining, foraging, and hunting. Tap to dispatch your miner and watch as your inventory fills with valuable ores while you
Topics More +