Skip to content

Commit

Permalink
Вытер за собой
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry committed Jan 5, 2024
1 parent b4db9f2 commit f4accd7
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions kubejs/server_scripts/tfc/recipes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const registerTFCRecipes = (event) => {

let metal = keyValuePair[0]
let metalSpecs = keyValuePair[1]

if (metalSpecs.props.includes(global.INGOT_GEN)) {

if (metalSpecs.input_fluid != undefined) {

// Отливка слитка в обычной форме
event.recipes.tfc.casting(Item.of(`#forge:ingots/${metal}`), 'tfc:ceramic/ingot_mold', TFC.fluidStackIngredient(metalSpecs.input_fluid, 144), 0.1)
.id(`tfc:casting/${metal}_ingot`)
Expand All @@ -20,6 +21,16 @@ const registerTFCRecipes = (event) => {
event.recipes.tfc.casting(Item.of(`#forge:ingots/${metal}`), 'tfc:ceramic/fire_ingot_mold', TFC.fluidStackIngredient(metalSpecs.input_fluid, 144), 0.01)
.id(`tfc:casting/${metal}_fire_ingot`)
}
else
{
// Отливка слитка в обычной форме
event.recipes.tfc.casting(Item.of(`#forge:ingots/${metal}`), 'tfc:ceramic/ingot_mold', TFC.fluidStackIngredient(metalSpecs.output_fluid, 144), 0.1)
.id(`tfc:casting/${metal}_ingot`)

// Отливка слитка в огнеупорной форме
event.recipes.tfc.casting(Item.of(`#forge:ingots/${metal}`), 'tfc:ceramic/fire_ingot_mold', TFC.fluidStackIngredient(metalSpecs.output_fluid, 144), 0.01)
.id(`tfc:casting/${metal}_fire_ingot`)
}

// Декрафт слитка в жидкость
event.recipes.tfc.heating(`#forge:ingots/${metal}`, metalSpecs.melt_temp)
Expand Down Expand Up @@ -2509,9 +2520,9 @@ const registerTFCRecipes = (event) => {

//#region Обрушения

event.recipes.tfc.collapse(null, TFC.blockIngredient(['#tfg:rock_slabs'])).id('tfg:collapse/rock_slabs')
event.recipes.tfc.collapse(null, TFC.blockIngredient(['#tfg:rock_stairs'])).id('tfg:collapse/rock_stairs')
event.recipes.tfc.collapse(null, TFC.blockIngredient(['#tfg:rock_walls'])).id('tfg:collapse/rock_walls')
event.recipes.tfc.collapse('#tfg:rock_slabs').id('tfg:collapse/rock_slabs')
event.recipes.tfc.collapse('#tfg:rock_stairs').id('tfg:collapse/rock_stairs')
event.recipes.tfc.collapse('#tfg:rock_walls').id('tfg:collapse/rock_walls')

global.TFC_STONE_TYPES.forEach(stoneType => {
let oresToCollapse = []
Expand Down

0 comments on commit f4accd7

Please sign in to comment.