From 07880e578372e3c112085441a90d58b74ca6befa Mon Sep 17 00:00:00 2001 From: Pyritie Date: Sun, 11 May 2025 15:35:35 +0100 Subject: [PATCH] added recipes for greenhouse ports, added recipes for stainless steel greenhouse (if you want to be fancy) --- kubejs/server_scripts/firmalife/recipes.js | 106 ++++++++++++++++-- kubejs/startup_scripts/firmalife/constants.js | 12 -- 2 files changed, 94 insertions(+), 24 deletions(-) diff --git a/kubejs/server_scripts/firmalife/recipes.js b/kubejs/server_scripts/firmalife/recipes.js index 3545f317e..58ed444e8 100644 --- a/kubejs/server_scripts/firmalife/recipes.js +++ b/kubejs/server_scripts/firmalife/recipes.js @@ -128,10 +128,19 @@ const registerFirmaLifeRecipes = (event) => { .duration(10) .EUt(2)*/ - //#region Рецепты теплиц + //#region Рецепты теплиц / Greenhouse - //#region Медная + //#region Treated Wood + event.shapeless('firmalife:treated_wood_greenhouse_port', [ + 'firmalife:treated_wood_greenhouse_wall', + '#forge:tiny_fluid_pipes/copper' + ]) + .id('firmalife:crafting/greenhouse/treated_wood_greenhouse_port') + + //#endregion Treated Wood + + //#region Медная / Copper event.recipes.gtceu.bender('tfg:firmalife/sprinkler') .itemInputs('#forge:plates/copper') @@ -208,9 +217,15 @@ const registerFirmaLifeRecipes = (event) => { B: 'minecraft:glass' }).id('firmalife:crafting/greenhouse/copper_greenhouse_door') + event.shapeless('firmalife:copper_greenhouse_port', [ + 'firmalife:copper_greenhouse_wall', + '#forge:tiny_fluid_pipes/copper' + ]) + .id('firmalife:crafting/greenhouse/copper_greenhouse_port') + //#endregion - //#region Железная + //#region Железная / Iron // Стена event.shaped('8x firmalife:iron_greenhouse_wall', [ @@ -280,18 +295,85 @@ const registerFirmaLifeRecipes = (event) => { B: 'minecraft:glass' }).id('firmalife:crafting/greenhouse/iron_greenhouse_door') + event.shapeless('firmalife:iron_greenhouse_port', [ + 'firmalife:iron_greenhouse_wall', + '#forge:tiny_fluid_pipes/copper' + ]) + .id('firmalife:crafting/greenhouse/iron_greenhouse_port') + //#endregion - //#region Нержавеющая теплица + //#region Нержавеющая теплица / Stainless Steel - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_wall' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_panel_wall' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_panel_roof' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_roof' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_roof_top' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_trapdoor' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_door' }) - event.remove({ id: 'firmalife:crafting/greenhouse/stainless_steel_greenhouse_port' }) + event.shaped('8x firmalife:stainless_steel_greenhouse_wall', [ + 'ABA', + 'ABA', + 'ABA' + ], { + A: '#forge:rods/stainless_steel', + B: 'minecraft:glass' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_wall') + + event.shaped('8x firmalife:stainless_steel_greenhouse_panel_wall', [ + 'ABA', + 'ABA', + 'ABA' + ], { + A: '#forge:rods/stainless_steel', + B: 'firmalife:reinforced_glass' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_panel_wall') + + event.shaped('4x firmalife:stainless_steel_greenhouse_panel_roof', [ + 'A ', + 'BA ', + 'BBA' + ], { + A: 'firmalife:reinforced_glass', + B: '#forge:rods/stainless_steel' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_panel_roof') + + event.shaped('4x firmalife:stainless_steel_greenhouse_roof', [ + 'A ', + 'BA ', + 'BBA' + ], { + A: '#forge:rods/stainless_steel', + B: 'firmalife:reinforced_glass' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_roof') + + // Верхушка крыши + event.shaped('8x firmalife:stainless_steel_greenhouse_roof_top', [ + 'ABA', + 'BAB' + ], { + A: '#forge:rods/stainless_steel', + B: 'firmalife:reinforced_glass' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_roof_top') + + // Люк + event.shaped('8x firmalife:stainless_steel_greenhouse_trapdoor', [ + 'ABA', + 'BAB' + ], { + A: 'firmalife:reinforced_glass', + B: '#forge:rods/stainless_steel' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_trapdoor') + + // Дверь + event.shaped('2x firmalife:stainless_steel_greenhouse_door', [ + 'AB', + 'AB', + 'AB' + ], { + A: '#forge:rods/stainless_steel', + B: 'minecraft:glass' + }).id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_door') + + event.shapeless('firmalife:stainless_steel_greenhouse_port', [ + 'firmalife:stainless_steel_greenhouse_wall', + '#forge:tiny_fluid_pipes/copper' + ]) + .id('firmalife:crafting/greenhouse/stainless_steel_greenhouse_port') //#endregion diff --git a/kubejs/startup_scripts/firmalife/constants.js b/kubejs/startup_scripts/firmalife/constants.js index 8ff43704b..e0e9b6220 100644 --- a/kubejs/startup_scripts/firmalife/constants.js +++ b/kubejs/startup_scripts/firmalife/constants.js @@ -30,9 +30,6 @@ global.FIRMALIFE_DISABLED_ITEMS = [ 'firmalife:copper_pipe', 'firmalife:oxidized_copper_pipe', 'firmalife:irrigation_tank', - 'firmalife:iron_greenhouse_port', - 'firmalife:copper_greenhouse_port', - 'firmalife:treated_wood_greenhouse_port' ]; global.FIRMALIFE_HIDED_ITEMS = [ @@ -45,15 +42,6 @@ global.FIRMALIFE_HIDED_ITEMS = [ 'firmalife:weathered_copper_greenhouse_door', 'firmalife:weathered_copper_greenhouse_port', - 'firmalife:stainless_steel_greenhouse_wall', - 'firmalife:stainless_steel_greenhouse_panel_wall', - 'firmalife:stainless_steel_greenhouse_panel_roof', - 'firmalife:stainless_steel_greenhouse_roof', - 'firmalife:stainless_steel_greenhouse_roof_top', - 'firmalife:stainless_steel_greenhouse_trapdoor', - 'firmalife:stainless_steel_greenhouse_door', - 'firmalife:stainless_steel_greenhouse_port', - 'firmalife:rusted_iron_greenhouse_wall', 'firmalife:rusted_iron_greenhouse_panel_wall', 'firmalife:rusted_iron_greenhouse_panel_roof',