#Using ingredients in forEachRecipe in immersive engineering not working

7 messages · Page 1 of 1 (latest)

valid olive
#
event.forEachRecipe({input: "#forge:plates", output: '#forge:sheetmetals'}, recipe => {
          event.recipes.immersiveengineering.metal_press(recipe.originalRecipeResult.id, InputItem.of(recipe.json.get('base_ingredient')), 'immersiveengineering:mold_packing_4')
     })

Nothing fukn works. I tried getting them first [0] and parsing. Using it as an ingredient directly, parsing as an item, using originalRecipeIngredients in a million different ways. What am I doing wrong here???

steady warrenBOT
#

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

valid olive
#

I just want to use the first ingredient and use withCount(4) on it

west quiver
#

may you add a console.log("recipe:", recipe.getId()) in the callback and send the server log ?

valid olive
#

recipe.getId isn't null. It's alright I had to manually set up a script to iterate through the "keys" in a shaped crafting recipe to accumlate the ingredients

#

No idea why kubejs has trouble doing this

#

what a mess...