概览: 一个好的防御系统
考虑到冒险元素更新, 骇人更新和最新的攻击性生物介绍,你的基地会需要远比一道圆石墙先进的防护工事。因此,我打算:
1. 将所有有关防御机械的教程搬到这里。
2. 将这些教程组成文章。
3. 随着游戏更新添加更多的教程。
这样做,我们可以集中这些教程,并且让它们对玩家更简单,特别是对游戏不熟悉的玩家。这还会让更新更容易被管理,让我们不需要找遍整个wiki。
最好的防御措施就是彻底地阻止敌对生物的生成,或者最少阻止它们靠近被保护的区域。同样,构成完整的minecraft防御系统的条件有:
- 完整 - 需要完全保护被保护区域,所以不论生物以何种角度或方式都不能被突破。
- 光照 - 一个合格的光照系统要保证在晚上不会有任何攻击性生物在被保护区域内生成。
- 永久 - 它应该能自动运作并且能持续,在理想情况下,可以无限期保护一个区域,无论是不会破损(如墙壁)或可以自动修复它们自己(这可能有难度)。
- 易用 - 如果你必须按下2个按钮并摧毁一个方块才能启动机器,那就太复杂了,操作方式越简单,你的机器就越灵活。
- 安全 - 如果杀死了玩家自己,再好的防御系统也是无用的。一个好的系统应该是安全的。
被动防御系统
无需玩家动作或传感装置,阻止攻击性生物进入安全区的系统被称为被动防御系统。最常见的例子是墙壁 - 它们不需要感觉到生物到来或它们的位置来阻止它们进入被围起来的区域。接下来的章节要讨论各种被动防御系统的结构,维护方法,以及适用范围。
被动防御系统一般分为一个或多个类别,按它们对外来攻击的影响排序。
- 延迟装置(Delayers)减缓敌人的入侵。一圈火把是一个延迟装置,因为它们增加了怪物们的生成区域到你的防御工事(还有你)的距离,从而增加它们到达你下一层防御的时间。灵魂沙也能使生物减速。
- 障碍是一些怪物们不能轻易跨过的结构。典型的障碍是一堵墙;僵尸无法跨过一堵墙,除非以某种方式破坏它或从一扇没有关的门进入。
- 伤害装置(Damagers)可以伤害敌人,不仅是阻止或拖延它们。它们可能不会让怪物减速,但是会在它们通过时对它们造成伤害。(They might also do neither, letting the mob through without a reduction in speed, but hitting them for damage as they pass.)一般地,伤害装置会对怪物造成直接伤害,或让它们着火。如果添加了额外的状态效果(举个例子,玩家可以创建一个让所有经过它的生物中毒的方块),这些装置也会被归到这一类。一个延迟伤害装置可以是一条装满岩浆的沟;一个障碍伤害装置则可以是一堵仙人掌墙。
重要的是要注意每种怪物会以不同方式对待每种防御系统;举个例子,一圈燃烧的地狱岩会伤害大多数怪物,但对僵尸猪人无效。同样地,一堵墙对爬行者是一个障碍,但对蜘蛛是一个延迟装置(而且不是很有效)。
墙壁
墙壁是简单的垂直障碍,是阻止怪物进入一个区域最常见的手段。它们可以由几乎任何材料制成,具有不同的优点和缺点。
这些做起来很简单,只要保证:
- 让它们至少3个方块高
- 在外围添加一个外檐来抵御蜘蛛。
- 火把应该被添加到顶部或墙的两侧上,除非低能见度是设计好的(例如,在SMP服务器减少其他玩家注意到一个伪装的墙的机会)。
- 沟渠或壕沟可以作为一个额外的障碍添加在墙的里面或外面。
材料
圆石和泥土是做墙最常见的材料,由于作为开矿时的废料它们十分充裕,且各自易于获得。在沙漠生物群落里建造的墙也可能是由沙子或沙石制成。
而泥土不怎么抵抗爆炸,在大多数情况下它是合适的。泥土和沙子的墙壁都经常被用来围绕“第一晚”的避难所。
圆石,以及更美观的光滑的石头,是大众玩家的首选材料。它拥有不错的抗爆性,同时十分常见。
沙石只比沙子好一丁点儿,应该尽量避免除了美观外的使用。
玻璃,冰,栅栏,栅栏门,玻璃板,以及铁栅栏由于能被看透而很常用,不用暴露就能发现另一边的威胁。这些方块也能被用来不引发末影人进攻地看它们。缺点是这些方块易被爬行者的爆炸所破坏。
在没有作弊或管理员权限的情况下黑曜石是建墙的终极材料。在建造时,把岩浆桶倒在合适的位置再用水冷却它们比冷却一池岩浆再挖掘它要快。
如果玩家出生在一片沙漠旁,建一面仙人掌墙是十分简单的,放置仙人掌的规则在稍后给出。一个仙人掌方块会需要在一个沙子方块上,然后会长到3个方块高,以及伤害任何撞上它的怪物。
特别注意:栅栏可以被用来建作用起来比它们实际上高的墙,既然如果什么东西尝试跳过它时一个栅栏方块被当做1.5个方块高。
蜘蛛(一般的和洞穴蜘蛛)实际上无视墙壁,既然它们能垂直移动。不过,墙上附加的突起和悬垂会阻止蜘蛛爬得更远。
护城河和壕沟
这些障碍,就像墙,准备了一个垂直障碍给接近的(和要出去的)怪物和玩家。它们的不同之处是护城河通常会有一些液体在底部;目前为止,只有水和岩浆可用。 干燥的壕沟,就像墙,至少在内侧要有三格高,加上一个突起来防止蜘蛛攀爬。壕沟应该(最少)在最狭窄处有三格宽来防止蜘蛛跳过它们。玩家最好留下从沟底逃脱到沟外侧(不是内侧,这样壕沟将失去目的)的手段:他们可能会因为伤害,爆炸或小失误掉进来。
护城河的构造和壕沟相同,但在底部填充有岩浆或水,取决于你想伤害敌人还是收集它们的掉落物。一条填充水的护城河,如果建造正确将成为一个溺水陷阱来杀死怪物。不利的一面是玩家必须靠近来引诱怪物到水里,然而新的怪物AI使玩家很难做到这一点。它还可以让怪物减速,使它们很容易被弓箭射杀,之后玩家可以游泳捡起掉落物,或用水流将它们传送到一个拾取点。
护城河还可以用水流将怪物推远。这会让它变得不适合收集掉落物,但任何进入的生物会被从墙推远,从怪物不会抵抗水流,除了它们想攻击玩家开始。
一条岩浆护城河,另一方面,会杀死任何生物,但会毁坏掉落物。岩浆护城河的另一个好处是产生光,阻止怪物在近处生成而不用火把。然而,如果只有最小数量的桶和有限的岩浆源,收集大量岩浆很费力。 越过岩浆河的结构(桥,悬挂的墙,等等)应该有栅栏或突起的边缘,以防止玩家掉下去。 岩浆不该在可燃方块附近被使用,特别是树,木板或羊毛(在其他东西中间)。
另一种更紧凑,占地更少的壕沟形式是蛛网壕沟。它只需一格宽,一格深,经过的生物就会被蛛网卡住不动,在你走过时被杀。这种壕沟可以轻易跳过。这种壕沟在创建安全区的边界时很有用。蜘蛛网可以在废弃矿井和要塞中找到。
挖掘陷阱对杀死怪物很有效。在你的家周围挖一些至少四格深的洞(数量与你家的大小成比例)。 在洞底,放置如下方块中的一个:
如果想获取经验,挖一个很深的洞,这样生物会受到掉落伤害,然后简单地杀死它们。还可以使用水流将生物导向至一个可以安全并有效率地收集经验的地方。
火
所有种类的墙壁和壕沟都能被燃烧的地狱岩增强。以墙的情况来说,可将燃烧的方块排列在底部和/或顶部,这样生物会跑着跑着撞墙上站在火里,或翻过墙的生物必须通过在路上的火。
一条壕沟可以简单地用相同的方式增强,以一行火放置在壕沟的前方,以便让燃烧的怪物摔入沟渠然后无法逃跑(留下过会儿收集的掉落物),或放置在壕沟的底部,掉落物可能会被火烧毁的地方。
注意,单个的话,燃烧的地狱岩不是一道有效的防线,因为有很多血的怪物可以简单地跑过火然后在烧死前攻击玩家。地狱岩与仙人掌结合更为有效。
其他
利用生物寻路系统的技巧
相对于使用门, 一个有用的方法是制造一个三格高的入口, 然后用任意类型的台阶覆盖它的顶部和底部。 生物的寻路系统会告诉它们这个缺口无法被通过。 但是仍要当心, 骷髅仍然能够射到你,爬行者也依然会爆炸。 在入口前放置藤蔓将会阻挡它们的视线。
光照
不要低估均匀人工光照的作用。尽管光源不构成任何真正的防御措施,粗粗的一圈火把也能防止大多数敌对生物在周围生成。而且,如果受照亮范围足够大,夜间在圈外随机游荡的怪物甚至没有时间在太阳升起前来到玩家附近(针对僵尸、骷髅等)。
目前火把是为这个目的被使用最广泛的光源,岩浆壕沟、萤石块以及南瓜灯也可以用。但在单人生存模式中,萤石块的缺乏(如果缺乏)会限制其使用,而南瓜灯也需要南瓜(一开始不好找,之后就可以批量种植)来合成。另外岩浆有时不能用,因为可能点燃四格内的可燃物。
灵魂沙
一个由灵魂沙围成的圈可以作为一种高效的延缓装置, 它能够将生物限制在一个有效的防御设施的范围内,或只是使它们远离你的建筑。 一个宽三个方块的条是这个延缓装置的最低限度。
灵魂沙也能为壕沟铺垫出一个不错的底部。
瀑布
要保护你的门道,一个有效的方法是制造一个瀑布来作为防御设施的最后一重。 通过使用一个空中悬挂物, 玩家能够使瀑布挂下并且掩盖他们的家的入口。 一个一方块深且与瀑布等宽的壕沟能够防止水流向你不希望它流向的方向。 如果有一只爬行者, 骷髅, 或是僵尸走进瀑布, 他们将被冲落并坠入壕沟, 被有效地阻挡。 即使壕沟可以被加深, 这种做法仍是不明智的,因为此后玩家自己也可能意外落入壕沟。 瀑布的向下压力会导致玩家向上游的速度比平常慢上很多, 所以推荐的深度是一个方块。 要进入他们的家中, 玩家必须跳进瀑布并保持前进。 这能够保证玩家安全地到达瀑布的另一边。
Combination Defenses
Like historical defensive formations, the most secure perimeters are based around multiple concentric systems, and systems used in synergistic combination. A classic example is a moat surrounding a walled compound - creatures which might reach and breach the wall (eg, Endermen) are delayed or killed before they can reach the wall by the moat (water or lava). Any and all of the aforementioned passive defensive measures can be used to make an area secure; the only limit is the amount of time the player is willing to put into it at the expense of other goals and the amount of space and time available.
Shelter Defenses
Every shelter needs good defences, and here are some tips to avoid trouble.
Explosive resistant houses
Explosive resistant houses are fairly easy to build, and aren't extremely expensive. Use the Materials section above to assist you in choosing explosive resistant materials.
Tips
You should have many windows, so as to be aware of any Mobs around. Light your houses and surrounding area well! It is suggested to have an automatic door and protect the surrounding area with a minefield, trap(s), or some sort of defense.
Try making multiple panic rooms/bunkers, preferably for different situations(i.e. creeper in front of your house, skeleton stalking you etc.). Another good idea is to make a emergency exit this is a deep hole with water at the bottom and some supplies, only use this if its an emergency.
Another, kind of hard idea, is make a way to get behind, under, or above a hostile mob around your house. This could include a tunnel, a water slide or roller coaster.
Try putting dispenser filled with arrows in front of your door(s). Creeper in front of your house? No problem! Hit a button!
Security
It can come in handy if you have some security systems up. Here are some ideas:
• Alarm, to make an alarm you will need:
- At least 1 pressure plate
- Lots of redstone
- At least 1 note block
Place pressure plate(s) around an area you would like to protect, or your entrance(s) try to keep them separated as much as possible (optional). Then attach the note block(s) to the pressure plate(s) with redstone wire. From now on, whenever a mob or a player walks on a pressure plate(s) the note blocks will generate a sound notifying you. If you mine a lot, put a note block(s) in your mine or along a rail road.
• A self destruct system might be useful, to prevent others in SMP from stealing your belongs. For this to work, the TNT has to be concealed in a wall, and there should be redstone (that is concealed) attached to a button to activate the TNT. It is also recommended that you have a blast-proof room where you store/hide in before you activate the self destruct. The button should also be in this room.
• If you have a lot of iron ingots and pumpkins, then you can make the perfect defense. Iron Golems have 50 hearts and can kill most mobs in 1-2 hits. Make sure to keep them near your house though; as they may wander away. To prevent this, put the iron golems inside of a trench surrounding your house. The trench should be 2 wide and at least 4 deep, otherwise the golems will fling mobs back out of the trench.
You could try dispensers to defend your home entrance but you would need lots of arrows. Another idea is to push the mob or player in a moat to it a pressure plate, activating a dispenser. It works better with multiple dispensers, all with redstone repeater.
Active Defenses
廉价材料
爬行者
一个简单的方法来保护自己免受爬行者(或其它任何1X1X2的怪物)是一个四门陷阱。在一块压力板的四周放置四扇合页在左边的门。放置一个方块在压力板上方来防止怪物自由跳跃。
围绕你的墙增加一层瀑布能防止你的墙被任何爆炸毁坏。
--
|PP|
--
僵尸与僵尸猪人
只有你被其它怪物包围(以及其它僵尸猪人)或当你生命值过低时僵尸与僵尸猪人才会成为威胁。它们攻击你的唯一方式是近身攻击或打破门来使其它怪物进入。所以用箭...简单的事儿。保护门可用3种方式制作。 1. 放置一列沙子在门上当它被破坏时来密封它。 2. 把水放到门底部旁。当门被打破入侵的僵尸将进入但其它怪物会被减缓。 3. 把水放到门的顶端旁然后在另一边用岩浆做同样的事。 4. 活塞及压力板。
1 2 3 D=门 T= 隧道墙
S S=沙子 W= 水
S L= 岩浆
TDT TDT WDL
TDT WDT TDT
骷髅
既然骷髅从远处攻击,有效的进攻是最好的防守。如果你可以近身攻击,骷髅将不能伤害你。当然,当你攻击它们,他们将被向后击退。如果没有方块在他们背后,他们将能够再次射你了。
蜘蛛
一个简单地抵御蜘蛛的方法是一条1*2的隧道。蜘蛛不能通过,但玩家(和其他1*2的怪物)可以。一个聪明的办法来对抗它们是挖一个一格宽两格深的壕沟。你可以简单地从下方消灭蜘蛛。蜘蛛也可以爬过2格高的墙但3格高的墙高将导致它们摔落。
蜘蛛骑士
蜘蛛骑士同时结合了射程,攀爬,近身攻击,和不论距离去追逐最近玩家的动力,当你面对一个时最好的行动是在骷髅注意到你然后开始射箭之前用箭杀死它。
史莱姆
史莱姆可能在白天于地面上生成。 一个好的地上防御是一个2个方块宽的会淹死他们护城河。史莱姆可被用弓和箭轻易打败。由于它们只近战攻击,它们也可以被剑轻易打败。小史莱姆不会伤害你,尽管它们会把你推来推去。
当它们生成于地下时为对抗它们,只是等待然后看看是否有任何生成。如果没有,很好。如果不是,试试找到它们在你矿坑的哪里生成。
试试:
-堵住洞穴结构
-寻找并隔离史莱姆区块
记住,史莱姆在光亮处生成 TNT也非常有效。
恶魂
恶魂不能通过玻璃来看,所以如果带着玻璃在下界,你可以做一个包围你的玻璃盒.这非常有用,因为你可以透过玻璃来看到恶魂的位置. 把玻璃建在下界传送门旁也是个好主意, because you will be able to see the nether's epic terrain, and still be protected from Ghasts.
玩家
箭塔。
They consist of any number of dispensers attached to a rapid pulsar redstone alternater. Simply add a lever to the side of the Pulsar, and switch it on or off at will. (needless to say, loading the dispensers is a must!)
These will give any player trying to grief, or steal from, one of your structures, a nice shock. This turret is fully automatic, and as long as you have the arrows to support it, it will demolish anything in front of it! Fire charges can also be used if you have the resources. However these are not recommended if your structure is made out of a flammable material! An easier (and lower resource cost) way to make the turrets more damaging is to put a lava curtain in front of them. This will set the arrows passing through on fire so they cause more damage.
十分昂贵的
爬行者
爬行者能够制造威力几乎相当于TNT的爆炸, 所以它们能够轻易地隔着一堵石墙实行打击, 而这为那些不受欢迎的生物们打开了一扇进入你的保护区域的门。 真正能够防住爬行者的墙应是由基岩或黑曜石筑成, 这个样例只能够在这些情况下实现: 在一个允许生成物品的多人服务器中, 利用一个mod, 或是通过创造模式. 你还可以使用填充了水的墙来阻挡末影人。 你也可以通过连接造石机来制造自修复墙但通常这比它原来的价值要繁琐。 如果你愿意查看关于造石机的教程,你可以将造石机推上YouTube。
僵尸和僵尸猪人
僵尸和僵尸猪人是十分麻烦的生物,当你在一个封闭的区域,例如洞穴中遇见它们时。 当它们靠近你时才能进行攻击,这有好处也有坏处, 好处是你可以通过与它们保持距离来保证自己的安全, 劣势则会出现在它们中任何一个成群出现并将你包围时。 这使你无法躲避。 要建造防御设施优先攻击僵尸,你应尝试并保持与它们的距离, 但在洞穴中你无法保证自己有一个足够开放的区域,并且你在自己的防御设施,像是庭院这样让你能有选择躲避的余地的地方之外。 最好的防住僵尸猪人的方法是不要攻击它们, 因为他们只会离开你除非你激怒它们(注意这只对僵尸猪人有用)。
蜘蛛骑士
在你的墙上制造一个1 (或更多) 方块宽的洞并向蜘蛛射击 (或用你的剑攻击) ,蜘蛛死后,向骷髅射击。你也可以尝试制造一个能够回收的箭矢发射器陷阱。
史莱姆
You may defend against slimes by simply creating a long 1 block wide, 2 block tall corridor as an entrance to a walled of area using: for the sides, dispensers full of arrows on bottom row, and any block that is solid on the top row for the floor, simply cover it in pressure plates. The said slime will travel through the corridor, and every time it lands on a pressure plate, it will be struck by two arrows, and if/when it splits, the process will simply repeat itself. To collect the spoils, simply remove the pressure plates, stroll on through (reloading as you go if needed) and then when you are done, simply replace the pressure plates on the way out. to help prevent mobs entering while you do this, it may be useful to place a door at the entrance/exit in the wall so you may close it when you are in the corridor and open it to begin the executions. This also works for most other mobs that will fit through the corridor.
恶魂
There is no particularly expensive way to defend agains ghasts. Glass or cobblestone (which Ghasts cannot damage.) will do just fine, but you could use an expensive material like iron blocks, or obsidian. However, while glass panes protect you from being noticed and fired on by Ghasts, they are shattered in the event a stray fireball explodes near the panes. Glass blocks do not shatter even when hit directly. To fully Ghast proof a Nether fort use only glass blocks, iron bars, or nether fences for windows.
Although, Ghasts are easy to kill if you can hit them, or reflect their fireball at them, two well-charged arrows or hits with an iron sword will take it down.
末影人
Since Endermen can move blocks, but are hurt by water, make a moat instead of a wall. Also, its better if it flows through a 1x1 block hole in your house so you get the drops.
玩家
When in multiplayer, with nothing to help you in combat with other players, it is best to have a /home point. Some servers also make it so that you can toggle PvP on and off inside your house/land, so it would be a good idea to have PvP off in your house, and set a /home point inside, so that if you're ever caught outside with a player in diamond armor, wielding a diamond sword, charging at you... you can just type /home and get out of there! Of course, if you are also wearing diamond armor and also have a diamond sword, you could choose to try and hold off said player. Blocking also helps in these situations.
Basic Redstone Defense - Drawbridge
Very effective entrance mechanism for a SMP base. Works better if within faction land so it can't be destroyed.
8:8:8 = 8 blocks high, wide and long
Create a 8:8:8 pit next to your walls, then fill the bottom layer with lava.
Build a 4 wide, 8 long bridge over the pit, with one high blocks at each side.
Remove the floor of the bridge and place trapdoors instead, attached to the side barriers.
Place redstone all the way along the top of the barriers.
Place blocks one level above the redstone so players can not jump onto the sides.
Link the two lines of redstone at a lever.
Pull the lever to open the drawbridge, not letting anything in; or close it so you and your faction can get out.
Spiders can't jump the bridge, players will fall in the lava, and zombies and other mobs can not cross it, unless it is left closed, so it pretty much keeps everything out, as long as it is built on faction land.
Mob Defenses
Mob defenses can be effective, when using the right mobs. various mobs you can use are, Iron Golem, Snow Golem, Tamed wolf, or a Tamed ocelot. Also the fact that these do not affect the player (with the exception of an annoyed iron golem) makes these defenses a little more useful.
Iron golems: The best way to use these is keep them in an enclosed space with a door operable by lever. If invading mobs get too close for comfort you can flick the lever and release the golems to clear the area. Or you can simply leave them wandering free in a walled off area.
Snow golems: The most efficient way to use snow golems (aka snowmen) is in a one block wide tunnel. The snowballs from the golems cause no damage (except to blazes) but push mobs back. This can be used to push mobs into lava or something else that damages them e.g cactus. Or it can simply be used to delay hostiles.
Placing snow golems in fenced off "watch towers" may help protect you from hostile mobs as:
- The mobs will then attack the Snow Golems as opposed to you, and
- Snow Golems snow balls push away hostile mobs.
Note on snow golem venerability: Make sure you protect the golems from the rain or they will die. Also as mentioned on the snow golem page they will take damage in a desert or jungle biome so defenses utilizing them cannot be used in these biomes. check out tutorials/snow golem defense turret.
Ocelot: The easiest way to use ocelots is to build a fence around them or just let it simply wander around a closed off area and once a creeper comes, it will be scared away since creepers are apparently afraid of ocelots.
TNT Defenses
A good dose of TNT, however dangerous and lag intensive, will destroy all mobs. Obsidian or self repairing land is useful in an area of little or no use to minimize damage. Most drops will also be destroyed.
You can make mines with TNT and Pressure Plates. It can be useful to place the trap above sand or gravel so that A player will be trapped with the charge and a mob won't be able to wander away.
TNT Cannons
TNT Cannons: The best weapon usable. This should be put outside your perimeter. Go to Tutorials/TNT Cannons to find steps to build these.
TNT Self Destructing System
When you are on multi-player server, and you don't want your enemies take your loot, you can make TNT SDS (Self Destructing System) Under your base. You need these to build SDS:
- Alot of TNTs
- Redstones
- Any blocks
- Lever
- Repeater
To make TNT SDS, First dig 3 blocks under your base. Fill it with TNTs on 3 blocks under your base. Than on top of TNTs, put your normal blocks. On top of it, fill the 3rd floor with restones. Now put repeaters on 3rd floor (right bottom of the real base's floor) and make a road to where you want activator be. Put a lever in the activating zone, and connect TNT SDS and lever with restones and repeaters. When your base is in danger and lots of enemies in your base, take as many loots of yours as you can and run. When you are near the Activating Zone, you can now pull the lever- and kill all the enemies. So one of SDS looks like this: 0-Redstone X-TNT 8-Normal Block except Obsidians, Bedrocks etc.
8 8 8 8
0 0 0 0
8 8 8 8
X X X X
Advantages:
- You can take some of your loots
- Can kill lots of your enemies at once
Disadvantages:
- You will lose at least 90% of your base
- Takes time to build
- Will lose most of your loots
Land Mines
To create a land mine, you'll need:
- Some TNT
- Pressure plates
- Any block except obsidian or bedrock
To make a landmine, first you need to dig a two meter (block) deep hole. At the bottom of this hole, needs to be a single block of TNT. Next, place any block (besides obsidian or bedrock) on top of the TNT. On top of that, place a Pressure Plate on top of the block that was placed on the TNT. Once an entity steps on the plate, the TNT will explode, thus causing damage to the entity and the terrain. (Unless the terrain is made of obsidian or bedrock.)
Advantages:
- Mobs are usually killed in one blast
- Landmines are relatively easy to make
- They can be triggered from a safe location with redstone
Disadvantages:
- Landmines must be recreated after each use
- The blast may set off other landmines
- You or your shelter could be destroyed
- The mob may go past the TNT while chasing you
- In most cases, TNT is more valuable than the killing of a single hostile mob.
To counter terrain or structures being destroyed, place water on a side of the TNT. This trap will still damage mobs, but the surrounding blocks will not be destroyed. However, the trap won't be as effective. You can also put blocks that have tough blast resistence like obsidian around TNT landmine.
If you want to make sure that the mob is killed in the explosion and that your base won't blow up, dig a deep hole (break the block NEXT to the one that you're standing on. Jump in, then replace the bottom block(s) with Obsidian and pillar back up. Break the blocks again, and put a TNT block two blocks down, followed by a gravity affected block (either sand or gravel). Put a pressure plate on top and you're done!
Defense on the Move
If stuck out on an expedition, always bring a torch.
By quickly digging 3x3x3 cube into the ground, jumping in, and covering the top layer you've created a little burrow. Add a torch and a bed and you've got a very quick home.
Tips & Tricks
1. Armor is highly underrated... even leather armor could save your life. Should you be going hunting for Ender Pearls, looking for Strongholds or Underground mines, or just going for a nighttime stroll... armor will be very handy
2. Keep at least two swords, a sword is your main source of defense (and offense) but they can run out in the blink of an eye. Keep a spare, just in case.
3. Mainly for the nether, have a bow and a stack of arrows, to defend yourself from those ghastly Ghasts (though use in the overworld is handy too)
4. A trick that I use is to have one window in your house open with a dispenser facing outwards, stacked with arrows, and a pressure plate directly in front of it outside, so that you can stand at your window at night, to draw a monster's attention, and it will walk onto the pressure plate... activating the dispenser... need I say more? (although you will regularly find raw food and leather underneath. Also, make sure your pressure plate is made of Stone, otherwise the drops of the dead mobs will keep pressing the plate, causing the plate to be triggered for vast amounts of time. (Which you don't want)
6. Though many players like to use gold for its color and value, it is inadvisable to use gold in armor (as swords are just as damaging as wood, it just breaks quicker) It does not have very good defensive qualities, (but is slightly better then leather) and is quickly diminished. If you do not have diamond to make armor, then use iron. Its defense for a full suit of armor or a sword is much higher than gold. (if you don't have iron or don't have enough then use stone for a sword and leather for armor)
7. Placing a door from the outside is reliable for killing mobs at your door, such as zombie rampages. You can attack mobs from the outside without breaking/opening the door the door but if placed from the inside, you will only open the door instead of attacking mobs outside.
Inovative Defenses
These defense tactics are usually only used to impress others in SMP, but may also be used as an overly expensive way to overly secure a shelter.
Trapdoor Drawbridge
This is a bridge that can be toggled to let the player in and to keep hostiles out. You will need a standard ditch or moat, a half stack or so of any opaque block, and enough trapdoors to cross over your ditch twice. The plans will look like this:
T=trapdoor
B=opaque block
A=air
Layer 1
BBBB
TTTT
TTTT
BBBB
Layers 2 and 3
BBBB
AAAA
AAAA
BBBB
It's optional to add an overhang to defend from spiders.
Parkour Entrance
FOR PARKOUR PROS ONLY!!! This is basically a parkour that leads to your door. Mobs can't parkour, so your house is safe.
Floating Island
Make a floating island house and parkour on from a nearby mountain. This is highly inconvienient, but almost completely immune to mob invasion. You must also make a separate shelter for a mine...
Fire Mine
Place a dispenser facing upwards in the ground. Place a pressure plate on the outside edge of the dispenser. Put a flint and steel in the dispenser. Now, when something tries to walk past it, they will trigger the pressure plate. This will cause the dispenser to use the Flint and Steel, lighting itself on fire. The fire will go out shortly, but it will cause massive damage to most mobs.
This defense is best used as a ring around an area you want to defend. Anything steps on the line of pressure plates and it goes up in flames.
Troubleshooting
Most problems in your defense will likely stem from a poor light net around your base. Changing the settings to the classic lighting engine can help you find holes in your light pattern.
In the end a good defensive strategy is only as good as the people that run it. Remember a strategy requires discipline. If you plan on running out for a midnight stroll every night, then don't build a defense, it won't make you any safer.