From 6ec73fc256bfc978d81647ab96f47aaea1b1dfe8 Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 26 Oct 2022 21:21:47 +0200 Subject: [PATCH] Add IE structural arm convenience recipes --- kubejs/server_scripts/recipes/structural_arm.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 kubejs/server_scripts/recipes/structural_arm.js diff --git a/kubejs/server_scripts/recipes/structural_arm.js b/kubejs/server_scripts/recipes/structural_arm.js new file mode 100644 index 0000000..421f943 --- /dev/null +++ b/kubejs/server_scripts/recipes/structural_arm.js @@ -0,0 +1,12 @@ +// priority: 0 + +onEvent("recipes", event => { + // See `recipes/essentials/stairs.js` for comments. + event.forEachRecipe({ id: /^immersiveengineering:crafting\/.*_slope$/ }, recipe => { + let input = recipe.inputItems[0]; + let output = recipe.outputItems[0].getId(); + recipe.replaceOutput(output, "6x " + output, false, (out, orig) => out); + event.shaped("3x " + output, [ "BB", "B " ], { B: input }); + event.shapeless(input, [ output ]); + }); +});