Minecraft wiki entry for Villager, associated text: A villager who has no bed simply waits inside a house until morning. This includes players stealing a villager's bed to sleep in, mostly the villager stays in the house and doesn't move until sunrise. But sometimes, if they detect a unclaimed bed nearby they walk out of the house and towards the bed.