Minecraft wiki entry for Shelters, associated text: You can place a door across the entrance to your shelter to protect you from mobs, while still giving you access. It is generally recommended to place it from the outside (go outside your shelter and place it while looking inside.)