mojira.dev
MC-48929

Custom Villagers adding there own trades

I have a series of custom trades setup with villagers and after you have done 1 trade a wait a few sec or so an re-open the trade with that villager he has suddenly added 2-3 extra trades that arent in the code.

Linked issues

Comments 10

Please attach exact steps to reproduce.

1. Load this custom Villager

/summon Villager ~ ~1 ~ {Profession:0,CustomName:HORSE,CustomNameVisible:1,Offers:{Recipes:[{maxUses:1000,buy:{id:264,Count:1},sell:{id:329,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:7},sell:{id:418,Count:1,Damage:0}},{maxUses:1000,buy:{id:265,Count:7},sell:{id:417,Count:1,Damage:0}},{maxUses:1000,buy:{id:264,Count:7},sell:{id:419,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:1},sell:{id:420,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:13},sell:{id:421,Count:1,Damage:0}},{maxUses:0,buy:{id:7,Count:1},sell:{id:7,Count:1}}]}}
/summon Villager ~ ~1 ~ {Profession:0,CustomName:HORSE,CustomNameVisible:1,Offers:{Recipes:[{maxUses:1000,buy:{id:264,Count:1},sell:{id:329,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:7},sell:{id:418,Count:1,Damage:0}},{maxUses:1000,buy:{id:265,Count:7},sell:{id:417,Count:1,Damage:0}},{maxUses:1000,buy:{id:264,Count:7},sell:{id:419,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:1},sell:{id:420,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:13},sell:{id:421,Count:1,Damage:0}},{maxUses:0,buy:{id:7,Count:1},sell:{id:7,Count:1}}]}}

2. I traded the very 1st item

3. Close trade Window
4. wait 10 seconds & re-open trade
5. go past the Bedorck 4 Bedrock trade an there will be new trades

Anything happening with confirmation of this or ?

This is the intended behavior with the new villager AI. You can suppress new trades by applying a "Career" tag (which, if set to 0, will force new trades to be created), as well as applying some unknown value to the "CareerLevel" tag (100 seems to work just fine):

/summon Villager ~ ~1 ~ {Profession:0,Career:1,CareerLevel:100,CustomName:HORSE,CustomNameVisible:1,Offers:{Recipes:[{maxUses:1000,buy:{id:264,Count:1},sell:{id:329,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:7},sell:{id:418,Count:1,Damage:0}},{maxUses:1000,buy:{id:265,Count:7},sell:{id:417,Count:1,Damage:0}},{maxUses:1000,buy:{id:264,Count:7},sell:{id:419,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:1},sell:{id:420,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:13},sell:{id:421,Count:1,Damage:0}},{maxUses:0,buy:{id:7,Count:1},sell:{id:7,Count:1}}]}}
/summon Villager ~ ~1 ~ {Profession:0,Career:1,CareerLevel:100,CustomName:HORSE,CustomNameVisible:1,Offers:{Recipes:[{maxUses:1000,buy:{id:264,Count:1},sell:{id:329,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:7},sell:{id:418,Count:1,Damage:0}},{maxUses:1000,buy:{id:265,Count:7},sell:{id:417,Count:1,Damage:0}},{maxUses:1000,buy:{id:264,Count:7},sell:{id:419,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:1},sell:{id:420,Count:1,Damage:0}},{maxUses:1000,buy:{id:266,Count:13},sell:{id:421,Count:1,Damage:0}},{maxUses:0,buy:{id:7,Count:1},sell:{id:7,Count:1}}]}}

Thanks for that info. is there a way to also stop any XP being created from the trades? or a website about all this information?

Thanks. it would seem what im wanting on a per villager level isnt possible presently in minecraft as its more of an all or nothing 🙂

Warren Liddell : You can disable XP as of right now, see MC-47744

Thankyou, this has been most helpful

Warren Liddell

(Unassigned)

Confirmed

Minecraft 14w06b, Minecraft 14w08a

Retrieved