search
Minecraft Wiki

Minecraft Wiki

687 pages Updated: Aug 17
Wiki BG

How to Kill all Mobs in Minecraft


How to <span class='entity-link' id='suggestBtn-18'>kill</span> <span class='entity-link' id='suggestBtn-3'>mobs</span> in <span class='entity-link' id='suggestBtn-0'>Minecraft</span>


If you are playing in a world that seems to have quite a bit of frame stuttering, you may need to do something about the mobs in your world. A lot of mobs will never despawn, including wandering trader llamas. There could be a hole in a cave or wall that you never ended up finding, loaded with dozens even hundreds of mobs. The game will have to keep track of these mobs and spend some resources keeping them around. Using a command to kill all nearby mobs can help your framerate and keep your computer from overheating. This guide will show you the supported platforms for commands, the command to kill every mob, as well as how to kill all mobs in Minecraft.


Supported Platforms


Minecraft Kill Command Compatibility

Minecraft VersionCommand Compatibility
JavaYes, /kill @e
Pocket EditionYes, /kill @e
XboxYes, /kill @e
PlaystationYes, /kill @e
Windows 10 (Bedrock)Yes, /kill @e
Education EditionYes, /kill @e


Every platform has the potential for the /kill command. Using this command on its own will kill all entities around you, including your own player! Keep this in mind when using this command.


Kill Commands


There really is only 1 kill command in every version of Minecraft. You can specify which entities to kill and which ones to not kill in your command, but they all start with the base of /kill.


For the Java edition of Minecraft (1.12+), you can type /kill <targets>. Where “<targets>” are what you want to kill. Typing just /kill will kill every entity in a loaded area, including your armor, stands, minecarts, and even your own player. To prevent killing your own player, make sure to limit the command from killing yourself as well. For example, /kill @e[type=!player] will kill every entity except for your own player.


Command to kill mobs in Minecraft


This command is actually identical across all versions of Minecraft. You may want to test it for yourself in a different world if you are playing on hardcore challenges, just in case. In addition, to prevent yourself from killing any stray minecarts or armor stands that you have up for decoration, ensure you add them to the list of entities to ignore. For example, “/kill @e [type=!player,type=!armor_stand,type=!minecart]”


Command to kill mobs in Minecraft


Remember that some mobs will spawn additional mobs, such as slimes. Killing a group of slimes once does not actually help load fewer mobs unless it was already the smallest variant of slime. Just do the command an additional 2 times to ensure no more slimes exist.


How to Kill all Mobs in Minecraft


As stated above, you will just need to type /kill @e to kill everything in the game, including yourself. If you want to prevent yourself from killing additional entities make sure to exclude yourself and other entities from the command by typing “type=!player” after you type @e. For example /kill @e [type=!player,type=!armor_stand,type=!minecart,type=!wolf] if you want to save your wolves, armor stands, minecarts, and of course yourself.


How to Kill all Mobs in Minecraft


With great power comes great responsibility, and it is up to you to prevent yourself from killing any entity that exists in your world. Remember to exclude certain entities/mobs from the command to prevent yourself from killing your companions, decorations, or otherwise.


Video Guide:


youtube-cover


FAQ


Why should I kill the Mobs in Minecraft?


A lot of mobs piling up in an area can cause large amounts of frame stuttering without you even knowing they exist. Every now and again, it can be helpful for the life of your server/world by executing a /kill command to get rid of any stray wandering trader llamas or any other mob that does not despawn.


How can I remove the Leftovers after Using the Kill command in Minecraft?


Conveniently, the /kill @e command includes every entity. This includes the drops from the mobs you have killed. If you are satisfied with the /kill @e[type=!player] command or any other exclusions you want to add, you can simply open the commands again and input up to quickly have the game fill in the last command you executed. This will remove any extra drops from mobs that occurred during the wipe.


What’s the Easiest Way to Kill all the Mobs in Minecraft?


It would most certainly be the /kill @e command. This is a surefire way to kill every mob in a loaded area in your game. Just make sure that you include some exclusions if you are not trying to kill yourself as well as other entities that you want to keep. Take caution and take your time with this command. Just because you can do not always mean you should.


Conclusion


Congratulations, you now know how to kill every mob in your loaded area in Minecraft. Mobs can cause a great deal of frame stuttering and ensuring that the game does not spend extra time loading mobs can help your computer run at a smoother rate. Of course, you can also execute this command for adventure maps where you do not want mobs spawning all over the place. Make sure you know what you are doing and always test in a world you do not necessarily care about if you are executing a command like killing all entities.


Popular In Minecraft Wiki

Comments

Latest Wiki Pages

What are Ochre Froglight‌ in Minecraft

What are Ochre Froglight‌ in Minecraft

Minecraft Wiki 3 d
What are Obsidian Blocks in Minecraft

What are Obsidian Blocks in Minecraft

Minecraft Wiki 3 d
What are Oak Wood in Minecraft

What are Oak Wood in Minecraft

Minecraft Wiki 3 d
What are Oak Logs in Minecraft

What are Oak Logs in Minecraft

Minecraft Wiki 3 d
What is Netherrack Block in Minecraft?

What is Netherrack Block in Minecraft?

Minecraft Wiki 3 d
What are Netherite Blocks in Minecraft

What are Netherite Blocks in Minecraft

Minecraft Wiki 3 d
Smelting

Smelting

Minecraft Wiki 3 d
Minecraft Potions

Minecraft Potions

Minecraft Wiki 3 d
Crafting

Crafting

Minecraft Wiki 3 d
Mods Minecraft

Mods Minecraft

Minecraft Wiki 3 d
Tutorials

Tutorials

Minecraft Wiki 3 d
Tools

Tools

Minecraft Wiki 3 d
Armors

Armors

Minecraft Wiki 3 d
Overworld

Overworld

Minecraft Wiki 3 d
Consumables

Consumables

Minecraft Wiki 3 d
Nether Portal in Minecraft

Nether Portal in Minecraft

Minecraft Wiki 3 d
The End

The End

Minecraft Wiki 3 d
Sky Dimension

Sky Dimension

Minecraft Wiki 3 d
Minecraft Enchantments

Minecraft Enchantments

Minecraft Wiki 3 d
Pearlescent Froglight‌ in Minecraft

Pearlescent Froglight‌ in Minecraft

Minecraft Wiki 3 d