From 83059b3594dfaada5167f728a59f294f26edb522 Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 26 Oct 2022 21:28:19 +0200 Subject: [PATCH] Add stonecutting recipes for regular deepslate --- .../recipes/essentials/deepslate_stonecutting.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 kubejs/server_scripts/recipes/essentials/deepslate_stonecutting.js diff --git a/kubejs/server_scripts/recipes/essentials/deepslate_stonecutting.js b/kubejs/server_scripts/recipes/essentials/deepslate_stonecutting.js new file mode 100644 index 0000000..7756968 --- /dev/null +++ b/kubejs/server_scripts/recipes/essentials/deepslate_stonecutting.js @@ -0,0 +1,11 @@ +// priority: 0 + +onEvent("recipes", event => { + // For every stonecutting recipe that uses cobbled deepslate, + // add a recipe that can use regular deepslate as well. + event.forEachRecipe({ input: "minecraft:cobbled_deepslate", + type: "minecraft:stonecutting" }, recipe => { + let output = recipe.outputItems[0].getId(); + event.stonecutting(output, "minecraft:deepslate"); + }); +});