From b4959efe9d0430817d00f2244762f69d7fb5c735 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 28 Jun 2022 21:58:04 -0500 Subject: [PATCH] Consolidate --- kubejs/server_scripts/Init.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/kubejs/server_scripts/Init.js b/kubejs/server_scripts/Init.js index 6af4659..6470db3 100644 --- a/kubejs/server_scripts/Init.js +++ b/kubejs/server_scripts/Init.js @@ -8,6 +8,9 @@ global.ie = x => { }; global.duplicateResources = [ + {tag: 'forge:gears/diamond', item: 'industrialforegoing:diamond_gear'}, + {tag: 'forge:gears/gold', item: 'industrialforegoing:gold_gear'}, + {tag: 'forge:gears/iron', item: 'industrialforegoing:iron_gear'}, {tag: 'forge:coal_coke', item: global.ie('coal_coke')}, {tag: 'forge:dusts/constantan', item: global.ie('dust_constantan')}, {tag: 'forge:dusts/copper', item: global.ie('dust_copper')}, @@ -59,6 +62,27 @@ global.metals = ['iron', 'gold', 'copper', 'tin', 'silver', 'lead', 'aluminum', global.recipes = event => { return { + /** + * @param {ItemStackJS|string} result + * @param {ItemStackJS[]} items + * @param {FluidStackJS} fluid + */ + dissolution: (result, items, fluid, processingTime) => { + if (items.length > 8) { + console.error( + `Received ${items.length} items for a dissolution chamber recipe - max permitted is 8` + ); + return; + } + + event.custom({ + type: 'industrialforegoing:dissolution_chamber', + input: items.map(x => x.toJson()), + inputFluid: `{FluidName:"${fluid.getId()}",Amount:${fluid.getAmount()}}`, + processingTime: processingTime || 400, + output: result.toResultJson(), + }); + }, giant: (result, pattern, ingredients) => { event.custom({ type: 'create:mechanical_crafting',