TransWikia.com

Custom villager trades with potions

Arqade Asked by Trebonianus on January 25, 2021

So I am making an RPG-style map and as such I needed some custom potions. I tried to make a Wine Merchant that sells a custom potion but when it spawns, it only sells a non-craftble potion. What can I do? My version in 1.16 and I only find old tutorials

Command:

summon villager 1442 70 575 {VillagerData:{profession:fletcher,level:2,type:plains},Rotation:[180f,0f],CustomName:""Wine Merchant"",Offers:{Recipes:[{buy:{id:emerald,Count:7},sell:{id:potion,Count:1,tag:{ potion:{CustomPotionColor:16386209,display:{Name:'[{"text":"Cheap Heartland Wine","italic":false}]'},CustomPotionEffects:[{Id:22,Duration:500},{Id:15,Duration:500},{Id:5,Duration:1000}]}}},rewardExp:0b,maxUses:9999999}

2 Answers

I used https://mcstacker.net/ to generate this command:

/summon villager 1442 70 575 {Rotation:[180F,0F],CustomName:'{"text":"Wine Merchant"}',VillagerData:{level:2,profession:"minecraft:fletcher",type:"minecraft:plains"},Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,buy:{id:"minecraft:emerald",Count:7b},sell:{id:"minecraft:potion",Count:1b,tag:{display:{Name:'{"text":"Cheap Heartland Wine","italic":false}'},CustomPotionEffects:[{Id:5b,Amplifier:0b,Duration:1000},{Id:15b,Amplifier:0b,Duration:500},{Id:22b,Amplifier:0b,Duration:500}],CustomPotionColor:16386209}}}]}}

Answered by ginkgo on January 25, 2021

I suggest using the Custom Villager Shops datapack under utilites here, it can be used to configure these more easily. Sneak near the villagers to edit their trades.

Answered by valkyrie_pilot on January 25, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP