Minecraft wiki entry for Shelters, associated text: Put a dispenser with some arrows at your desired location (preferably next to a door) and a stone button/lever/pressure plate attached to it. This is handy if mobs want to pay you a visit. Splash potions can also be used as ammo, but are harder to obtain. The benefits of using potions is that they can affect a wider area than arrows.