Villager Trade Lock

Villagers remember their trades per profession, so breaking and replacing a job site no longer rerolls them. Server-side only.

Villager Trade Lock

Break and replace a job site block without losing a villager's trades.

In vanilla Minecraft, breaking a villager's job site block throws its trades away, and the next job site rolls a new random set. Villager Trade Lock gives every villager a memory of its trades per profession. Give it the same kind of job site again and it gets exactly the same trades back, so rerolling by breaking and replacing a lectern no longer works.

Features

  • Trades survive a lost job. Breaking a villager's job site block no longer throws its trades away. Give it the same kind of block again, here or anywhere else, and the old trades come back.
  • One memory per profession. A villager that goes from librarian to armorer and back to librarian gets its librarian trades back. Its armorer trades are rolled once and remembered too.
  • Professions from other mods. The memory is keyed by profession, so professions added by other mods are remembered the same way.
  • Survives zombies. A villager that is turned into a zombie villager and cured keeps its memory.
  • Prices stay vanilla. Reputation, discounts, demand and Hero of the Village work exactly as in vanilla.
  • Server-side only. Vanilla clients can join, and there is no config file.

How it works

  • When the memory is taken. The moment a villager loses its profession, the trades it holds are stored for that profession, replacing anything stored for it before.
  • When the memory is used. The moment a villager takes a profession it has a memory for, those trades become its trades and vanilla does not roll new ones. A profession it has never had still rolls its trades the vanilla way.
  • Only villagers that have never traded. In vanilla, a villager loses its profession only while it is still a Novice with no trading experience. Once someone has traded with it, it keeps its profession and trades for good, with or without this mod.
  • Unemployed villagers and nitwits. They have no trades, so there is nothing to remember.
  • Existing worlds. Villagers that already exist are covered as soon as the mod is installed. Their memory fills up the first time they lose a profession afterwards.

Better together

  • Villager Trade Peek: the future trades it previews are remembered and restored too, so the preview does not change when a job site is broken and replaced.
  • Villager Trade Swap: swapped trades are part of the villager's trades, so they are remembered and come back as well.
  • Villager Cure Discounts: cure discounts apply to remembered trades exactly as to any other trades.

All of them are optional. Villager Trade Lock works on its own.

Versions

Minecraft Loader Requires File
26.3 NeoForge 26.3.0.0-beta+ (stable 26.3.0.76+) Java 25 villagertradelock-neoforge-26.3-1.0.0.jar
26.3 Forge 66.0.0+ Java 25 villagertradelock-forge-26.3-1.0.0.jar
26.3 Fabric Loader 0.18.2+ Java 25 villagertradelock-fabric-26.3-1.0.0.jar
26.2 NeoForge 26.2.0.0-beta+ (stable 26.2.0.57+) Java 25 villagertradelock-neoforge-26.2-1.0.0.jar
26.2 Forge 65.0.0+ Java 25 villagertradelock-forge-26.2-1.0.0.jar
26.2 Fabric Loader 0.18.2+ Java 25 villagertradelock-fabric-26.2-1.0.0.jar
26.1 - 26.1.2 NeoForge 26.1.0.1-beta+ (stable 26.1.2.71+) Java 25 villagertradelock-neoforge-26.1-26.1.2-1.0.0.jar
26.1 - 26.1.2 Forge 62.0.0+ (62 = 26.1, 63 = 26.1.1, 64 = 26.1.2) Java 25 villagertradelock-forge-26.1-26.1.2-1.0.0.jar
26.1 - 26.1.2 Fabric Loader 0.18.2+ Java 25 villagertradelock-fabric-26.1-26.1.2-1.0.0.jar
1.21.11 NeoForge 21.11.42+ villagertradelock-neoforge-1.21.11-1.0.0.jar
1.21.11 Forge 61.0.1+ villagertradelock-forge-1.21.11-1.0.0.jar
1.21.11 Fabric Loader 0.17.3+ villagertradelock-fabric-1.21.11-1.0.0.jar
1.21 - 1.21.1 NeoForge 21.1.1+ villagertradelock-neoforge-1.21.1-1.0.0.jar
1.21 - 1.21.1 Forge 52.0.0+ villagertradelock-forge-1.21.1-1.0.0.jar
1.21 - 1.21.1 Fabric Loader 0.15.10+ villagertradelock-fabric-1.21-1.21.1-1.0.0.jar
1.20 - 1.20.1 Forge 47.1.0+ (also NeoForge 1.20.1) villagertradelock-forge-1.20.1-1.0.0.jar
1.20 - 1.20.1 Fabric Loader 0.14.21+ villagertradelock-fabric-1.20-1.20.1-1.0.0.jar

Client and server

Install the mod on the server only. It adds no items, blocks, entities, network messages or registries, so vanilla clients and clients without the mod can join and see the remembered trades in the normal trading screen. Installing it on a client as well does no harm. In singleplayer, install it in your own game. Fabric API is not needed.

FAQ

What happens if I remove the mod? The world opens normally. The memory is stored on each villager under the mod's own key, and vanilla ignores it. Villagers keep their current trades, and from then on a villager that loses its profession rolls new trades the vanilla way.

Can I still reroll a villager that nobody has traded with? Only into a profession it has never had. Breaking and replacing the same kind of job site always brings back the same trades.

Does it work with mods that change how trades are picked? Yes. They still decide the trades for a profession a villager has never had. Once a profession is remembered, the remembered trades come back instead.

Can I use it in my modpack? Yes, go ahead. The mod is licensed under MIT.

Links

When reporting a bug, please include your Minecraft version, loader, mod version and your log file.

Villager Trade Lock Team

profile avatar
  • 23
    Projects
  • 16.3K
    Downloads

More from emberbocorView all

  • Villager Trade Rotation project image

    Villager Trade Rotation

    Villagers roll fresh trades for every unlocked level once a day, without breaking job sites, while keeping their level and experience. Server-side only.

    • 116
    • November 29, 2026
  • Horse Armor Enchanting project image

    Horse Armor Enchanting

    Enchant horse armor at the enchanting table and anvil like player armor, and the enchantments protect your horse. Server-side only.

    • 110
    • November 29, 2026
  • Villager Riders project image

    Villager Riders

    Villagers ride along on your camel or your llama. Ride or lead the mount into a villager and it climbs on. Server-side only.

    • 138
    • November 27, 2026
  • Remembered Heroes project image

    Remembered Heroes

    Villages remember the heroes who saved them from a raid and give Hero of the Village back each time they return. Server-side only.

    • 155
    • November 27, 2026
  • Villager Trade Rotation project image

    Villager Trade Rotation

    Villagers roll fresh trades for every unlocked level once a day, without breaking job sites, while keeping their level and experience. Server-side only.

    • 116
    • November 29, 2026
  • Horse Armor Enchanting project image

    Horse Armor Enchanting

    Enchant horse armor at the enchanting table and anvil like player armor, and the enchantments protect your horse. Server-side only.

    • 110
    • November 29, 2026
  • Villager Riders project image

    Villager Riders

    Villagers ride along on your camel or your llama. Ride or lead the mount into a villager and it climbs on. Server-side only.

    • 138
    • November 27, 2026
  • Remembered Heroes project image

    Remembered Heroes

    Villages remember the heroes who saved them from a raid and give Hero of the Village back each time they return. Server-side only.

    • 155
    • November 27, 2026