How do I connect my potion-command to my villager's trading-system? [duplicate]
Add all of the potion's custom tags to the sell item, inside the tag
tag:
/summon Villager ~1 ~ ~ { Profession: 2, CustomName: "Aldorf the wizzard", CustomNameVisible: 1, Career: 1, CareerLevel: 42, PersistenceRequired: 1, Silent: 1, Invulnerable: 1, Attributes: [ { Name: "generic.maxHealth", Base: 99999 } ], Offers: { Recipes: [ { buy: { id: "record_13", Count: 1 }, buyB: { id: "skull", Count: 1, Damage: 1 }, maxUses: 9999999, sell: { id: "potion", Count: 1, tag: { CustomPotionEffects:[{Id:3,Amplifier:0,Duration:60},{Id:7,Amplifier:0,Duration:60},{Id:9,Amplifier:0,Duration:120},{Id:10,Amplifier:0,Duration:60},{Id:14,Amplifier:0,Duration:20},{Id:15,Amplifier:0,Duration:140},{Id:16,Amplifier:0,Duration:600},{Id:17,Amplifier:500,Duration:600},{Id:18,Amplifier:9,Duration:600},{Id:19,Amplifier:100,Duration:600},{Id:20,Amplifier:100,Duration:200},{Id:23,Amplifier:500,Duration:600}],display:{Name:"Poison",Lore:["Poisons anyone it is used to.","The only way to survive is to drink milk in seconds."]} } } } ] } }