forum Forumsplay_arrow Minecraft fiber_manual_record Redstone


Need help with custom villagers trades

3 emeralds8 replies121 views
created 04/18/2019 1:52 pm by Dragonhunter880
last reply 05/21/2019 1:13 pm
Hello guys,
i need some help with the 1.13.2 custom villager trades. I tryed to make a villager that trades 10 stone and a wooden sword for an unbreakable stone sword but everytime i try to make the sword unbreakable it just doesn't work.
Can anybody help with this.
Thanks for reading and special thanks for anybody trying to help.
Posted by avatar
Level 1 : New Miner

comment Login or register to post a reply.

8 replies

04/18/2019 8:59 pm
Level 6 : Apprentice Modder
To make it unbreakable you put a {Unbreakable:1} tag
For example:
/summon villager ~ ~ ~ {CareerLevel:1,CustomName:"{\"text\":\"Weapon Trader example\"}",Offers:{Recipes:[{buy:{id:"minecraft:stone",Count:10b},buyB:{id:"minecraft:wooden_sword",Count:1b},sell:{id:"minecraft:stone_sword",Count:1b,tag:{Unbreakable:1b}}}]}}
04/20/2019 10:09 am
Level 1 : New Miner
Thank you for your help.
I have one more question: how can I add a second trade where the villager trades 20 stone and a stone sword for a stone sword with sharpness 2.
Please answer.
04/28/2019 8:26 am
Level 6 : Apprentice Modder
Sorry for this really late reply, assuming you're still using 1.13, here is the command
/summon villager ~ ~ ~ {CareerLevel:1,CustomName:"{\"text\":\"Weapon Trader Example\"}",Offers:{Recipes:[{buy:{id:"minecraft:stone",Count:10b},buyB:{id:"minecraft:wooden_sword",Count:1b},sell:{id:"minecraft:stone_sword",Count:1b,tag:{Unbreakable:1b}}},{buy:{id:"minecraft:stone",Count:20b},buyB:{id:"minecraft:stone_sword",Count:1b},sell:{id:"minecraft:stone_sword",Count:1b,tag:{Unbreakable:1b,Enchantments:[{id:"minecraft:sharpness",lvl:2}]}}}]}}

I made the enchanted sword have unbreakable just incase.
05/21/2019 1:13 pm
Level 1 : New Miner
Thank you for your help
04/18/2019 2:10 pm
Level 36 : Artisan Unicorn
should be this command:

/summon Villager ~ ~1 ~ {Offers:{Recipes:[{buy:{id:(id he wants),Count:(How Much He Wants)},buyB:{id:(The SecondThing He Wants(Optional)),Count:(How Much He Wants)},sell:{id:(what He Will Give You),Count:(How Much He Will Give You),tag:{display:{Name:(Name),Lore:[(Bottom Name)]},ench:{id:(Enchantment id),lvl:(lvl Of Enchmantment)}]}}}]}}
04/18/2019 2:27 pm
Level 1 : New Miner
I still can't make it unbreakable
04/18/2019 4:07 pm
Level 7 : Apprentice Archer
What are you using for your Enchantment I.D. and level?
04/18/2019 4:52 pm
Level 36 : Artisan Unicorn
try this:

has to be put on a command block to be summoned in. and ive tried it and it works.

/summon villager ~ ~1 ~ {Invulnerable:1,CustomName:"\"Weapon Trader\"",Offers:{Recipes:[{buy:{id:cobblestone,Count:10},buyB:{id:wooden_sword,Count:1},sell:{id:stone_sword,Count:1,tag:{display:{Name:"\"Unbreaking Stone Sword\"",Lore:["Hard As A Rock"]},Enchantments:[{id:unbreaking,lvl:3}]}},maxUses:9999999}]},Profession:1,Career:1,CareerLevel:5}

Planet Minecraft



© 2010 - 2019