I got this to be fixed with using these methods below. you need to make sure the villager is assigned a specific bed and role before you lock them into place. using this video i got iron golems to spawn .(https://www.youtube.com/watch?v=8GSI-3BD7VQ&t=134s) dont know if you are allowed to comment with youtube videos
At least 75% of the villagers must have worked in the past day
I got this to be fixed with using these methods below. you need to make sure the villager is assigned a specific bed and role before you lock them into place. using this video i got iron golems to spawn .(https://www.youtube.com/watch?v=8GSI-3BD7VQ&t=134s) dont know if you are allowed to comment with youtube videos
At least 75% of the villagers must have worked in the past day
Minimum 20 beds and every villager has a bed
Only 1 golem will spawn for every 10 villagers