From 8892faef5d1c3a9140caf90d8983c7e6b0e2f4d8 Mon Sep 17 00:00:00 2001 From: Pyritie Date: Tue, 29 Jul 2025 01:28:31 +0100 Subject: [PATCH] easier dough recipes --- kubejs/server_scripts/firmalife/recipes.js | 90 +++++++++++++++++++ .../sophisticated_backpacks/recipes.js | 27 +++--- .../firmalife/modifications.js | 12 +++ 3 files changed, 116 insertions(+), 13 deletions(-) create mode 100644 kubejs/startup_scripts/firmalife/modifications.js diff --git a/kubejs/server_scripts/firmalife/recipes.js b/kubejs/server_scripts/firmalife/recipes.js index 1c3173f25..8e29ab7da 100644 --- a/kubejs/server_scripts/firmalife/recipes.js +++ b/kubejs/server_scripts/firmalife/recipes.js @@ -47,6 +47,8 @@ const registerFirmaLifeRecipes = (event) => { //#endregion + event.replaceInput({ id: 'firmalife:mixing_bowl' }, 'firmalife:treated_lumber', '#tfc:lumber') + // Декрафт Jag Lid event.recipes.tfc.heating('tfc:jar_lid', 230) .resultFluid(Fluid.of('gtceu:tin', 9)) @@ -548,6 +550,64 @@ const registerFirmaLifeRecipes = (event) => { // Dough global.TFC_GRAINS.forEach(grain => { + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`4x firmalife:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + 'firmalife:tirage_mixture', + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_dough`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`8x firmalife:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + '2x firmalife:tirage_mixture', + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_dough_2`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`12x firmalife:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + '3x firmalife:tirage_mixture', + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_dough_3`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`4x tfc:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 100)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_flatbread_dough`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`8x tfc:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 200)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_flatbread_dough_2`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`12x tfc:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 300)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_flatbread_dough_3`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`16x tfc:food/${grain}_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 400)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/${grain}_flatbread_dough_4`) + event.recipes.firmalife.mixing_bowl() .ingredients([ TFC.ingredient.notRotten(`tfc:food/${grain}_flour`), @@ -572,6 +632,36 @@ const registerFirmaLifeRecipes = (event) => { .id(`tfg:mixing_bowl/${grain}_flatbread_dough_2`) }) + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`4x firmalife:food/hardtack_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`#tfc:foods/flour`), + 'tfc:powder/salt', + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 100)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/hardtack_dough`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`8x firmalife:food/hardtack_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`#tfc:foods/flour`), + TFC.ingredient.notRotten(`#tfc:foods/flour`), + 'tfc:powder/salt', + 'tfc:powder/salt', + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 200)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/hardtack_dough_2`) + + event.recipes.tfc.advanced_shapeless_crafting(TFC.isp.of(`12x firmalife:food/hardtack_dough`).copyFood(), [ + 'firmalife:spoon', + TFC.ingredient.notRotten(`#tfc:foods/flour`), + TFC.ingredient.notRotten(`#tfc:foods/flour`), + TFC.ingredient.notRotten(`#tfc:foods/flour`), + 'tfc:powder/salt', + 'tfc:powder/salt', + 'tfc:powder/salt', + TFC.ingredient.fluid(TFC.fluidStackIngredient('minecraft:water', 300)), + 'firmalife:mixing_bowl' + ]).id(`tfg:shapeless/hardtack_dough_3`) + event.recipes.firmalife.mixing_bowl() .itemIngredients([ TFC.ingredient.notRotten('firmalife:food/vanilla_ice_cream'), diff --git a/kubejs/server_scripts/sophisticated_backpacks/recipes.js b/kubejs/server_scripts/sophisticated_backpacks/recipes.js index f3ea8cab4..375727909 100644 --- a/kubejs/server_scripts/sophisticated_backpacks/recipes.js +++ b/kubejs/server_scripts/sophisticated_backpacks/recipes.js @@ -437,19 +437,20 @@ const registerSophisticatedBackpacksRecipes = (event) => { }).id('tfg:sophisticated_backpacks/shaped/stonecutter_upgrade') // Feeding upgrade - event.shaped('sophisticatedbackpacks:feeding_upgrade', [ - 'ADA', - 'BEF', - 'CGC' - ], { - A: '#gtceu:circuits/lv', - B: 'firmalife:spoon', - C: 'gtceu:lv_robot_arm', - D: '#tfc:bowls', - E: 'sophisticatedbackpacks:upgrade_base', - F: '#forge:tools/knives', - G: '#forge:rods/steel' - }).id('tfg:sophisticated_backpacks/shaped/feeding_upgrade') + event.recipes.tfc.no_remainder_shaped_crafting( + event.shaped('sophisticatedbackpacks:feeding_upgrade', [ + 'ADA', + 'BEF', + 'CGC' + ], { + A: '#gtceu:circuits/lv', + B: 'firmalife:spoon', + C: 'gtceu:lv_robot_arm', + D: '#tfc:bowls', + E: 'sophisticatedbackpacks:upgrade_base', + F: '#forge:tools/knives', + G: '#forge:rods/steel' + })).id('tfg:sophisticated_backpacks/shaped/feeding_upgrade') event.shapeless('sophisticatedbackpacks:advanced_feeding_upgrade', [ 'sophisticatedbackpacks:feeding_upgrade', diff --git a/kubejs/startup_scripts/firmalife/modifications.js b/kubejs/startup_scripts/firmalife/modifications.js new file mode 100644 index 000000000..8a9924201 --- /dev/null +++ b/kubejs/startup_scripts/firmalife/modifications.js @@ -0,0 +1,12 @@ +// priority: 0 +"use strict"; + +function registerFirmalifeItemModifications(event) { + + event.modify('firmalife:spoon', item => { + item.setCraftingRemainder('firmalife:spoon') + }) + event.modify('firmalife:mixing_bowl', item => { + item.setCraftingRemainder('firmalife:mixing_bowl') + }) +} \ No newline at end of file