Minecraft wiki entry for Defense, associated text: Try putting a dispenser filled with arrows in front of your door(s). This way, if there are dangerous mobs in front of your house, you can just press a button and activate the dispenser. You could also use sticky pistons and other blocks to block the entrance. However, this requires you to stay inside or make a second exit.