How do i make custom villagers that sells custom potions?
I'm making a survival map, and now i'd like to add some custom villagers in a tower that can sell custom potions.
For example let's say you have a librarian, and he offers you a potion called: "Potion of Strengh"
That potion would give the player strengh 4, and it would have a duration of 60 sec.
I have tried to use 2 generators witin one site, and I used this following command:
/summon Villager ~1 ~ ~ {Profession:1,CustomName:"The First Wizard",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.movementSpeed",Base:"0f"}],Offers:{Recipes:[{buy:{id:"emerald",Count:1},maxUses:9999999,sell:{id:"potion 1 0 {CustomPotionEffects:[{Id:5,Amplifier:5,Duration:600}],display:{Name:"Super Potion"}}",Count:1},rewardExp:false}]}}
But I only get within a message within the previous output that says:
[14:01:07] Data tag parsing failed: Unexpected token 'S' at: Super Potion"}}",Count:1
And keep in mind I used two generators from this website here to make the command.
Pictures about "How do i make custom villagers that sells custom potions?"
How do you make a villager sell your custom items?
These villagers could have witch-like outfits and trade all sorts of ores for potions. They could also trade for potion materials, brewing stands, and lingering potions.Can villagers sell potions?
You can customize this command to make the villager trade whatever you would like. TIP: See data tags for villager to learn more about the Offers data tag. For example, replace id:leather with the item id you would like the villager to buy.Setting up CUSTOM TRADES in Vanilla Minecraft 1.17! (Part 1)
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yan Krukov, Albert Nunez, Garvin St. Villier, Gijs Coolen