added machine recipes for tongs

This commit is contained in:
Pyritie 2025-12-11 00:45:22 +00:00
parent 3f8bd83a1a
commit 1ed6ffb51f
3 changed files with 31 additions and 5 deletions

View file

@ -1324,22 +1324,44 @@ function registerTFCMaterialsRecipes(event) {
let tongPartStack = Item.of(`tfchotornot:tong_part/${material.getName()}`)
if (!tongsStack.isEmpty() && !tongPartStack.isEmpty() && material !== GTMaterials.Iron) {
// tong parts
event.custom({
type: 'vintageimprovements:curving',
ingredients: [ChemicalHelper.get(TagPrefix.rodLong, material, 1)],
itemAsHead: 'gtceu:rod_extruder_mold',
results: [tongPartStack],
processingTime: material.getMass() * global.VINTAGE_IMPROVEMENTS_DURATION_MULTIPLIER
}).id(`tfg:vi/curving/${material.getName()}_tong`)
event.recipes.gtceu.extruder(`tfg:${material.getName()}_tong`)
.itemInputs(`#forge:rods/long/${material.getName()}`)
.notConsumable('gtceu:rod_extruder_mold')
.itemOutputs(tongPartStack)
.duration(material.getMass())
.EUt(GTValues.VA[GTValues.LV])
// tongs
event.recipes.tfc.advanced_shaped_crafting(
TFC.isp.of(tongsStack).copyForgingBonus(), [
'AA',
'BC'
], {
A: tongPartStack,
B: '#forge:bolts',
B: Ingredient.of('#forge:bolts').subtract('gtceu:wood_bolt'),
C: '#forge:tools/hammers'
}, 0, 0).id(`tfchotornot:crafting/tongs/${material.getName()}`)
// tong parts
event.recipes.gtceu.forge_hammer(`tfg:${material.getName()}_tong`)
.itemInputs(tongPartStack.withCount(2))
.itemOutputs(tongsStack)
.duration(material.getMass())
.EUt(GTValues.VA[GTValues.ULV])
// tong heating
event.recipes.tfc.heating(tongPartStack, tfcProperty.getMeltTemp())
.resultFluid(Fluid.of(outputMaterial.getFluid(), 144))
.id(`tfchotornot:heating/tong_part/${material.getName()}`)
// tong heating
event.recipes.tfc.heating(tongsStack, tfcProperty.getMeltTemp())
.resultFluid(Fluid.of(outputMaterial.getFluid(), 288))
.useDurability(true)