Creating a villager that will buy zombie pigman swords
I have made villagers before using MC Stacker. Here is my dilemma: I want to have the villager buy a golden sword with Looting II on it and sell a written book. I have set that up but the villager will not seem to buy the sword; the NBT tags are different. The swords are not the same despite the enchantments being the same.
The villager will not trade since the NBT tags are different. How do I go about making them the same?
This is the command I used to summon the Villager:
/summon Villager ~ ~1 ~ {CustomName:"Kunueme",CustomNameVisible:1,Profession:1,Career:0,CareerLevel:18,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:golden_sword,Count:1,tag:{ench:[{id:21,lvl:2}]}},sell:{id:written_book,Count:1,tag:{display:{Name:"A buck"},title:"",author:"The Street",generation:0,pages:["{text:\"\",color:black}"]}}}]}}
Best Answer
It looks like there's a tag on the sword in your inventory that's not on the sword the villager wants. Try throwing your sword on the ground and running /entitydata @e[type=Item,r=3]
. Look in the error message for the Item:{}
tag, and edit your villager command accordingly.
Pictures about "Creating a villager that will buy zombie pigman swords"
Are cured villager discount permanent?
A newly-cured villager, if it had a profession prior to being zombified, offers a trading discount to the player who administered the cure. These discounts are permanent. If a villager is cured more than once, the discounts get deeper until the price reaches the minimum of one emerald.How do you convert villagers?
How to Change Villager Jobs in Minecraft. To change a villager's job, all you need to do is destroy the job site block that they're currently using as their profession. For example, if you want to change a Farmer villager's job, you'd destroy the Composter block that they're using.How do you lower a villager price?
As of now, there is only one known way to lower villagers trading prices in Minecraft, and that is to earn the "Hero of the Village" achievement. The Hero of the Village is a status effect that is granted to the Minecraft player upon defeating a raid.What can you get from villagers in Minecraft?
Cleric \u2013 Offers magical items, and even Bottle o' Enchanting. Farmer \u2013 Offers advanced food, and even brewing ingredients. Fisherman \u2013 Offers fish, and even an enchanted Fishing Rod. Fletcher \u2013 Offers bows, arrows, flint, and even Tipped Arrows.How to Craft VILLAGER ARMOR in Minecraft Tutorial!
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Ron Lach, Ron Lach, Quang Nguyen Vinh, Quang Nguyen Vinh