Generator
Villager Trade Builder
Make a villager or wandering trader that sells exactly what you choose, at your prices. Get a /summon command for Java 26.3, or replace the trades of one you already have.
Who trades
A villager with the job, look and level you pick.
Name and behavior
It never walks off, turns or sleeps. Trading still works.
Mobs and survival players can't hurt it.
No villager sounds.
Building a different mob? Try the Mob Builder.
How to use the Villager Trade Builder
Make a shop villager or a wandering trader that sells exactly what you choose. Set the price, a second cost, the item's name and enchantments, and how many times each trade works. The command matches your Java version, from 1.17 to 26.3.
Quick steps
- 1Pick a villager (its job, look and level) or a wandering trader
- 2For each trade, choose what the player pays and what they get
- 3Name or enchant the item it sells, and set its uses and price
- 4Copy the /summon command and run it where the trader should stand
Example use cases
- A shop at a server's spawn that sells kits, keys or rare blocks
- Rewards in an adventure map: trade quest items for gear
- A master librarian with the exact books you want, for testing
Tips
Keep Stay in place and Can't be hurt on for a shop: it can't wander off or be killed
Use Unlimited uses: a summoned villager usually has no job site to restock at
A long trade list is too long for the chat box: paste it into a command block
Copy the link to share a trader; it opens with the same trades
Frequently asked questions
How do you give a villager custom trades in Minecraft?
Summon it with its trades in the command: /summon minecraft:villager ~ ~ ~ {Offers:{Recipes:[…]}}, one entry per trade with what it costs (buy, and buyB for a second cost) and what it sells (sell). The item format changed in Java 1.20.5, so the command has to match your version. This tool writes it for any version from 1.17 to 26.3.
How do you change the trades of a villager that already exists?
Use /data merge entity on it with a new Offers list. The new list replaces every trade it had, and the villager keeps its profession, level and look. The tool gives you that command too, aimed at the nearest villager or wandering trader.
Why did my villager lose its custom trades?
A Novice villager that has never traded quits its job when it has no job site block, and a villager that changes job forgets all its trades. Make it level 2 or higher (the tool writes the matching XP), or stop it moving with NoAI. Trades that give the villager XP can also level it up, and each new level adds two of the game's own trades.
How do I stop a villager trade from running out?
Set its uses to Unlimited. A trade locks once its uses are spent and only unlocks when the villager restocks at its job site block, which a summoned shop villager usually does not have. Wandering traders never restock.
How do I keep villager prices from changing?
Choose a fixed price. The price multiplier decides how far a price moves with demand and with how much the villager likes the player; at 0 the price you set is the price paid. The Hero of the Village effect still gives its discount.
Can a villager trade enchanted or renamed items?
Yes, for the item it sells. Pick the item, give it a name and add enchantments at any level up to 255. An enchanted book stores its enchantments the way a real one does, so it works in an anvil.
Which villager professions can I use?
Any of the 13 with a job: armorer, butcher, cartographer, cleric, farmer, fisherman, fletcher, leatherworker, librarian, mason, shepherd, toolsmith, weaponsmith. Unemployed villagers and nitwits are left out, because an unemployed villager drops its trades when it takes a job.