Zombie siege



Zombie sieges are in-game events that occur when many zombies spawn in a village. They occur regardless of how well lit or walled off a village is.

Usually, a whole mob of zombies will concentrate on one door or villager, and in Hard and Hardcore mode, will break wooden doors down, giving entrance to the building. This causes the villagers to flee their homes and get attacked by the zombies on their way out.

Mechanics
At night, there is a chance that a zombie siege might occur. This is when a large number of zombies spawn in or near a village, attacking what villagers they can reach, crowding around and pounding on the doors of those they can't. On hard or hardcore mode, they can actually break down the wooden doors of the villagers' homes (this is true of all zombies, not just during sieges.) A zombie siege requires a village of at least 10 houses and at least 20 villagers. Villagers will commonly enter their houses and close the door before any zombies can get in, but they will not attack.

Iron Golems attempt defend villagers from zombies and other mobs during such attacks. Zombies in Seiges ignore light levels and the 24-block minimum distance from the player, but other than that, behave absolutely normal (IE, they won't spawn on halfslabs or glowstone or anything like that, need a 2x1x1 minimum space, etc.). They can also spawn INSIDE doors, making Iron Golem farms difficult to build on hard, as zombies beat down doors on hard (they'll attempt to beat them down on other difficulties, but not succeed- of course, you DID mention this). However, zombies won't spawn 128 blocks away from you, even though the siege is technically happening in the game code, so you're safe if you build it high up.

Defense Tactics
Surrounding a village with a wall and lighting it are staple defenses against normal hostile mobs, especially Creepers. However, they are ineffective for sieges because the zombies can spawn inside even a well-lit village. Zombies may prefer to spawn outside of the village or in the dark when given an access route. If so, this allows players to defend villages by creating pressure plate drawbridges or "kill-channels" that limit zombie entrance.

It is impossible to completely avoid zombie sieges (unless you play on peaceful). If every block within the radius of the village has a half slab on top of it, the zombies will often spawn inside blocks, even solid blocks if there are no transparent blocks nearby, then walk towards the villagers through the wall. Zombie sieges also do not follow the 24-block rule, meaning they can spawn just a few blocks from the player.

Trapping a villager in a ring of fence posts will likely attract Zombies, giving the player/golem a chance to take the zombies down one by one. However, it will also interfere with villager mating if love forms between a trapped and non-trapped villager.

Wolves and Snow Golems may also be stationed to keep the horde at bay, however Snow Golems will be useless in a desert village due to damage incurred from the biome and carry the risk of causing friendly fire with the Iron Golems. Wolves are easy to maintain due to the large quantity of rotten flesh that a horde will yield when defeated.

Recovery
Villagers repopulate if there is open space in the NPC village. This means that villagers can recover from sieges by having children to repopulate the NPC village, provided there are at least two villagers and enough space in the NPC village. Player-made houses can also cause villagers to repopulate, as long as it is within the NPC village, has a wooden door, and has a 3x3 space inside. Iron Golems lost in the siege will eventually respawn if the NPC village has at least 10 villagers, or can be manually rebuilt by the player.

Unfortunately, these conditions are rarely sufficient to keep villages from being depopulated in short order without active defense by the player. As of snapshot 12w32a, there is an option, albeit a difficult one, to repopulate villages: Curing zombie villagers. Besides spawning as a fraction of ordinary zombies, some villagers attacked by zombies will be "infected" instead of killed. Zombie villagers can be turned into villagers by splashing them with a splash potion of weakness, then feeding them a golden apple, and waiting. However, the cure is not instant -- it will be necessary to confine the "patient" away from living villagers, and usually to protect them from the sun as well. They will emit red particles until they are cured.

Trivia

 * When a zombie is attacking a villager or door, it will usually ignore the player unless the player attacks it.
 * Zombies also attack villager children.
 * Sieges cannot occur when it's raining in another biome during the day because the Zombies will burn when attempting to attack the villagers. However, when it's raining in another biome during night, sieges can still occur.
 * Although zombies are the only mob that attacks villagers, Iron Golems still attack other hostile or neutral mobs. This is probably because they can be created by the player for self-defense, not for defending a village; it could also mean that other mobs may lead sieges against villages.
 * If the player spawns a lot of zombies, they will eventually start a siege and all crowd one door.
 * Sieges can occur in player-made villages and mushroom biomes, despite zombies not spawning in mushroom biomes naturally. This is further evidence that sieges are different from standard mob spawning.
 * As of 12w32a, if the player turns mob spawning off with the cheat, sieges can still occur.
 * Early in development, Notch considered adding a gamemode Zombie Siege. It would be you fighting waves of monsters (likely Zombies). This gamemode was, however, never implemented, and has since been abandoned.
 * The chance of trying to start a siege is 10% for each night, but the start may still fail due to other reasons. If it does start one, no other sieges will be started that night.
 * The siege consists of up to 20 extra zombies, all spawning randomly near a single spot chosen randomly inside a square centered with village center and edges twice the village radius (a bug is related to this, though).
 * As of the Redstone Update, zombie sieges can become more dangerous to the player. This is because of the new zombie AI, which makes it so that if a player attacks a single zombie, all of the zombies in the area will pursue that player. Since all the zombies in a siege are grouped together, a player could suddenly be fighting 20 zombies.

Gallery
Zombiebelagerung Осада