From eb514b62a5b85599bdd493ed97b820993a849ee8 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Sat, 16 Jul 2022 19:21:40 -0500 Subject: [PATCH] Use log, optional dimension param --- kubejs/server_scripts/Init.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kubejs/server_scripts/Init.js b/kubejs/server_scripts/Init.js index 6470db3..6c47329 100644 --- a/kubejs/server_scripts/Init.js +++ b/kubejs/server_scripts/Init.js @@ -60,6 +60,9 @@ global.duplicateResources = [ global.metals = ['iron', 'gold', 'copper', 'tin', 'silver', 'lead', 'aluminum', 'zinc', 'nickel']; +/** + * @param {Internal.RecipeEventJS} event + */ global.recipes = event => { return { /** @@ -69,12 +72,11 @@ global.recipes = event => { */ dissolution: (result, items, fluid, processingTime) => { if (items.length > 8) { - console.error( + console.log( `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()), @@ -92,12 +94,12 @@ global.recipes = event => { acceptMirrored: false, }); }, - warping: (input, output) => { + warping: (input, output, dimension) => { event.custom({ type: 'architects_palette:warping', ingredient: [Item.of(input).toJson()], result: output.toResultJson(), - dimension: 'minecraft:the_nether', + dimension: dimension ? dimension : 'minecraft:the_nether', }); }, pressurizing: (inputs, results, pressure) => {