From fe9ae84673424f2a55930832e919515b270cb286 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Tue, 2 Jan 2024 12:45:30 +0700 Subject: [PATCH] some recipes --- kubejs/server_scripts/create/recipes.js | 32 +++++++++++++++++-- kubejs/server_scripts/firmalife/recipes.js | 23 ++++++++++++- kubejs/server_scripts/tfc/recipes.js | 22 +++++++++++++ kubejs/startup_scripts/firmalife/constants.js | 18 +++++++++++ kubejs/startup_scripts/tfc/constants.js | 18 +++++++++++ 5 files changed, 110 insertions(+), 3 deletions(-) diff --git a/kubejs/server_scripts/create/recipes.js b/kubejs/server_scripts/create/recipes.js index db033d9c1..bde6a3900 100644 --- a/kubejs/server_scripts/create/recipes.js +++ b/kubejs/server_scripts/create/recipes.js @@ -425,7 +425,7 @@ const registerCreateRecipes = (event) => { }).id('tfg:create/shaped/rope_pulley') // Шкиф подъемника - event.shaped('create:brass_casing', [ + event.shaped('create:elevator_pulley', [ 'A', 'B', 'C' @@ -433,7 +433,7 @@ const registerCreateRecipes = (event) => { A: 'create:brass_casing', B: 'tfc:bellows', C: '#forge:plates/wrought_iron' - }).id('tfg:create/shaped/brass_casing') + }).id('tfg:create/shaped/elevator_pulley') // Сборщик вагонеток event.shaped('create:cart_assembler', [ @@ -587,18 +587,46 @@ const registerCreateRecipes = (event) => { event.recipes.createItemApplication(['create:andesite_casing'], ['#minecraft:logs', '#forge:plates/wrought_iron']) .id('tfg:create/item_application/andesite_casing') + event.recipes.gtceu.assembler('tfg:create/andesite_casing') + .itemInputs('#minecraft:logs', '#forge:plates/wrought_iron') + .circuit(10) + .itemOutputs('create:andesite_casing') + .duration(50) + .EUt(4) + // Латунный корпус event.recipes.createItemApplication(['create:brass_casing'], ['#minecraft:logs', '#forge:plates/brass']) .id('tfg:create/item_application/brass_casing') + event.recipes.gtceu.assembler('tfg:create/brass_casing') + .itemInputs('#minecraft:logs', '#forge:plates/brass') + .circuit(10) + .itemOutputs('create:brass_casing') + .duration(50) + .EUt(4) + // Медный корпус event.recipes.createItemApplication(['create:copper_casing'], ['#minecraft:logs', '#forge:plates/copper']) .id('tfg:create/item_application/copper_casing') + event.recipes.gtceu.assembler('tfg:create/copper_casing') + .itemInputs('#minecraft:logs', '#forge:plates/copper') + .circuit(10) + .itemOutputs('create:copper_casing') + .duration(50) + .EUt(4) + // Корпус поезда event.recipes.createItemApplication(['create:railway_casing'], ['create:brass_casing', '#forge:plates/steel']) .id('tfg:create/item_application/railway_casing') + event.recipes.gtceu.assembler('tfg:create/railway_casing') + .itemInputs('create:brass_casing', '#forge:plates/steel') + .circuit(10) + .itemOutputs('create:railway_casing') + .duration(50) + .EUt(4) + // Механический крафтер event.shaped('create:mechanical_crafter', [ 'A', diff --git a/kubejs/server_scripts/firmalife/recipes.js b/kubejs/server_scripts/firmalife/recipes.js index 13b058cb7..a2437fa58 100644 --- a/kubejs/server_scripts/firmalife/recipes.js +++ b/kubejs/server_scripts/firmalife/recipes.js @@ -79,5 +79,26 @@ const registerFirmaLifeRecipes = (event) => { }) //#endregion - + + //#region Рецепты теста + + global.FIRMALIFE_MIXER_FLATBREAD_DOUGH_RECIPE_COMPONENTS .forEach(element => { + event.recipes.gtceu.mixer(element.name) + .itemInputs(element.input, '#tfc:sweetener') + .inputFluids(Fluid.of('firmalife:yeast_starter', 100)) + .itemOutputs(element.output) + .duration(300) + .EUt(16) + }) + + //#endregion + + //#region Рецепты плоского хлеба + + global.FIRMALIFE_FURNACE_FLATBREAD_RECIPE_COMPONENTS.forEach(element => { + event.smelting(element.output, element.input) + .id(`tfg:smelting/${element.name}`) + }) + + //#endregion } \ No newline at end of file diff --git a/kubejs/server_scripts/tfc/recipes.js b/kubejs/server_scripts/tfc/recipes.js index 0595dd680..94ee5b9cc 100644 --- a/kubejs/server_scripts/tfc/recipes.js +++ b/kubejs/server_scripts/tfc/recipes.js @@ -2429,6 +2429,28 @@ const registerTFCRecipes = (event) => { //#endregion + //#region Рецепты плоского теста + + global.TFC_MIXER_FLATBREAD_DOUGH_RECIPE_COMPONENTS.forEach(element => { + event.recipes.gtceu.mixer(element.name) + .itemInputs(element.input) + .inputFluids(Fluid.of('minecraft:water', 100)) + .itemOutputs(element.output) + .duration(300) + .EUt(16) + }) + + //#endregion + + //#region Рецепты хлеба + + global.TFC_FURNACE_BREAD_RECIPE_COMPONENTS.forEach(element => { + event.smelting(element.output, element.input) + .id(`tfg:smelting/${element.name}`) + }) + + //#endregion + // Другое event.remove({ id: `tfc:crafting/trip_hammer` }) event.remove({ id: `tfc:anvil/steel_pump` }) diff --git a/kubejs/startup_scripts/firmalife/constants.js b/kubejs/startup_scripts/firmalife/constants.js index 5e5b36f05..e07f85d88 100644 --- a/kubejs/startup_scripts/firmalife/constants.js +++ b/kubejs/startup_scripts/firmalife/constants.js @@ -47,4 +47,22 @@ global.FIRMALIFE_GREENHOUSE_FRUIT_RECIPE_COMPONENTS = [ global.FIRMALIFE_GREENHOUSE_BERRY_RECIPE_COMPONENTS = [ { input: 'firmalife:plant/pineapple_bush', fluid_amount: 6000, output: '3x firmalife:food/pineapple', name: 'pineapple' }, { input: 'firmalife:plant/nightshade_bush', fluid_amount: 6000, output: '3x firmalife:food/nightshade_berry', name: 'nightshade' }, +]; + +global.FIRMALIFE_MIXER_FLATBREAD_DOUGH_RECIPE_COMPONENTS = [ + { input: 'tfc:food/barley_flour', output: '4x firmalife:food/barley_dough', name: 'firmalife_barley_dough' }, + { input: 'tfc:food/maize_flour', output: '4x firmalife:food/maize_dough', name: 'firmalife_maize_dough' }, + { input: 'tfc:food/oat_flour', output: '4x firmalife:food/oat_dough', name: 'firmalife_oat_dough' }, + { input: 'tfc:food/rye_flour', output: '4x firmalife:food/rye_dough', name: 'firmalife_rye_dough' }, + { input: 'tfc:food/rice_flour', output: '4x firmalife:food/rice_dough', name: 'firmalife_rice_dough' }, + { input: 'tfc:food/wheat_flour', output: '4x firmalife:food/wheat_dough', name: 'firmalife_wheat_dough' }, +]; + +global.FIRMALIFE_FURNACE_FLATBREAD_RECIPE_COMPONENTS = [ + { input: 'tfc:food/barley_dough', output: 'firmalife:food/barley_flatbread', name: 'barley_flatbread' }, + { input: 'tfc:food/maize_dough', output: 'firmalife:food/maize_flatbread', name: 'maize_flatbread' }, + { input: 'tfc:food/oat_dough', output: 'firmalife:food/oat_flatbread', name: 'oat_flatbread' }, + { input: 'tfc:food/rye_dough', output: 'firmalife:food/rye_flatbread', name: 'rye_flatbread' }, + { input: 'tfc:food/rice_dough', output: 'firmalife:food/rice_flatbread', name: 'rice_flatbread' }, + { input: 'tfc:food/wheat_dough', output: 'firmalife:food/wheat_flatbread', name: 'wheat_flatbread' }, ]; \ No newline at end of file diff --git a/kubejs/startup_scripts/tfc/constants.js b/kubejs/startup_scripts/tfc/constants.js index cac0b85c7..dade4b17d 100644 --- a/kubejs/startup_scripts/tfc/constants.js +++ b/kubejs/startup_scripts/tfc/constants.js @@ -1619,6 +1619,24 @@ global.TFC_QUERN_FLOUR_RECIPE_COMPONENTS = [ { input: 'tfc:food/wheat_grain', output: '2x tfc:food/wheat_flour', name: 'wheat_flour' }, ]; +global.TFC_MIXER_FLATBREAD_DOUGH_RECIPE_COMPONENTS = [ + { input: 'tfc:food/barley_flour', output: '2x tfc:food/barley_dough', name: 'tfc_barley_dough' }, + { input: 'tfc:food/maize_flour', output: '2x tfc:food/maize_dough', name: 'tfc_maize_dough' }, + { input: 'tfc:food/oat_flour', output: '2x tfc:food/oat_dough', name: 'tfc_oat_dough' }, + { input: 'tfc:food/rye_flour', output: '2x tfc:food/rye_dough', name: 'tfc_rye_dough' }, + { input: 'tfc:food/rice_flour', output: '2x tfc:food/rice_dough', name: 'tfc_rice_dough' }, + { input: 'tfc:food/wheat_flour', output: '2x tfc:food/wheat_dough', name: 'tfc_wheat_dough' }, +]; + +global.TFC_FURNACE_BREAD_RECIPE_COMPONENTS = [ + { input: 'firmalife:food/barley_dough', output: 'tfc:food/barley_bread', name: 'barley_bread' }, + { input: 'firmalife:food/maize_dough', output: 'tfc:food/maize_bread', name: 'maize_bread' }, + { input: 'firmalife:food/oat_dough', output: 'tfc:food/oat_bread', name: 'oat_bread' }, + { input: 'firmalife:food/rye_dough', output: 'tfc:food/rye_bread', name: 'rye_bread' }, + { input: 'firmalife:food/rice_dough', output: 'tfc:food/rice_bread', name: 'rice_bread' }, + { input: 'firmalife:food/wheat_dough', output: 'tfc:food/wheat_bread', name: 'wheat_bread' }, +]; + global.TFC_GREENHOUSE_FRUIT_RECIPE_COMPONENTS = [ { input: 'tfc:plant/cherry_sapling', fluid_amount: 8000, output: '3x tfc:food/cherry', name: 'cherry' }, { input: 'tfc:plant/green_apple_sapling', fluid_amount: 8000, output: '3x tfc:food/green_apple', name: 'green_apple' },