-
Bug
-
Resolution: Works As Intended
-
None
-
Minecraft 1.8.9
-
None
-
Unconfirmed
So I have been trying to make a custom villager, which takes an item for exchange and offering a separate item... totally not working properly. The code can be found below.
It looks fine to me, however, the Villager will sell you the item from the SECOND selection, if you offer the correct item in exchange placing it into the FIRST selection. The FIRST selection has no entries for buy or sell... so why is it able to sell an item not defined within its parameters? It is pulling the item from the SECOND entry and offering it in both slots, even without showing the item in the FIRST entry.
Code is as follows....
/summon Villager ~ ~1 ~ { Profession:0, CustomName:"Why Wont This Work", CustomNameVisible:1, Career:2, CareerLevel:42, CanPickUpLoot:0, PersistenceRequired:1, Invulnerable:1, Offers:{ Recipes:[ {buy:{},buyB:{},sell:{}}, {buy:{ id:"paper", Count:1, tag:{ display:{ Lore:["Ticket", "Custom Ticket"]} } }, maxUses:9999999, sell:{ id:"leather_helmet", Count:1, rewardExp:false}}]}}
So notice the first entry has {buy:{},buyB:{},sell:{}} listed... yet, can still purchase an item from this slot.... why?