Help with Villager Potion Trading

Started by Zaldune on

Topic category: Help with modding (Java Edition)

Last seen on 08:45, 7. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with Villager Potion Trading

I thought I would come on here to see if anyone else knows how to do this because the way I've tried making Villagers trade potions doesn't seem to work.
I am using custom code as this isn't possible without it. Here's the section of custom code (it also has the imports imported, so it's not the fact that I don't have imports):

new PotionUtils.setPotion(new ItemStack(Items.POTION, Potions.STRONG_HEALING), 10, 5, 0.05f));

I'm not really sure what else to do here since I'm not extremely into Java coding and stuff.
So if anyone else knows and could help me out, I'd appreciate it.