TransWikia.com

Can you still make a custom villager that sells custom potions? Java 1.16.2

Arqade Asked by John Snow on December 9, 2020

I’m trying to figure out if you can still create custom villagers that sell custom potions such as speed 10.

/summon villager ~ ~1 ~ {Offers:{Recipes:[{buy:{id:acacia_planks,Count:1},sell:{id:potion,Count:1,tag:{Potion:"minecraft:water",CustomPotionEffect:[{Id:3,Amplifier:2,Duration:180}]}}}]}}

The villager spawns however, the trade is just a water bottle with no potion effect.

One Answer

CustomPotionEffect is not a valid NBT tag. The correct name is CustomPotionEffects.

Fixed command:

/summon villager ~ ~ ~ {Offers: {Recipes: [{buyB: {id: "minecraft:air", Count: 0b}, buy: {id: "minecraft:acacia_planks", Count: 1b}, sell: {id: "minecraft:potion", Count: 1b, tag: {Potion: "minecraft:water", CustomPotionEffects: [{Duration: 180, Id: 3b, Amplifier: 2b}]}}}]},VillagerData:{profession:"minecraft:farmer",level:1}}

You must provide a villager profession to be able to trade with the villager.

Answered by ExpertCoder14 on December 9, 2020

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