The latest Minecraft update now has beds, which is very nice for the first few nights of the game while you establish a mob-resistant area that you can work in during the night.
For reference, you sleep in a bed during the nighttime and it fast-forwards to daylight.
My problem is that I’ve put down a bed, and every time I sleep in it I get woken up by mobs inside my house. I’ve made sure it’s very light, darkened it a bit – tried a few combinations but no luck.
What am I missing? How can I avoid having mobs spawning inside my house every time I try and get some sleep?
According to the Minecraft Wiki, aggressive mobs won’t wake you if you surround your bed with torches. Here is what it says about the mob behavior:
To ensure that you are not awakened unnecessarily during the night, the bed must not be placed along a 1 block thick wall, unless the area on the other side of the wall is also safe. If a hostile mob can get within 2 blocks of the bed, even if the blocks are separated by a wall, you will be awakened with the hostile mob standing next to you. There appears to be a slight delay before the mob attacks you, giving you time to get the first blow.
Edit: As of Minecraft 1.0, mobs will not awaken you suddenly if your bed is placed in an unideal location. Instead, the game won’t let you sleep and will state that there are mobs nearby.