Custom Villager with potions as trade

Custom Villager with potions as trade - Asian people standing near indigenous market with goods on ground

So I'm trying to make a custom trade villager with potions as one of the trades. But I can't seem to figure out what to put in the command block.

What I've got so far is:

sell:{id:"minecraft:potion",Count:1}}

Can someone help me with this command?

I'm playing on version 1.9



Best Answer

In 1.9, potions no longer rely on the damage value of the potion item to determine what type of default potion it is. Instead, the Potion string tag holds a string-based default potion ID, which is stored in the tag compound:

sell:{id:"minecraft:potion",Count:1,tag:{Potion:"minecraft:strength"}}}

If instead you want to sell a potion with custom effects, you would use the old CustomPotionEffects list (using an effect ID):

sell:{id:"minecraft:potion",Count:1,tag:{CustomPotionEffects:[{Id:5,Duration:600}]}}}



Pictures about "Custom Villager with potions as trade"

Custom Villager with potions as trade - Asian male in casual wear hunkering down and choosing ducklings from cages in indigenous street bazaar
Custom Villager with potions as trade - Asian women working on local market on street
Custom Villager with potions as trade - Asian men buying plastic bags in local street market



Can you trade villagers for potions?

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.

How do you make a villager trade potion?

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.



(Minecraft 1.17) How To Generate Custom OP Weapons, Potions, and Villager Trades in Minecraft!




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Quang Nguyen Vinh, Quang Nguyen Vinh, Quang Nguyen Vinh, Quang Nguyen Vinh