I’ve got a library with a few villagers in it, one among them simply will not restock his Mending books. I’ve tried removing every other workbench, I’ve placed a bed under him, I’ve placed a bed in line of sight, I’ve stayed in the chunk he’s in and slept for several days. Nothing seems to work.
You’re not playing Java so I dunno if this will work but I had a similar issue at one point and it was other villagers “claiming” the workstation first, even when they couldn’t path to it. They’d eventually release it because they couldn’t path, but with enough of them, it’d take ages to sort itself.
Try making sure there aren’t any spare lecterns out of his reach, make sure the rest have their workstations, including non-librarians, and if needed throw down a bunch of lecterns yours can reach, so that there’s definitely an extra.
If that doesn’t work or you’ve already got that kind of a situation, try removing him from the rest and bringing him somewhere where he’s the only villager, and a good distance from any workstations at all, so he loses any existing stations he has. Then give him a lectern and if he takes to it, you should be able to move him back after.
So, I somehow figured it out (?). Brought the villager over 200 blocks and waited 5 in game days. Nothing.
Put down a bed he could reach, and he’s now restocked. Never needed a bed before for this, so not sure when that changed. But now, he’s not selling for 2 emeralds like I’d gotten him down to, not 22 emeralds like he originally was selling it for. He’s now selling it for 54 emeralds.
I think I’m just gonna walk away now.
Coolish. Not for you but for the resolution.
I suspect the bed isn’t strictly necessary but he was stuck trying to pathfind to an illegal block and having a bed at night gave him a higher priority target and it reset the janky pathfinding.
Been dealing with villagers for a long time (in bedrock), they need at least one bed you can even hide under the block or something and for workstation fix is bit tricky, you should remove all the workstation and place it somewhere and wait the particles indicate claiming and find villager that claim for that workstation then break it and place it to his front, repeat the process until all villager have workstation, after that you will rarely facing a problem like this again.
Keep in mind that pathfinding are not necessary for claiming but indeed for work/restock and sleeping