diff --git a/kubejs/server_scripts/unification/storage_blocks.js b/kubejs/server_scripts/unification/storage_blocks.js index 1a77676..2464c3a 100644 --- a/kubejs/server_scripts/unification/storage_blocks.js +++ b/kubejs/server_scripts/unification/storage_blocks.js @@ -1,16 +1,21 @@ // priority: 0 onEvent("recipes", event => { - event.remove({ output: "thermal:apple_block" }); - event.remove({ output: "thermal:carrot_block" }); - event.remove({ output: "thermal:potato_block" }); - event.remove({ output: "thermal:beetroot_block" }); - event.remove({ output: "thermal:gunpowder_block" }); + function removeInputAndOutput(item) { + event.remove({ input: item }); + event.remove({ output: item }); + } - event.remove({ output: "quark:carrot_crate" }); - event.remove({ output: "quark:potato_crate" }); - event.remove({ output: "quark:beetroot_crate" }); - event.remove({ output: "quark:sugar_cane_block" }); + removeInputAndOutput("thermal:apple_block"); + removeInputAndOutput("thermal:carrot_block"); + removeInputAndOutput("thermal:potato_block"); + removeInputAndOutput("thermal:beetroot_block"); + removeInputAndOutput("thermal:gunpowder_block"); + + removeInputAndOutput("quark:carrot_crate"); + removeInputAndOutput("quark:potato_crate"); + removeInputAndOutput("quark:beetroot_crate"); + removeInputAndOutput("quark:sugar_cane_block"); event.remove({ output: "quark:bamboo_block" }); event.shaped("quark:bamboo_block", [ "BB", "BB" ], { B: "minecraft:bamboo" });