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] 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); + }); +});