Tutorials/Safe home

Since various there are various Sources of danger to your buildings and yourself, being in them, here are the most common techniques to counter them.

Lava and water
When you extend your base, be sure that nothing fragile like torches or redstone circuits are on the floor in the area, since water can break such things away. If you are unlucky, you can also be washed away (like, into an abyss) or drown.

Lava flows slower, but is much more hazardous, as it sets you and your wooden items on fire!

Sand and gravel
“Built on sand” is a real life saying which means “This won’t last long”. This is true in Minecraft, too.

If you have a floor of sand or gravel, be careful when mining, it could collapse. Horror scenario: You collapse a sand column supporting a torch in your home, and when you come back, a creeper awaits you, which spawned in the darkness…

If you instead discover a natural cave with a roof of sand or gravel, be extra careful. Even if you don’t choose it to become your new home, as soon as you place or remove a block next to it, it will remember gravity and fall down, suffocating you, flooding the cave with lava or water and/or allowing mobs to come in from the dark cave/night above.

General

 * Use a fence or a wall to keep all mobs except spiders off your lawn.
 * Use a cactus fence built from two rows of cacti (like this: ▞▞▞▞) or an alternating row of cacti and flames from netherrack to keep mobs from passing through it.
 * Build a ditch with is deep enough the mobs who fell in can’t get out anymore, which is either filled with lava or streaming water leading to a mob grinder.[TODO: Create an actual Tutorials/Mob grinder page]

Creepers
The single most dangerous mob towards your buildings is the creeper, which can effectively blow large holes in your structures.

Since it explodes when being 1 block away from you and can look through walls, build your base above or below ground level or use 2 blocks thick walls.

Different blocks have different resistances to explosions. Dirt walls will be easily destroyed by creepers, cobblestone will resist most creeper explosions. Obsidian is explosion-proof, so you can laugh at the face of creepers trying to destroy walls built of this stone.

Spiders
Spiders are two blocks wide (which is good!) and can jump 2-3 blocks wide. Since Beta 1.2, spiders can also climb walls and fences, so you won’t be safe in your walled garden anymore.

To effectively spider-proof your buildings, you’ll have to do one of these things:
 * 1) Build a lipped wall (a wall with overhang, mostly at the top. ▛ and▐▞ are common wall-top profiles).  This lip can have 1-block wide gaps in it, since spiders require a 2 block wide space to climb.
 * 2) Build a cactus fence. This just requires one row of cacti, because while cacti can’t be placed next to each other, spiders are two blocks wide. Use the method in the  section for a version which works on other mobs too. (If you prefer a wall for keeping off all other mobs, you can use this cactus fence)
 * 3) Or be less creative and dump buckets of lava around your castle.

Skeletons
Skeletons are dangerous because they can fire arrows through gaps in your defenses. Wherever possible, fill open gaps with glass to make windows. Additionally, build low walls or fences in places where you may be in range of a skeleton, since they will only fire arrows at you if they can see you.