The bug
Villagers will stand outside of house right next to bed instead of going inside to sleep leading them to get killed.
Linked issues
is duplicated by 2
Attachments
Comments 8
Prior to snapshot 20w19a villagers generated with worldgeneration had a lower following range causing them troubles detecting POIs such as beds. Villagers generated before that snapshot are still influenced by this bug. See MC-166764
@Nightwind8887 do you experience it in a newly created world or with villagers that have existed prior to snapshot 20w19a?
This could possibly be a duplicate of MC-160582
I can confirm that on 1.20.2. It seems like the old bug strikes again. All my villagers have problems to pathfind to a bed that is right behind them. They even look at the bed occasionally at night but never claim it, what is confirmed by missing Brain.memory.home NBT data.
EDIT: Comment is not relevant, but I'm gonna leave it here. Maybe someone will find it helpful. Villagers need at least 2 blocks empty above bed to clam it. It resolved my problem and maybe will resolves someone's else problem.
Affects 20w22a