Better Librarians features

Look, read, trade, and know when they restock. Client side, with an optional server part for exact restock times.

The look-at title card

When your crosshair rests on a librarian and no screen is open, a small centered card appears near the top of the screen. The first line names the villager's profession and level (for example Librarian · Apprentice), and below it each enchanted book they sell is listed with its emerald price from your last trade (for example Sharpness V, 38 emeralds). If you renamed the villager with /vname, your colorful name sits on top and the profession line moves underneath as a subtitle.

A card above a librarian: Librarian · Journeyman, then Mending at 24 emeralds and Sharpness V at 38 in gold, Efficiency IV at 19 and Feather Falling III at 15 in white.
Max-level books in gold, lower levels in white, each with its price.

The restock timer

The card and the trading screen show which trades are sold out and when the villager restocks next: Restocks in 4:10, Restocks any moment now or Restocked twice today, next in 12:30. The times are real minutes and seconds. It works for every working villager, not only librarians.

A librarian's card: Mending 24 and Sharpness V 31 emeralds, 2 trades sold out, Restocks in 0:43.
Before work starts: two trades sold out, a restock in 43 seconds.

When a villager can't restock

A villager with no workstation never restocks, and neither does one standing more than about one and a half blocks from it while it works. That is the usual reason a trading hall "stops working": the cell was built one block too far from the lectern. The card says so.

A librarian whose lectern is 4 blocks away: Sold out, Can't restock here: its lectern is 4 blocks away.
This librarian's lectern is outside its cell.
The trading screen with two crossed-out trades and, under it, 2 trades sold out, Restocks in 0:45.
The same timer under the trading screen.

Turn the timer off with restockTimer, or keep it on librarians only with restockAllJobs. See configuration.

The librarian list

Press K or run /librarians to see everyone you have traded with in this world or on this server, nearest first, with distance and direction. Each world and server keeps its own list. Rebind the key under Controls, in the Gameplay group.

The librarian list with three librarians, their distance, direction and number of books. The selected one sells Mending for 12 emeralds and Unbreaking II for 16.
Everyone you have traded with, nearest first.

Catalogued when you open their trades

The client only learns a villager's trades when their trading screen is open: vanilla syncs offers to the open menu, never to the villager entity itself. So the first time you open a villager's trades, the mod files their books under the villager you are looking at and remembers them from then on, along with each book's price and where the villager stands. Prices update whenever they change, for example with demand or your reputation. Catalogues persist in config/betterlibrarians_data.json, so they survive restarts. Up to 256 villagers are kept; the oldest entries are dropped first.

Librarians whose trades you have never opened show a one-line hint instead (Open its trades once to see its books), unless you turn showUncataloguedHint off, in which case no card appears for them at all.

Renames with /vname

Look at any villager (any profession, not just librarians) and type /vname &aBob the &lBrave to float a name above their head. /vname clear removes it. Renames work through the vanilla custom-name rendering, client-side only: other players see your names only if they have the mod installed too. Your original nameplate (if the villager had one) is restored when you clear the rename or disable the mod.

Three villagers with floating names in mixed colors and styles.
&#ef5350&lShelly &fthe Librarian, &aFarmer &#ffa657Joe and &dPriest &f&oMarcus.

What it leaves alone

Performance

Per client tick the mod does one pass over the villagers currently being rendered to keep renames in sync, and draws the card only while you are actually looking at a librarian with no screen open. The list costs nothing until you open it. Cataloguing happens only while a trading screen is open. There is nothing to feel.