search
Minecraft Wiki

Minecraft Wiki

896 pages 4230 edits Updated: Feb 03
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.


This functionality is open only to Wiki Admins

Popular In Minecraft Wiki

Comments

Latest Wiki Pages

Block Recipes in Minecraft

Block Recipes in Minecraft

Minecraft Wiki 6 d
Transportation Recipes in Minecraft

Transportation Recipes in Minecraft

Minecraft Wiki 15 d
Tool Recipes in Minecraft

Tool Recipes in Minecraft

Minecraft Wiki 15 d
Brewing Recipes in Minecraft

Brewing Recipes in Minecraft

Minecraft Wiki 17 d
How to Breed Horses in Minecraft?

How to Breed Horses in Minecraft?

Minecraft Wiki 21 d
Food Recipes In Minecraft

Food Recipes In Minecraft

Minecraft Wiki 22 d
Firework Recipes in Minecraft

Firework Recipes in Minecraft

Minecraft Wiki 23 d
Dye Recipes in Minecraft

Dye Recipes in Minecraft

Minecraft Wiki 26 d
Basic Recipes in Minecraft

Basic Recipes in Minecraft

Minecraft Wiki 27 d
End Biomes in Minecraft

End Biomes in Minecraft

Minecraft Wiki 28 d
How to find the End portal in Minecraft?

How to find the End portal in Minecraft?

Minecraft Wiki 1 mn 6 d
Armor Recipies in Minecraft

Armor Recipies in Minecraft

Minecraft Wiki 1 mn 7 d
How to TP in Minecraft?

How to TP in Minecraft?

Minecraft Wiki 1 mn 8 d
How to craft in Minecraft?

How to craft in Minecraft?

Minecraft Wiki 2 mn 18 d
Bedrock in Minecraft

Bedrock in Minecraft

Minecraft Wiki 2 mn 19 d
Water in Minecraft

Water in Minecraft

Minecraft Wiki 2 mn 19 d
Brain Coral Fan in Minecraft

Brain Coral Fan in Minecraft

Minecraft Wiki 2 mn 20 d
End crystals in Minecraft

End crystals in Minecraft

Minecraft Wiki 2 mn 21 d
Primed TNT in Minecraft

Primed TNT in Minecraft

Minecraft Wiki 2 mn 25 d
Repeating Command Block in Minecraft

Repeating Command Block in Minecraft

Minecraft Wiki 2 mn 27 d