From 29a713cb6c8b4fb165ace7ae10aafd9b16646338 Mon Sep 17 00:00:00 2001 From: Pyritie Date: Sat, 7 Jun 2025 21:29:41 +0100 Subject: [PATCH] asurine dust + centrifuge recipes --- kubejs/server_scripts/create/recipes.js | 14 ++++++ kubejs/server_scripts/tfc/recipes.stone.js | 42 +++--------------- kubejs/server_scripts/tfg/recipes.space.js | 44 +++++++++++++++++++ kubejs/startup_scripts/create/materials.js | 9 ++++ kubejs/startup_scripts/gtceu/materials.js | 3 ++ kubejs/startup_scripts/main_startup_script.js | 1 + 6 files changed, 78 insertions(+), 35 deletions(-) create mode 100644 kubejs/startup_scripts/create/materials.js diff --git a/kubejs/server_scripts/create/recipes.js b/kubejs/server_scripts/create/recipes.js index 7035d80c8..7cfdc2e32 100644 --- a/kubejs/server_scripts/create/recipes.js +++ b/kubejs/server_scripts/create/recipes.js @@ -1966,4 +1966,18 @@ const registerCreateRecipes = (event) => { event.shapeless('2x create:train_trapdoor', ['tfc:metal/trapdoor/steel', '#minecraft:wooden_trapdoors']) .id('tfg:shapeless/create_train_trapdoor') + + // Fantasy stone blocks + + event.recipes.gtceu.macerator('tfg:asurine') + .itemInputs('create:asurine') + .itemOutputs('#forge:dusts/asurine') + .duration(50) + .EUt(2) + + event.recipes.gtceu.macerator('tfg:cut_asurine') + .itemInputs('create:cut_asurine') + .itemOutputs('#forge:dusts/asurine') + .duration(50) + .EUt(2) } diff --git a/kubejs/server_scripts/tfc/recipes.stone.js b/kubejs/server_scripts/tfc/recipes.stone.js index 10870c5ee..852b083af 100644 --- a/kubejs/server_scripts/tfc/recipes.stone.js +++ b/kubejs/server_scripts/tfc/recipes.stone.js @@ -762,42 +762,14 @@ function registerTFCStoneRecipes(event) { .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.SiliconDioxide, 1), 4700, 700) .outputFluids(Fluid.of(oxygenFluid, 12)) - // Space + // Misc dust - event.recipes.gtceu.centrifuge('moon_stone_dust_separation') - .EUt(GTValues.VA[GTValues.MV]) - .duration(480) - .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('moon_stone'), 1)) - .chancedOutput('ae2:sky_dust', 4700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Magnetite, 1), 3700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.CertusQuartz, 1), 2700, 700) - .outputFluids(Fluid.of('gtceu:helium_3', 50)) - - event.recipes.gtceu.centrifuge('moon_deepslate_dust_separation') - .EUt(GTValues.VA[GTValues.MV]) - .duration(480) - .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('moon_deepslate'), 1)) - .chancedOutput('ae2:sky_dust', 4700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Olivine, 1), 3700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, TFGHelpers.getMaterial('desh'), 1), 2700, 700) - .outputFluids(Fluid.of('gtceu:helium_3', 50)) - - event.recipes.gtceu.centrifuge('glacio_stone_dust_separation') - .EUt(GTValues.VA[GTValues.MV]) - .duration(480) - .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('glacio_stone'), 1)) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.SiliconDioxide, 1), 4700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Ice, 1), 2700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.MetalMixture, 1), 1700, 700) - .outputFluids(Fluid.of('gtceu:helium_3', 50)) - - event.recipes.gtceu.centrifuge('tfg:sky_dust') - .EUt(GTValues.VA[GTValues.LV]) - .duration(100) - .itemInputs('ae2:sky_dust') - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.CertusQuartz, 1), 4700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Iron, 1), 3700, 700) - .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.MetalMixture, 1), 2700, 700) + event.recipes.gtceu.centrifuge('gtceu:quartz_sand_separation') + .EUt(30) + .duration(60) + .itemInputs('2x gtceu:quartz_sand_dust') + .itemOutputs('gtceu:quartzite_dust') + .chancedOutput('#forge:dust/nether_quartz', 2000, 200) // #endregion } \ No newline at end of file diff --git a/kubejs/server_scripts/tfg/recipes.space.js b/kubejs/server_scripts/tfg/recipes.space.js index 08e4dd1a9..d528cab84 100644 --- a/kubejs/server_scripts/tfg/recipes.space.js +++ b/kubejs/server_scripts/tfg/recipes.space.js @@ -73,4 +73,48 @@ function registerTFGSpaceRecipes(event) { .addDataString("fluidA", "minecraft:lava") .addDataString("fluidB", "minecraft:lava") .outputFluids(Fluid.of("minecraft:lava", 1000)) + + // Dusts + + event.recipes.gtceu.centrifuge('moon_stone_dust_separation') + .EUt(GTValues.VA[GTValues.MV]) + .duration(480) + .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('moon_stone'), 1)) + .chancedOutput('ae2:sky_dust', 4700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Magnetite, 1), 3700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.CertusQuartz, 1), 2700, 700) + .outputFluids(Fluid.of('gtceu:helium_3', 50)) + + event.recipes.gtceu.centrifuge('moon_deepslate_dust_separation') + .EUt(GTValues.VA[GTValues.MV]) + .duration(480) + .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('moon_deepslate'), 1)) + .chancedOutput('ae2:sky_dust', 4700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Olivine, 1), 3700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, TFGHelpers.getMaterial('desh'), 1), 2700, 700) + .outputFluids(Fluid.of('gtceu:helium_3', 50)) + + event.recipes.gtceu.centrifuge('glacio_stone_dust_separation') + .EUt(GTValues.VA[GTValues.MV]) + .duration(480) + .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('glacio_stone'), 1)) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.SiliconDioxide, 1), 4700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Magnesium, 1), 2700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.MetalMixture, 1), 1700, 700) + .outputFluids(Fluid.of('gtceu:helium_3', 50)) + + event.recipes.gtceu.centrifuge('sky_dust_separation') + .EUt(GTValues.VA[GTValues.LV]) + .duration(100) + .itemInputs('ae2:sky_dust') + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.CertusQuartz, 1), 4700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.Iron, 1), 3700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dustTiny, GTMaterials.MetalMixture, 1), 2700, 700) + + event.recipes.gtceu.centrifuge('asurine_dust_separation') + .EUt(GTValues.VA[GTValues.LV]) + .duration(100) + .itemInputs(ChemicalHelper.get(TagPrefix.dust, TFGHelpers.getMaterial('asurine'), 1)) + .chancedOutput(ChemicalHelper.get(TagPrefix.dust, GTMaterials.CertusQuartz, 1), 4700, 700) + .chancedOutput(ChemicalHelper.get(TagPrefix.dust, GTMaterials.Zinc, 1), 3700, 700) } \ No newline at end of file diff --git a/kubejs/startup_scripts/create/materials.js b/kubejs/startup_scripts/create/materials.js new file mode 100644 index 000000000..9bdde8da7 --- /dev/null +++ b/kubejs/startup_scripts/create/materials.js @@ -0,0 +1,9 @@ +// priority: 0 + +function registerCreateMaterials(event) { + + event.create('asurine') + .color(0x7DB8D1) + .secondaryColor(0x4C5D7B) + .dust() +} \ No newline at end of file diff --git a/kubejs/startup_scripts/gtceu/materials.js b/kubejs/startup_scripts/gtceu/materials.js index 557b556f1..4ce364935 100644 --- a/kubejs/startup_scripts/gtceu/materials.js +++ b/kubejs/startup_scripts/gtceu/materials.js @@ -257,6 +257,9 @@ const registerGTCEuMaterialModification = (event) => { GTMaterials.Galena.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.INHALATION, GTMedicalConditions.WEAK_POISON, 1, false)); GTMaterials.Chromite.setProperty(PropertyKey.HAZARD, new $HAZARD_PROPERTY($HAZARD_PROPERTY.HazardTrigger.SKIN_CONTACT, GTMedicalConditions.IRRITANT, 1, false)); + GTMaterials.Quartzite.getProperty(PropertyKey.ORE).setOreByProducts(GTMaterials.NetherQuartz, GTMaterials.Barite, GTMaterials.NetherQuartz); + GTMaterials.CertusQuartz.getProperty(PropertyKey.ORE).setOreByProducts(GTMaterials.CertusQuartz, GTMaterials.Quartzite, GTMaterials.CertusQuartz); + // Color Adjustments GTMaterials.BismuthBronze.setMaterialARGB(0x5A966E) GTMaterials.BismuthBronze.setMaterialSecondaryARGB(0x203E2A) diff --git a/kubejs/startup_scripts/main_startup_script.js b/kubejs/startup_scripts/main_startup_script.js index 9ba2771df..5a9d41231 100644 --- a/kubejs/startup_scripts/main_startup_script.js +++ b/kubejs/startup_scripts/main_startup_script.js @@ -65,6 +65,7 @@ GTCEuStartupEvents.registry('gtceu:tag_prefix', event => { GTCEuStartupEvents.registry('gtceu:material', event => { registerAdAstraMaterials(event) registerAE2Materials(event) + registerCreateMaterials(event) registerTFCMaterials(event) registerGTCEuMaterials(event) registerTFGMaterials(event)