How to Create a Custom Crafting Table Recipe with a Night Vision Potion?

Started by Phoenix8772 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Create a Custom Crafting Table Recipe with a Night Vision Potion?

Good morning, I am currently creating a recipe for a custom crafting table that I want to use a night vision potion as an ingredient. Does anyone know how to do this?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The trouble is that potion…
Sun, 09/24/2023 - 17:25

The trouble is that potion values are NBT data, not their own unique items. Meaning that there's only one potion, splash potion, lingering potion, and tipped arrow item; but they can be assigned a different NBT value to change their effect.

To the best of my knowledge, it's not possible to make recipes with NBT tags through the crafting interface. (Tipped arrows are an obvious exception, but they actually have their own set of custom code seperate from the rest of the crafting recipes.) There may be a way to do this, but if so, I haven't found it. The solution will almost certainly involve custom code.