#Any way to create new potion recipes without MoreJS ?
8 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
const BrewingRecipeRegistry = Java.loadClass('net.minecraftforge.common.brewing.BrewingRecipeRegistry')
StartupEvents.init(event => {
BrewingRecipeRegistry.addRecipe(input, ingredient, output)
})
That seems so simple, thank you! Do you know however how I should format this if the input and output are specific potions? 🙏
for example if the input is an awkward potion and the output something like a potion of strength?
StartupEvents.init(event => {
BrewingRecipeRegistry.addRecipe(Ingredient.customNBT("minecraft:potion", (nbt) => {return nbt.contains("Potion") && nbt.Potion == "minecraft:awkward";}), "minecraft:iron_nugget", Item.of("minecraft:potion", { Potion: "minecraft:strength" }))
})
I tried doing this, but it doesn't manage to find any potion with the nbt 'minecraft:awkward'