custom potions into villager trades

Started by kolokythi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
custom potions into villager trades

so im trying to add a potion to my villager trades yet I just cant and im not sure how to do it can anyone help?

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You have the option to add…
Mon, 01/13/2025 - 20:52

You have the option to add villager trade element and choose the profession. You choose the element for sale and price(1 emerald for the bottle) and rank of the villager

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you will need to…
Mon, 01/13/2025 - 21:13

I think you will need to edit the code of the villager trade (and make sure to save and lock it afterwards), that way you add your potion's nbt data to the item that is sold.

However, I'm not quite sure what nbt data you will need to use, or even what the code for nbt from a villager trade would look like. My recommendation would be to use a tool like 7zip to look through the data files for Minecraft or a mod, and try to look at how the fletcher villager handles tipped arrows.