How can I avoid mobs spawning inside my house while I sleep?
So, i'm making my real pad (home) underground, if I place a bed next to a wall underground, will monsters show up next to me? Additionally, how I keep monsters out of my house, place a block in front (but inside your home) of the door?
I always build my house underground at first, it makes it easier to wall off the entrance for night time on the first few nights.
To be (relatively) safe, I recommend lighting as much of the surrounding tunnels as possible. On particular choke points down these tunnels (for example, 3x3 tunnels) wall off with some blocks and a door).
I typically make a 4x4x3 bedroom with a door (a block to start with, then I move to an iron door)