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.
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.