#Any way to create new potion recipes without MoreJS ?

8 messages · Page 1 of 1 (latest)

nimble marlin
#

Is there any way in KubeJS forge 1.20.1 to make potion recipes for a custom potion (already created) WITHOUT using MoreJS in ANY way possible? I have quite a lot of issues with MoreJS that prevents me from using that mod, is there any other obscure way?

split lavaBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

wintry depot
#
const BrewingRecipeRegistry = Java.loadClass('net.minecraftforge.common.brewing.BrewingRecipeRegistry')
StartupEvents.init(event => {
    BrewingRecipeRegistry.addRecipe(input, ingredient, output)
})
nimble marlin
#
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'

tawny junco
#

Could be because potion is an object not a string

#

Not sure though

#

Or, try setting weakNBT