Help with Villager Potion Trading

Started by Zaldune on

Topic category: Help with Minecraft modding (Java Edition)

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.

Joined Sep 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
create a custom item who…
Thu, 09/12/2024 - 18:58

create a custom item who give the potion effect when drinked and add this in villager trade