From 523f6a0ac766899ff5d0f6972ab44b531c6c79e2 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 9 Dec 2023 21:17:45 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A8=D0=BA=D0=B8=D0=BF=D0=B5=D1=80,=20=D0=B3?= =?UTF-8?q?=D0=B4=D0=B5=20=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kubejs/server_scripts/tfc/recipes.js | 95 ++++++++++++++++++++++++- kubejs/startup_scripts/tfc/constants.js | 3 +- 2 files changed, 94 insertions(+), 4 deletions(-) diff --git a/kubejs/server_scripts/tfc/recipes.js b/kubejs/server_scripts/tfc/recipes.js index 19484fa6d..7fff4b6a3 100644 --- a/kubejs/server_scripts/tfc/recipes.js +++ b/kubejs/server_scripts/tfc/recipes.js @@ -14,13 +14,15 @@ const registerTFCRecipes = (event) => { // Металлы дублирующие гт if (metalSpecs.isGTDup != undefined) { - // Ingots + // Отливка слитка в обычной форме event.recipes.tfc.casting(`gtceu:${metal}_ingot`, 'tfc:ceramic/ingot_mold', TFC.fluidStackIngredient(metalSpecs.fluid, 144), 0.1) .id(`tfc:casting/${metal}_fire_ingot`) + // Отливка слитка в огнеупорной форме event.recipes.tfc.casting(`gtceu:${metal}_ingot`, 'tfc:ceramic/fire_ingot_mold', TFC.fluidStackIngredient(metalSpecs.fluid, 144), 0.01) .id(`tfc:casting/${metal}_ingot`) + // Декрафт слитка в жидкость event.recipes.tfc.heating(`gtceu:${metal}_ingot`, metalSpecs.melt_temp) .resultFluid(Fluid.of(metalSpecs.fluid, 144)) .id(`tfc:heating/metal/${metal}_ingot`) @@ -29,13 +31,15 @@ const registerTFCRecipes = (event) => { // Металлы не дублирующие гт else { - // Ingots + // Отливка слитка в обычной форме event.recipes.tfc.casting(`tfc:metal/ingot/${metal}`, 'tfc:ceramic/ingot_mold', TFC.fluidStackIngredient(metalSpecs.fluid, 144), 0.1) .id(`tfc:casting/${metal}_fire_ingot`) + // Отливка слитка в огнеупорной форме event.recipes.tfc.casting(`tfc:metal/ingot/${metal}`, 'tfc:ceramic/fire_ingot_mold', TFC.fluidStackIngredient(metalSpecs.fluid, 144), 0.01) .id(`tfc:casting/${metal}_ingot`) + // Декрафт слитка в жидкость event.recipes.tfc.heating(`tfc:metal/ingot/${metal}`, metalSpecs.melt_temp) .resultFluid(Fluid.of(metalSpecs.fluid, 144)) .id(`tfc:heating/metal/${metal}_ingot`) @@ -45,9 +49,96 @@ const registerTFCRecipes = (event) => { // Двойные слитки if (metalSpecs.props.includes('double_ingot')) { + // Декрафт двойного слитка в жидкость event.recipes.tfc.heating(`tfc:metal/double_ingot/${metal}`, metalSpecs.melt_temp) .resultFluid(Fluid.of(metalSpecs.fluid, 288)) .id(`tfc:heating/metal/${metal}_double_ingot`) + + // Двойной слиток -> Пластина + event.recipes.tfc.anvil(`gtceu:${metal}_plate`, `tfc:metal/double_ingot/${metal}`, ['hit_last', 'hit_second_last', 'hit_third_last']) + .tier(metalSpecs.tier) + .id(`tfc:anvil/${metal}_sword_blade`) + + if (metalSpecs.props.includes('sword_blade')) + { + // Оголовье меча + event.recipes.tfc.anvil(`gtceu:${metal}_sword_head`, `tfc:metal/double_ingot/${metal}`, ['hit_last', 'bend_second_last', 'bend_third_last']) + .tier(metalSpecs.tier) + .bonus(true) + .id(`tfc:anvil/${metal}_sheet`) + } + } + + // Пластины + if (metalSpecs.props.includes('sheet')) + { + // Удаление рецептов блоков + event.remove({ id: `tfc:crafting/metal/block/${metal}` }) + event.remove({ id: `tfc:heating/metal/${metal}_block` }) + + // Удаление рецептов ступеней + event.remove({ id: `tfc:crafting/metal/block/${metal}_stairs` }) + event.remove({ id: `tfc:heating/metal/${metal}_block_stairs` }) + + // Удалание рецептов полублоков + event.remove({ id: `tfc:crafting/metal/block/${metal}_slab` }) + event.remove({ id: `tfc:heating/metal/${metal}_block_slab` }) + + // Декрафт пластины в жидкость + event.recipes.tfc.heating(`gtceu:${metal}_plate`, metalSpecs.melt_temp) + .resultFluid(Fluid.of(metalSpecs.fluid, 144)) + .id(`tfc:heating/metal/${metal}_sheet`) + + // Две пластины -> Двойная пластина + event.recipes.tfc.welding(`gtceu:${metal}_double_plate`, `gtceu:${metal}_plate`, `gtceu:${metal}_plate`) + .tier(metalSpecs.tier) + .id(`tfc:welding/${metal}_double_sheet`) + + if (metalSpecs.props.includes('boots')) + { + // Шлем + event.recipes.tfc.welding(`tfc:metal/helmet/${metal}`, `tfc:metal/unfinished_helmet/${metal}`, `gtceu:${metal}_plate`) + .tier(metalSpecs.tier) + .id(`tfc:welding/${metal}_helmet`) + + // Штаны + event.recipes.tfc.welding(`tfc:metal/greaves/${metal}`, `tfc:metal/unfinished_greaves/${metal}`, `gtceu:${metal}_plate`) + .tier(metalSpecs.tier) + .id(`tfc:welding/${metal}_greaves`) + + // Ботинки + event.recipes.tfc.welding(`tfc:metal/boots/${metal}`, `tfc:metal/unfinished_boots/${metal}`, `gtceu:${metal}_plate`) + .tier(metalSpecs.tier) + .id(`tfc:welding/${metal}_boots`) + + // Незавершенные ботинки + event.recipes.tfc.anvil(`tfc:metal/unfinished_boots/${metal}`, `gtceu:${metal}_plate`, ['bend_last', 'bend_second_last', 'shrink_third_last']) + .tier(metalSpecs.tier) + .id(`tfc:anvil/${metal}_unfinished_boots`) + } + + if (metalSpecs.props.includes('trapdoor')) + { + // Люк + event.recipes.tfc.anvil(`tfc:metal/trapdoor/${metal}`, `gtceu:${metal}_plate`, ['bend_last', 'draw_second_last', 'draw_third_last']) + .tier(metalSpecs.tier) + .id(`tfc:anvil/${metal}_trapdoor`) + + // 8x Решетка + event.recipes.tfc.anvil(`8x tfc:metal/bars/${metal}`, `gtceu:${metal}_plate`, ['upset_last', 'punch_second_last', 'punch_third_last']) + .tier(metalSpecs.tier) + .id(`tfc:anvil/${metal}_bars`) + } + + if (metalSpecs.props.includes('fish_hook')) + { + // Крюк удочки + event.recipes.tfc.anvil(`tfc:metal/fish_hook/${metal}`, `gtceu:${metal}_plate`, ['draw_not_last', 'bend_any', 'hit_any']) + .tier(metalSpecs.tier) + .bonus(true) + .id(`tfc:anvil/${metal}_fish_hook`) + } + } }) diff --git a/kubejs/startup_scripts/tfc/constants.js b/kubejs/startup_scripts/tfc/constants.js index 9dc759f8a..0c0281a55 100644 --- a/kubejs/startup_scripts/tfc/constants.js +++ b/kubejs/startup_scripts/tfc/constants.js @@ -810,7 +810,6 @@ global.TFC_DISABLED_ITEMS = [ "tfc:metal/ingot/tin", "tfc:metal/ingot/zinc", - /* // Sheets "tfc:metal/sheets/bismuth", "tfc:metal/sheets/bismuth_bronze", @@ -831,7 +830,7 @@ global.TFC_DISABLED_ITEMS = [ "tfc:metal/sheets/silver", "tfc:metal/sheets/tin", "tfc:metal/sheets/zinc", - + /* // Double Sheets "tfc:metal/double_sheets/bismuth", "tfc:metal/double_sheets/bismuth_bronze",