Villager Trade Swap
Every Minecraft player knows the pain: your librarian finally rolls Mending, but the second trade slot is filled with useless paper. Before, your only options were to break the lectern and start over or accept the loss. Villager Trade Swap changes that entirely by adding a tiny swap button next to every trade in the vanilla trading screen. Click it, and only that trade is replaced. Everything else about the villager stays exactly as it was.
How the Swap Button Works
The concept is beautifully simple. Each trade in a villager's list gets its own swap button, so you fix one deal at a time instead of rerolling the whole villager. The villager's level, XP, and reputation never change, and the new trade is rolled from the vanilla trade pool of the level that trade was unlocked at. A Journeyman trade stays a Journeyman trade, which keeps everything balanced and predictable.
Swapping works on any unlocked trade, whether you have traded with that villager before or not. The new trade starts with full stock, so you can immediately take advantage of your fresh deal. Duplicates are prevented just like in vanilla, meaning a villager never ends up with two trades of the same kind at one level. A book can still become a book with a different enchantment, though.
Costs, Discounts, and Configuration
By default, each swap costs 1 emerald taken from your inventory. Server owners can edit config/villagertradeswap.json to change the cost to any whole number from 0 to 64, and setting it to 0 makes swapping free. Swapping is always free in Creative mode. Swapped trades immediately receive your reputation and Hero of the Village discounts, so your prices stay fair.
A small toggle above the trade list shows or hides the swap buttons and remembers your choice between sessions. Trades added by other mods through the standard villager trade events can also appear in a swap, and explorer map lookups are cached so swapping a cartographer's trades does not cause lag.
Supported Versions and Loaders
Villager Trade Swap for Minecraft supports a wide range of game versions, including 1.20 through 1.20.1, 1.21 through 1.21.1, 1.21.11, and the newer 26.x releases. It is available for Forge, NeoForge, and Fabric, with Fabric requiring Fabric API. On Forge and NeoForge the mod is required on both the client and the server, while Fabric players should install it on both sides to use the swap buttons. Players without the mod can still join and trade normally, and a client with the mod on a server without it simply shows no buttons.
If you want a hassle-free setup, the foxygame.net launcher handles the entire installation of Villager Trade Swap in one click, pulling the correct build for your exact game version automatically. Its add-on catalog also keeps everything current, so you never have to hunt down a matching file again.
How to Install Villager Trade Swap
Getting started takes only a few minutes:
- Download Villager Trade Swap from the official project page or your preferred mod hosting site.
- Install the correct loader for your Minecraft version, such as Forge, NeoForge, or Fabric with Fabric API.
- Place the downloaded JAR file into your mods folder.
- Launch the game and open a villager's trading screen to confirm the swap buttons appear.
- On a server, install the mod on both the server and your client for full functionality.
When you download Villager Trade Swap, make sure the file matches both your Minecraft version and your loader, since each combination has its own build. The mod works in existing worlds too, so villagers you tamed or traded with before installing can be swapped as well. It is also safe to remove: without the mod, villagers keep the trades you swapped in and continue as vanilla villagers.
Compatibility and Modpacks
Villager Trade Swap plays nicely with Villager Trade Peek, since swapping a trade does not change the future trades that Peek reveals. It also works alongside Trade Cycling, which rerolls all level 1 trades, while this mod targets a single trade at any level. Modpack creators are free to include it thanks to its MIT license.
One practical benefit deserves a mention: because a villager can only hold one enchanted book trade per level, a single librarian can now offer up to four books of your choice across levels 1 to 4. That means much smaller trading halls and far fewer lecterns in your base.
Final Thoughts
Villager Trade Swap removes one of the most frustrating grind loops in Minecraft without breaking vanilla balance. The single-trade approach, configurable cost, and broad version support make it a must-have for traders and builders alike. Whether you are fixing a stubborn librarian or optimizing a full trading hall, this mod delivers exactly what its name promises.