When a villager wakes up or spawns in such environment it gets stuck until either the roof it's stuck in is broken for a path out, or the bed gets broken.
When a villager wakes up or spawns in such environment it gets stuck until either the roof it's stuck in is broken for a path out, or the bed gets broken.
Duplicate of MC-146770