#Removing and replacing a Mekanism Recipe

7 messages · Page 1 of 1 (latest)

wary pike
#

Hi! I want to remove and create a recipe in the metallurgic infuser. I'm using KubeJS mekanism. For example, I want to remove this recipe in the picture and create the same recipe but with a copper block instead. I found some documentation saying that I can do it like: event.recipes.mekanism.metallurgic_infusing(output, inputItem, infusionInput, infusionAmount)

Right now I have it in the server scripts file and the ServerEvents.recipes(event => { } ) function

frozen foxBOT
#

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

shell sable
subtle gardenBOT
#

To find a recipe's ID, turn on advanced tooltips (F3 + H) then hover over the RECIPE OUTPUT in JEI, or the exclamation mark in REI.
You can then use this in any recipe filter:
{id: 'recipe ID here'}
You can use this, for example, to remove specific recipes:
event.remove({id: 'recipe ID here'})

wary pike
#

kk thanks, the remove works good, for adding a new recipe in the infuser the documentation says this would works but this is giving error
event.recipes.mekanism.metallurgic_infusing('mekanism:alloy_infused', 'minecraft:copper_block', 'minecraft:redstone', 10)

subtle gardenBOT
#

You can find your KubeJS server log in /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send it if asked, as it contains helpful information.

wary pike
#

Got it! Thanks :)