From 1dd332e3e57ea326b6876226ec53445310272c1b Mon Sep 17 00:00:00 2001 From: copygirl Date: Mon, 1 Aug 2022 18:55:30 +0200 Subject: [PATCH] Add dust Create crushing recipes --- .../recipes/create_crushing_dust.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kubejs/server_scripts/recipes/create_crushing_dust.js diff --git a/kubejs/server_scripts/recipes/create_crushing_dust.js b/kubejs/server_scripts/recipes/create_crushing_dust.js new file mode 100644 index 0000000..7416d94 --- /dev/null +++ b/kubejs/server_scripts/recipes/create_crushing_dust.js @@ -0,0 +1,18 @@ +// priority: 0 + +onEvent("recipes", event => { + for (let material of Object.values(global.unification)) + if (material.ingot && material.dust) + event.recipes.createCrushing(material.dust[0], material.ingot[0]); + + for (let item of [ "apatite", "cinnabar", "niter", "sulfur" ]) + event.recipes.createCrushing(`thermal:${item}_dust`, `thermal:${item}`); + + for (let item of [ "diamond", "emerald", "quartz" ]) + event.recipes.createCrushing(`thermal:${item}_dust`, `minecraft:${item}`); + event.recipes.createCrushing("thermal:lapis_dust", "minecraft:lapis_lazuli"); + + event.recipes.createCrushing("ae2:certus_quartz_dust", "#ae2:all_certus_quartz"); + event.recipes.createCrushing("ae2:fluix_dust", "ae2:fluix_crystal"); + event.recipes.createCrushing("ae2:sky_dust", "ae2:sky_stone_block"); +});