Minecraft wiki entry for Villager, associated text: Sometimes when a villager gets in a bed from another direction they turn their body until their head is on the pillow of the bed. Villagers also sleep with their eyes open, just like players.