Like Loot Tables, but for Villager Trading
This mod allows you to create new villager professions and careers, and add or remove trades, using JSON files.
The mod comes with several new trades and a few new villagers to help get you started.
Create new Villagers!
Create entirely new villager professions, or add new careers for existing professions, or your custom ones.
Create new Trades and remove existing ones!
The mod makes it easy to add your own trades, or remove trades you don't like, with more flexibility for different trade options than vanilla Minecraft includes.
The mod supports trading items with metadata and NBT data, items with random potion or enchantment effects, multiple choice trades and trades with a percentage chance of occuring.
The mod supports trading items with metadata and NBT data, items with random potion or enchantment effects, multiple choice trades and trades with a percentage chance of occuring.
Configurable!
If you don't like the trades or villagers I've included, you don't need to use them. You can easily disable the built-in changes using a config file.
Documented!
There's documentation on how the JSON files work and what options the mod supports available on the wiki.
Included Trades for Vanilla Villagers:
Farmer
- Buys beetroot at level 1 at 15-19 per emerald
Fisherman
- Sells fishing rods at level 2 for 2-3 emeralds
- Sells enchanted fishing rods at level 3 for 7-8 emeralds
Shepherd
- Sells enchanted shears at level 3 for 12-15 emeralds
Fletcher
- Buys flint at level 1 for 15-20 per emerald
- Buys feathers at level 1 for 15-20 per emerald
- Sells enchanted bows at level 3 for 12-15 emeralds
Armorer
- 25% chance of each of the following:
- Sells enchanted diamond helmets at level 3 for 10-12 emeralds
- Sells enchanted diamond chestplate at level 3 for 16-19 emeralds
- Sells enchanted diamond leggings at level 3 for 14-17 emeralds
- Sells enchanted diamond boots at level 3 for 8-10 emeralds
Tool Smith
- Sells enchanted diamond shovels at level 3 for 9-12 emeralds
Butcher
- Buys raw beef at level 1 for 14-18 per emerald
- Buys raw mutton at level 1 for 14-18 per emerald
- Buys raw rabbit at level 1 for 14-18 per emerald
- Sells cooked beef at level 2 for 5-7 emeralds
- Sells cooked mutton at level 2 for 5-7 emeralds
- Sells cooked rabbit at level 2 for 6-8 emeralds
Leatherworker
- Buys rabbit hide at level 1 for 18-24 emeralds
Nitwit
- Buys poisionous potatoes at level 1 for 15-19 per emerald
Included Trades for Custom Villagers:
Brewer (Yellow Robe)
- Buys sugar at level 1 for 18-22 per emerald
- Buys brown mushrooms at level 1 for 15-19 per emerald
- Trades one carrot and one emerald at level 1 for one golden carrot
- Trades one melon slice and one emerald at level 1 for one glistering melon
- Sells puffer fish at level 1 for 3-5 emeralds
- Buys gunpowder at level 2 for 18-22 per emerald
- Buys spider eyes at level 2 for 12-16 per emerald
- Sells magma cream at level 2 for 3-5 emeralds
- Sells ghast tears at level 2 for 6-8 emeralds
- Sells fermented spider eyes at level 2 for 4-6 emeralds
- Sells a random potion at level 3 for 3-5 emeralds
- Sells 8-16 tipped arrows with a random effect at level 3 for 3-5 emeralds
Redstoner (Red Robe)
- Buys wooden planks at level 1 for 15-20 per emerald
- Buys stone at level 1 for 12-16 per emerald
- Sells 8-10 stone buttons or 10-12 wooden buttons at level 1 for 1 emerald
- Sells 4-6 levers at level 1 for 1 emerald
- Sells 4-5 stone pressure plates or 5-6 wooden pressure plates at level 1 for 1 emerald
- Sells 3-5 tripwire hooks at level 1 for 1 emerald
- Buys quartz at level 1 for 15-20 per emerald
- Sells redstone repeaters at level 2 for 8-12 emeralds
- Sells redstone comparators at level 2 for 10-16 emeralds
- Sells daylight sensors at level 2 for 10-16 emeralds
Tinkerer (Blue Robe)
- No trades
Necromancer (Purple Robe - New Career for Priest Villagers)
- Trades one zombie skull and 8-12 emeralds at level 1 for one zombie spawn egg
- Trades one skeleton skull and 8-12 emeralds at level 1 for one skeleton spawn egg
- Trades one creeper skull and 8-12 emeralds at level 1 for one creeper spawn egg
For anyone else having problems editing/ removing existing villager trades to replace them with custom ones; any mod that adds/ edits trades will likely conflict and prevent changing/ removing vanilla trades. You must disable their trade options in the configs.
Conflicting mods:
Charm.
Quark.
Actually additions.
Hunger overhaul if harvestcraft is installed.
Confirmed to work with editing trades:
Fish undead rising.
How to add trades with coloured wool?
It doesn't accept minecraft:wool:1 , but is there an other way?
So my goal is simple and I am wondering if this mod can do it, and if so how:
I want to change the villagers to accept currency from a mod in place of emeralds, but maintain some of the randomness they already have.
Ie changing 5 -6 carrots from costing emerald to 5-6 carrots costing a copper coin. (Not sure if that an actual trade amount or not, but it gets the idea across)
In reply to Tenchu98_1:
The only way to do this is remove existing trades and specify new ones. E.g this would change the vanilla blacksmith to use coins and add items from other mods (the important part here is the clear command at the top that removes all existing trades, the rest can be changed to whatever. this example uses coins from ancient warfare, hence the need for specifying the items nbt data tag):
{
{ Profession: "minecraft:smith", Career:"armor",
Offers:{ Recipes:[
{action:"clear"},
{action:"add", buy:{id:"ancientwarfarenpc:coin",Count:{min:12,max:18},tag:{metal:silver}},sell:{id:"minecraft:iron_ingot",Count:6}, CareerLevel:1},
{action:"add", buy:{id:"minecraft:coal",Count:{min:25,max:33}},sell:{id:"ancientwarfarenpc:coin",Count:5,tag:{metal:silver}}, CareerLevel:1,maxUses:5},
{action:"add", buy:{id:"ancientwarfarenpc:coin",Count:3,tag:{metal:silver}},sell:{id:"minecraft:shield",Count:1}, CareerLevel:1}
]
}
}
where i add custom textures? directly in the mod? i want to add it to my mod pack and noticed the file finder is strating directly from the mod "vtt:example".
Hay is there any way you can create a a config that allows you to increase how often a custom villager spawns. I want to create a custom Villager that spawns in every village.
I tried to add villager trades to the nitwit villager. I am in 1.12.2. I added vanilla and modded trades. It should have coal and steel 100% of the time, and the others only have a chance to be a trade. When I use this command: "/summon villager ~ ~1 ~ {Profession:5,Career:1,CareerLevel:0}" and try to click on the villager, it acts just like a normal nitwit. Also, the tinkerer (which I didn't even mess with) does the same thing. Help?!
Edit: Forgot to show the .json file
{ { Profession:"minecraft:nitwit", Career:"nitwit",
Offers:{ Recipes:[ {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"minecraft:diamond",Count:1}, CareerLevel:0, chance:0.15} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"minecraft:gold_ingot",Count:4}, CareerLevel:0, chance:0.19} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"minecraft:iron_ingot",Count:10}, CareerLevel:0, chance:0.87} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"minecraft:coal",Count:27,Damage:0}, CareerLevel:0} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"minecraft:dye",Count:4,Damage:10}, CareerLevel:0, chance:0.11} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"minecraft:redstone",Count:23}, CareerLevel:0, chance:0.99} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"umm3185118519:amber",Count:20}, CareerLevel:0, chance:0.78} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"umm3185118519:copper_ingot",Count:4}, CareerLevel:0, chance:0.18} {action:"add", buy:{id:"minecraft:emerald",Count:7},sell:{id:"umm3185118519:pearl",Count:1}, CareerLevel:0, chance:0.01} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"umm3185118519:topaz",Count:2}, CareerLevel:0, chance:0.13} {action:"add", buy:{id:"minecraft:emerald",Count:2},sell:{id:"umm3185118519:jade",Count:1}, CareerLevel:0, chance:0.04} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"umm3185118519:aquamarine",Count:2}, CareerLevel:0, chance:0.11} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"umm3185118519:tin",Count:2}, CareerLevel:0, chance:0.1} {action:"add", buy:{id:"minecraft:emerald",Count:5},sell:{id:"umm3185118519:ruby",Count:1}, CareerLevel:0, chance:0.03} {action:"add", buy:{id:"minecraft:emerald",Count:5},sell:{id:"umm3185118519:amethyst",Count:1}, CareerLevel:0, chance:0.03} {action:"add", buy:{id:"minecraft:emerald",Count:3},sell:{id:"umm3185118519:sapphire",Count:1}, CareerLevel:0, chance:0.05} {action:"add", buy:{id:"minecraft:emerald",Count:1},sell:{id:"umm3185118519:aluminum",Count:1}, CareerLevel:0, chance:0.07} {action:"add", buy:{id:"minecraft:emerald",Count:2},sell:{id:"umm3185118519:obsidian_shard",Count:1}, CareerLevel:0, chance:0.2} {action:"add", buy:{id:"minecraft:emerald",Count:2},sell:{id:"umm3185118519:steel",Count:1}, CareerLevel:0} {action:"add", buy:{id:"minecraft:emerald",Count:4},sell:{id:"umm3185118519:cobalt_ingot",Count:1}, CareerLevel:0, chance:0.07} {action:"add", buy:{id:"minecraft:emerald",Count:4},sell:{id:"umm3185118519:shining_steel",Count:1}, CareerLevel:0, chance:0.01} {action:"add", buy:{id:"minecraft:emerald",Count:4},sell:{id:"umm3185118519:golden_steel",Count:1}, CareerLevel:0, chance:0.23} {action:"add", buy:{id:"minecraft:emerald",Count:20},sell:{id:"umm3185118519:titanium",Count:1}, CareerLevel:0, chance:0.03} {action:"add", buy:{id:"minecraft:emerald",Count:8},sell:{id:"umm3185118519:enhanced_ingot",Count:1}, CareerLevel:0, chance:0.01} {action:"add", buy:{id:"minecraft:emerald",Count:8},sell:{id:"umm3185118519:cobalt_steel",Count:1}, CareerLevel:0, chance:0.08} {action:"add", buy:{id:"minecraft:emerald",Count:16},sell:{id:"umm3185118519:titanium_steel",Count:1}, CareerLevel:0, chance:0.04} {action:"add", buy:{id:"minecraft:emerald",Count:16},sell:{id:"umm3185118519:tungsten",Count:1}, CareerLevel:0, chance:0.12} {action:"add", buy:{id:"minecraft:emerald",Count:16},sell:{id:"umm3185118519:mythril_ingot",Count:1}, CareerLevel:0, chance:0.01} {action:"add", buy:{id:"minecraft:emerald",Count:32},sell:{id:"umm3185118519:heavy_metal_alloy",Count:1}, CareerLevel:0, chance:0.01} {action:"add", buy:{id:"minecraft:emerald",Count:64},sell:{id:"umm3185118519:unobtainium",Count:1}, CareerLevel:0, chance:0.01} ] }
}
Hi! I have some question I need to help with..
NOTE: I have changed farmer, butcher, blacksmiths trades too with the same exact action with different trades, they works well but fletcher...
[ 2 ]
I wanted to add tinker's construct trades in it.. but I couldnt get the item ID is kinda merged... as in, they have the same ID and tag.. the only different is their name.. how should I add them in the trade?
In reply to chiikayuki:
If your removing all trades, instead of multiple remove commands try:
{action:"clear"},
Ive got that at the top of all trades and it works well.
how can i remove the villager: brewer, necromancer, tinkerer, redstoner and replace them with new career?
I have tried to change the career but they still spawn.
How do i make custom trades? I dont even see a config file for this.
If someone figures out how to add trades for enchanted books with random enchantments and explorer maps (monument and mansion), let me know. I am trying to add the old trades for the librarian and cartographer. The Wiki is not of any help... Thanks in advance!
In reply to da_real_steve:
try this:
{{ action: "add", CareerLevel:1, uses:0, maxUses:2147483647, buy: {id:"modcurrency:banknote",Count:4,Damage:5}, sell:{id:"minecraft:book",Count:1, tag:{ench:"random"}} },
This is one of the trades im using in my "enchanter". Each level they have another random book. Notice the tag tag:{ench:"random"}. I dont know about explorer maps though.
Hope that helps :-)
do the redstoner and brewer show up naturally?
In reply to Forge_User_05597637:
Not sure about redstoner, but the brewer has appeared naturally when I've played.
Can you remove all vanilla trades and replace them entirely? I've been trying to, but it seems to be keeping the vanilla ones for some reason.
In reply to thequietestgirl:
Check my reply to chiikayuki top of the page
How can I use this for Minecraft Comes Alive. I can't seem to get it working
This is great, but I noticed that the cleric and necromancer tables are the same... i.e, you can't get the vanilla priest trades/table anymore. Or am I missing something?
can you put any Trade?