Is there a way I can kill all while dead in Minecraft?

In the Sky Factory Mod Pack, I keep getting killed by player mobs standing over my bed that don't burn in sunlight. Every time I spawn, the game lags, I hear the sound of being hit about 8 times, and it puts me back onto the death screen.

Is there a way I can kill all the mobs crowding on my bed while dead in Minecraft?


Try downloading MCEdit and opening up your world. You should see the mobs represented as red boxes around your bed; highlight them by clicking and dragging a selection around them, and then press Delete Entities. This doesn't remove actual players, but it will affect any items/xp on the ground, so be careful.

enter image description here


Assuming you are in single player, exiting to the menu, setting the difficulty to peaceful and reloading the world should remove all hostile mobs.

You can then change the difficulty back immediately and continue as you were.


If you open the chat before you die by pressing the command button (By default /), you can enter commands while dead. This means knowing when you'll die and pressing /, the entering the command properly.

Edit: This has been patched as of 1.8.1, and will no longer work