Minecraft wiki entry for Villager, associated text: During a raid, villagers flee from illagers and run to the nearest house, similar to a zombie siege. For a villager to hide, the house must have a door and at least one bed.