Villagers have no trouble connecting to beds, as they can pathfind there without any problem. However, they "forget" them sometimes upon wandering around the village, and connect to other unclaimed beds in the village boundaries, leaving their previous beds unclaimed and up for grabs. This should not happen.
I suspect that the cause of the issue is the distance between the villager's bed and a gathering site, as they leave their beds and have to walk some distance to gossip with other villagers. Upon being done they do not return to their own beds but seek closer ones in the area, due to either wandering even further from their beds, as it is part of their daily schedule, or some other unknown issue.
This is a minor issue in the game, but unintentional nonetheless. It also causes issues around building a village by yourself, as villagers do not use their houses as intended.
This could be fixed by completely removing the ability from villagers to seek other beds if they have claimed a bed no matter how far it may be, and only have them reset their beds by breaking the ones they have claimed.
Comments 2
Thank you for your report!
However, this report is Invalid.
Your game is modified with Optifine. Optifine is a very heavy game modification, and using it will automatically invalidate reports on the bug tracker.
If you can reproduce the issue in a vanilla game environment, please create a new ticket - this is a bug tracker for the game, and not a support website.
Any issues occurring from using Optifine need to be taken up with the developers of Optifine here, not Mojang Studios or the Bugtracker.
Quick Links:
📓 Issue Guidelines – 🛠 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
💬 Mojira Subreddit – 💬 Mojira Discord
Invalid. Your game is modified. Feel free to make a new report if you can reproduce this in vanilla