Шкипер, где мы

This commit is contained in:
Dmitry
2023-12-09 21:17:45 +07:00
parent 1b783038e5
commit 523f6a0ac7
2 changed files with 94 additions and 4 deletions

View File

@@ -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`)
}
}
})

View File

@@ -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",