Tutorials/Safe home

Since there are various sources of danger to your buildings and yourself, 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. If you strike a water source, it can wash such things away. If you are unlucky, you yourself can also be swept away (maybe 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 &mdash; digging near sand that isn't supported from below may cause it to collapse. Be wary of placing torches on sand columns which may fall. If such a torch is destroyed, you may find a creeper or other mob which spawned in the darkness.

If you 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 near it, the loose sand or gravel will suddenly be affected by 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 and spider jockeys off your lawn.  As of 12w08a, you can create Iron Golems to defend your territory. These metal wonders will deal lots of damage to any mobs that come near it. Beware of the Creeper though!  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 deep enough that the mobs who fall in can’t get out anymore, which is either filled with lava or streaming water leading to a Mob Farm.  Keep your home area well lit. Mobs only spawn if the light level is below 7; remember that a torch provides level 14 light and this decreases by one for every block away from the torch.  Mobs don't spawn on water. If one or two sides of your home base are open to the sea, you don't need to wall these off. Extend your surrounding wall a few blocks into the sea, and this should be enough to keep the mobs out. (Remember to put a lip on the top of the outer wall, as detailed below, to prevent Spiders.)  An especially effective spider deterrent is making said lip out of burning netherrack.  Another way to keep mobs out of your house is a staircase that has an overhang.  Try to refrain from using ladders to get to your base, unless accessible by opening a door, since mobs can climb ladders.  EDIT:As of the 1.6 updates a hatch at the top of a ladder can be used to access your house safely. Just don't forget to close it when you're done.  If you are in single player, a door made of pistons keeps you hidden from mobs almost all the time. Place 2 pistons facing the outside. Then, place a lever right next to both of the pistons backs. Next, turn off the pistons, go outside, then make a arch around the spot where the pistons would stick out. Finally, where the pistons would stick out on the sides make a tunnel to your base. Make sure you can walk through it. When the pistons come out, the mobs can't enter, and skeletons can't reach through your door. 

Creepers
What is widely considered to be the most dangerous mob in minecraft is the creeper, because of the damage it causes to buildings (they can effectively blow large holes in your structures). However, you are safe within your base if there are creepers outside, as they can't get close enough to you to explode. You might even be able to open your door and kill the creeper with a bow and arrows, as long as you keep your distance!

Also, be aware that creepers can detect you and start their fuse from one block away, even if there is a low wall or fence keeping them away. Ways to avoid this are: build a wall at least two full blocks tall (even if it is made of certain translucent blocks such as slabs, fence or glass); or build your home with all spawning surfaces on all traversable paths sufficiently lit.

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

Another great block is using fences. If you can build the outside layer of your house with a few fences (instead of just another layer of wall), creepers will not be able to hop over them, and so they cannot blast your wall down. Only the fence, so you can point and giggle at the creepers as they attempt to jump over your fence.

Spiders
Spiders can jump 2-3 blocks, therefore 4 block wide ditches w/ over hangs don't protect you aganst spiders/spider jockeys. Spiders are two blocks wide, which means they cannot move through 1-block wide spaces. 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:   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.  Fences can also work as a wall-top and has the advantage of being able to easily look down to see the wall itself -- handy for making sure nothing is at the door before leaving. The wall must be at least two high to prevent spiders, though this is true of regular cobblestone wall-tops as well. <li> Completely cover it with a roof. <li> Dump buckets of lava around your castle. <li> Build your buildings underground. As long as the entrance to the underground building is only 1 block wide and/or completely enclosed with trapdoors, no Spiders will be able to get in. A top view example:. </ol> <li> As of 1.8, it is possible to keep spiders from climbing walls using glass panes/iron bars to create an edge. example:

Spiders can climb cactus fences, but they will suffer some hit damage doing so. Therefore cactus fences only reduce the chances and speed of a spider climbing walls. Either make multiple fences or one fence tall enough to kill any spider that climbs all of them. Each fence only needs to be 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 General 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: )

Skeletons
Skeletons are dangerous because they can fire arrows through gaps in your defenses. Wherever possible, fill open gaps with any of certain translucent blocks such as slabs, fence or 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.

Spider Jockeys
Spider jockeys are dangerous because of combining the climbing and tracking abilities of Spiders with the ranged attacks of Skeletons. You must combine your defensive strategies for both skeletons and spiders. They're pretty rare, so it is unlikely, but not impossible, to encounter more than one Spider Jockey on the same night. Fighting them makes lots of noise, so you can be fighting a jockey and win, then get blown up by a creeper.

Zombies
Zombies are the simplest mob to defend against. With limited mobility and no ranged attacks, walls or pits will be enough to keep them at bay. However, zombies can break down doors (in hard difficulty) to reach you. To prevent other mobs using the entrance put a two high pillar of sand above the door, though this won't stop or even hurt the offending zombie.

You can use traps such as pits, landmines, etc.

Ghasts
If you get lost in the Nether and have no choice but to start a new shelter there, or even if you just wish to try out Nether survival, your biggest problem is ghasts. They can fly through the air, and shoot fireballs that explode on contact with the ground (Although the explosion is fairly weak), and they can spot you from 100 blocks away. Obviously, a simple fence won't suffice. The simplest solution is to build a roof over your entire living area, preferably fairly big, in case you feel like expanding your house later, and start building a house in it. The best material would be glass, as you can see through it and tell if any ghasts are nearby before leaving your dome, with the downside of breaking easily if a fireball hits it and not being a renewable resource in the nether. A recommended material is to use cobblestone (or stone) as it is highly defensive against the ghasts explosion, and very easy to obtain.

A harsh rule in surviving in the Nether is never to build a Netherrack house as Netherrack is highly flammable and ghasts will probably tear apart your house before you can even admire your beautiful Netherrack mansion. Another harsh rule to follow is not to leave ANY gaps near the bottom of your house, or else fire will be able to come in if ghasts attack the ground around your house. It's strange, but Ghasts seem to not be able to see through glass.

With the addition of the Nether Brick it is possible to build Ghast-resistant structures of material that is readily available in the Nether. Albeit a little tricky to find, Nether Fortresses contain them in large quantities and are safe to mine, as long as you are mining within their confines.

Anleitungen/Ein sicheres Zuhause Tutoriels/Construction de maisons sûres