From 3223efdf96dbbe6e7ff157d2ec9a999e7d0a718b Mon Sep 17 00:00:00 2001 From: Kanzaji <60540476+Kanzaji@users.noreply.github.com> Date: Wed, 8 Mar 2023 16:50:49 +0100 Subject: [PATCH 1/2] Add Create Netherrack Generation (#353) Should resolve #353 --- .../server_scripts/base/recipes/create/filling.js | 15 +++++++++++++++ .../base/recipes/create/splashing.js | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 kubejs/server_scripts/base/recipes/create/filling.js create mode 100644 kubejs/server_scripts/base/recipes/create/splashing.js diff --git a/kubejs/server_scripts/base/recipes/create/filling.js b/kubejs/server_scripts/base/recipes/create/filling.js new file mode 100644 index 0000000..2493761 --- /dev/null +++ b/kubejs/server_scripts/base/recipes/create/filling.js @@ -0,0 +1,15 @@ +onEvent('recipes', (event) => { + const id_prefix = 'enigmatica:base/create/filling/'; + const recipes = [ + { + input: 'minecraft:cobblestone', + fluid: Fluid.of('minecraft:lava', 500), + output: 'minecraft:magma_block', + id: `${id_prefix}magma_block_from_lava` + } + ]; + + recipes.forEach((recipe) => { + event.recipes.create.filling(recipe.output, [recipe.fluid, recipe.input]).id(recipe.id); + }); +}); diff --git a/kubejs/server_scripts/base/recipes/create/splashing.js b/kubejs/server_scripts/base/recipes/create/splashing.js new file mode 100644 index 0000000..8d8f576 --- /dev/null +++ b/kubejs/server_scripts/base/recipes/create/splashing.js @@ -0,0 +1,14 @@ +onEvent('recipes', (event) => { + const id_prefix = 'enigmatica:base/create/splashing/'; + const recipes = [ + { + outputs: ['minecraft:netherrack'], + input: 'minecraft:magma_block', + id: `${id_prefix}cooling_netherrack` + } + ] + + recipes.forEach((recipe) => { + event.recipes.create.splashing(recipe.outputs, recipe.input).id(recipe.id); + }); +}); From e52de7508cbb00d053ce711a30449df965f07576 Mon Sep 17 00:00:00 2001 From: Kanzaji <60540476+Kanzaji@users.noreply.github.com> Date: Wed, 8 Mar 2023 17:03:45 +0100 Subject: [PATCH 2/2] Replace Splashing of Magma Block with Haunting. --- .../base/recipes/create/{splashing.js => haunting.js} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename kubejs/server_scripts/base/recipes/create/{splashing.js => haunting.js} (53%) diff --git a/kubejs/server_scripts/base/recipes/create/splashing.js b/kubejs/server_scripts/base/recipes/create/haunting.js similarity index 53% rename from kubejs/server_scripts/base/recipes/create/splashing.js rename to kubejs/server_scripts/base/recipes/create/haunting.js index 8d8f576..7d43389 100644 --- a/kubejs/server_scripts/base/recipes/create/splashing.js +++ b/kubejs/server_scripts/base/recipes/create/haunting.js @@ -1,14 +1,14 @@ onEvent('recipes', (event) => { - const id_prefix = 'enigmatica:base/create/splashing/'; + const id_prefix = 'enigmatica:base/create/haunting/'; const recipes = [ { outputs: ['minecraft:netherrack'], input: 'minecraft:magma_block', - id: `${id_prefix}cooling_netherrack` + id: `${id_prefix}haunting_netherrack` } ] recipes.forEach((recipe) => { - event.recipes.create.splashing(recipe.outputs, recipe.input).id(recipe.id); + event.recipes.create.haunting(recipe.outputs, recipe.input).id(recipe.id); }); });