Minecraft wiki entry for Villager, associated text: Villagers run inside at night or during rain, closing doors behind them. They attempt to sleep at night, but if they cannot claim a bed, they stay indoors near a bed until morning. In the morning, they head outside and resume normal behavior. However, some villagers, such as nitwits, stay outside later than others unless being chased by an illager or zombie.