Minecraft wiki entry for Defense, associated text: To prevent terrain or structures from 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 resistance like obsidian around TNT landmine.