The villager should get out of his bed on the one block we want when he is in a cell
The villager escapes to blocks he doesn't in vanilla
I found this testing the simple model of iron farm presented by Gnembon in this video. World download
Some of them should be out of their cell
None
Paper-126
Here is an image of the cell they escape from. One villager has decided to leave its bed on the glass block two layers under the bed. The same behaviour doesn't happen on a vanilla server where all the villagers get out on the one block in the middle.

I'm have the same issue with the same farm...
@Awakened-Redstone there is a simple fix for the farm: just fill the space under the two beds with glass and add 3 more on the next block.
You should end up with something like that (V = villagers, B= bed and G = glass):
V B B G
G G G
G G G
This doesn't fix the paper bug but it fixes the farm in paper :)
Tanks, was searching for a temporary fix
Odd, it's like they /try/ to wake up where they're supposed to, and just derp somewhere in the process, had one that just floated around randomly when tryna sleep in general before popping underneath the beds...
I have the sam issue to with same farm.
have a video with some bad english and a world download.
https://youtu.be/D-IJM0JW8bY
https://drive.google.com/drive/folders/1VQ_7x6hg9E449HhlidPkpwh9GJaHYVtO?usp=sharing
If it helps, replacing the inner side of the glass box with slabs solves the problem (if you really need your iron farm to work)!
like this:
https://i.imgur.com/hGxu5vz.png
I have the sam issue to with same farm.
have a video with some bad english and a world download.
https://youtu.be/D-IJM0JW8bY
https://drive.google.com/drive/folders/1VQ_7x6hg9E449HhlidPkpwh9GJaHYVtO?usp=sharing
Hey, I downloaded your world but I cant find where the iron farm actually is. Do you have coordinates?
I have the sam issue to with same farm.
have a video with some bad english and a world download.
https://youtu.be/D-IJM0JW8bY
https://drive.google.com/drive/folders/1VQ_7x6hg9E449HhlidPkpwh9GJaHYVtO?usp=sharingHey, I downloaded your world but I cant find where the iron farm actually is. Do you have coordinates?
The coordinates is -1085 78 2262
Had this issue as well, ended up replacing some of the glass with slabs. It appears to have been caused by patch 0242 that allows a configurable bed search radius.
It looks like patch 0242 replaces vanilla bed search with a configurable bed search algorithm, and defaults the bed search radius to vanilla settings.
There's a few ways to fix it and it should be a pretty simple PR either way. Not sure what the more paper-mc community way to fix it would be though. Of these alternatives what would be the better options
From the comments it doesn't seem like it is intended to be a performance optimization. Seems like when we're adding configuration to change vanilla behavior it would be wise to always use the vanilla code when that config can be toggled "off" or set to a vanilla-like default. That way it's an opt-in for differences in quirks between the two.
the point of those changes was to help players, so less needed really for villagers. was simply a side effect of mojang reusing that code for villagers.
id be ok with them going to vanilla logic.
kickash has made some changes that should resolve this, please let us know if still an issue in latest build
Appears to still be an issue in the latest build. My villagers just keep escaping...
I have tested the farm configuration many times and it never happened after the fix, can you reupload your world download. The current link doesn't work.
Most helpful comment
I'm have the same issue with the same farm...