In previous versions villagers would always be positioned in front of the foot of their bed when they wake up. This predictable behavior allowed players to control and organize villager behavior. In particular, trading halls and iron farms require that villagers access their workstations and that they do not unlink from their beds.
As of 1.20.10 (though I am not sure exactly when this started) villagers no longer stand at the foot of their own bed upon waking. Instead, they seem to choose a random spot around the bed to try to stand. If that spot would make them collide with a full block they choose another, or in some cases they may glitch through blocks. In a trading hall or iron farm this can cause chaos and break the build. Example:
[media]
Steps to reproduce
These steps are demonstrated in
[media]
Place 5 beds next to each other
Surround the row of beds on 3 sides with full blocks. Bring the side walls out 2 blocks in front of the beds. Place full blocks directly above the pillows of the beds, and a block higher above the foot of the bed (so that there is an air gap above the bed feet.
(optional) Place trapdoors sideways in front of the beds, and flip them up.
Set time to night.
One-by-one for each bed, spawn a villager, wait until it links to a bed and sleeps in it, then place a workstation 2 spaces in front of the bed.
Place a row of blocks 3 spaces up above the space in-between the beds and workstations, so that when the villagers wake up and stand between the beds and workstations they will not be able to jump up on the workstations or on top of the trapdoors.
Set time to day.
Expected result
Each villager stands between its bed and its workstation when it wakes up.
Observed result
The villagers move diagonally when they wake up and stand in front of a different workstation. Some workstations have 2 or 3 villagers in front of them, making it impossible to trade with all of the villagers.
Related issues
Attachments
Comments


Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – Feature Requests and Suggestions
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki