Better Librarians features

Look, read, trade. Client side only.

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 (for example Sharpness V). If you renamed the villager with /vname, your colorful name sits on top and the profession line moves underneath as a subtitle.

Catalogued on first trade

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 trade with a villager, the mod files their books under the nearest nearby villager and remembers them from then on. Catalogues persist in config/betterlibrarians_data.json, so they survive restarts. Up to 256 villagers are kept; the oldest entries are dropped first.

Villagers you have never traded with show a one-line hint instead (Trade once to catalogue 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.

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. Cataloguing happens only while a trading screen is open. There is nothing to feel.