Skip to main content
← All Guides
Base Defense

Defend Your Base From Mobs

A base is only as safe as its darkest corner and its lowest wall. This is the layered defense that holds every night: a wall mobs can't climb, a moat they can't cross, lighting that kills spawns at the source, and a magma ring that finishes anything that gets close. Build it once and stop rebuilding after creepers.

PERIMETER STATUS● BREACH
NORTH WALL100%
EAST WALL82%
SOUTH GATE46%
WEST WALL91%
LIGHT LEVEL15 ✦ no spawns
LIT
LIT
GATE
GATE
MOAT
MOAT
NIGHT WAVE
4 hostiles · 1 at moat edge
The layered-defense principle

Each layer covers the previous one's gap. The wall stops walkers but not spiders, so the overhang cap handles spiders. The moat stops what reaches the wall, so creepers detonate across the gap instead of against stone. Lighting removes the only thing walls can't stop, interior spawns, by keeping every tile at light 8+. The magma ring is the failsafe for anything that still falls in. Defend in depth and no single breach loses the base.

What is actually walking at your walls, ranked by reach

Base defence is decided by follow range, not by health: a mob that never notices you never arrives. The column to watch is the fourth one. A zombie tracks you from 35 blocks and a blaze from 48, while a silverfish or a slime only from 16, which is why the same wall keeps some of them out and none of the others.

MobHealthHit damageMovement speedFollow rangeXP
Enderman4070.3645
Blaze2060.234810
Wither30020.64050
Zombie2030.23355
Drowned2030.23355
Ravager100120.353220
Breeze3030.632410
Creeper2020.25165
Guardian3060.51610
Hoglin4060.3165
Phantom2020.7165
Shulker3020.7165
Silverfish810.25165
Ender Dragon20020.716-
Slime1640.616query.last_hit_by_player ? query.variant : 0
Spider1620.3165
Vex1440.7163
Witch2620.251612
Piglin1650.35165
Skeleton2020.25165
Vindicator2450.351212
Evoker2420.51210

Quick answers

+

How tall does a wall need to be to stop mobs?

Three solid blocks stops walking mobs (zombies have 1.95-block height and can't jump 3). Add a 4th overhang block so spiders, which climb vertical walls, can't crest the top.
+

Do mobs spawn inside a walled base?

Yes, if it's dark. Walls block mobs walking in, but hostiles spawn on any block at light level 0. Keep every floor tile at light level 8 or higher with lamps or glowstone every 7 blocks.
+

Does a water moat actually stop mobs?

It stops most. Zombies and skeletons won't path across water more than 2 wide and sink/drown; a 3-wide moat is safe. Spiders can still jump 1 block, so keep the moat at least 2 wide with steep sides.
+

What light level prevents mob spawns?

Hostile mobs spawn at light level 0 in Java (7 or below on older logic). Keeping light at 8+ everywhere fully spawn-proofs the interior. Use the F3 debug screen to read the light value of a block.
+

Are magma blocks good for base defense?

Yes. Magma deals 1 damage every half-second to any mob standing on it and ignores armor. A magma-floored moat or pit burns down mobs that fall in without you firing a shot.
+

Can creepers still blow up my wall?

Only if they reach it. Keep them outside the moat and they detonate harmlessly across the gap. A 3-wide moat plus a 3-block wall means a creeper can't get within blast range of the structure.
+

Which mobs notice me from furthest away?

The blaze at 48 blocks and the zombie at 35, both far beyond the ordinary 16. Any wall you build is inside their awareness long before it is inside their reach, so the question is whether they can path to you rather than whether they can see you.
+

Does a wall stop everything?

It stops what walks. It does nothing against a phantom overhead or a vex, which passes through blocks entirely, and it does not stop a creeper's blast from taking the wall with it. Lighting and a roof do more than height does.

Blocks and items in this guide

Dispenser in MinecraftDispenserGlowstone in MinecraftGlowstoneIron Door in MinecraftIron DoorRedstone in MinecraftRedstoneLantern in MinecraftLanternSpawner in MinecraftSpawnerPotion in MinecraftPotion

All 7 of these are named in the guide above, starting with Dispenser. Look them up in the item database.

More guides on this site

Guides that go with this one

How to Mob-Proof Your Base
Stop mobs spawning in and around your base. Light to level 8, build a spider-proof overhang, slab open...
Monsters Hunted: How to Kill Every Hostile Mob in Minecraft
Full guide to the Monsters Hunted advancement. Complete hostile mob checklist, spawn locations, combat...
How Mob Spawning Works in Minecraft
Deep dive into Minecraft mob spawning: light levels, mob caps, spawn algorithm, despawn rules, and how...
How to Make a Redstone Trap in Minecraft
A redstone trap springs from a hidden trigger to defend your base: trapdoor pitfalls, dispensers or TNT....
Fix Mobs Not Spawning on Your Minecraft Server
Troubleshoot and fix mobs not spawning on Minecraft servers, mob caps, spawn conditions, gamerules,...
How to Build an XP Farm
Build a mob-spawner XP farm with a dark spawn room, water channels and a one-hit kill chamber. Level 0...
Database
Mob Database
Stats, drops, spawn conditions and behaviour for every mob.
Platform
Builds Platform
Browse and download ready-made builds and schematics.
Database
Item Database
Every item with its stats, IDs, recipes and uses.
Guides
More Combat & Survival guides
Boss fights, mobs, gear, potions and staying alive.