neuralgia/kubejs/server_scripts/tfg/machines/recipes.molds.js
Redeix 75b0cea000
Artisan Table (#2857)
* artisan table merging (#2766)

* these should be good

* Update recipes.miscellaneous.js

* little typo

Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>

* fix typo, my bad gang

* fix charnia

* fixed recycling issues from the material rewrite, updated everything to the new recycling helper method

* I'll move these eventually

---------

Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>
Co-authored-by: Pyritie <pyritie@gmail.com>

* artisan table assets

* asset update

* Update recipes.artisan_table.js

* asset update

* lang

* tag refactor

* waiter! more assets please

* recipes

* done?

* I forgor

---------

Signed-off-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>
Co-authored-by: GameStar <56610486+BlueBoat29@users.noreply.github.com>
Co-authored-by: Pyritie <pyritie@gmail.com>
2026-01-25 19:22:50 -06:00

85 lines
2 KiB
JavaScript

// priority: 0
"use strict";
/**
* @param {Internal.RecipesEventJS} event
*/
function registerTFGMoldRecipes(event) {
/** @type {['huge'|'large'|'normal'|'small'|'tiny']}*/
const pipe_sizes = [
'huge',
'large',
'normal',
'small',
'tiny'
];
let prev_size;
pipe_sizes.forEach((size) => {
if (size !== 'huge'){
event.shaped(`gtceu:${size}_pipe_casting_mold`, [
'ABC'
], {
A: '#forge:tools/hammers',
B: `gtceu:${prev_size}_pipe_casting_mold`,
C: '#forge:tools/mallets'
}).id(`tfg:shaped/${prev_size}_${size}_casting_mold`)
event.shaped(`gtceu:${size}_pipe_extruder_mold`, [
'ABC'
], {
A: '#forge:tools/hammers',
B: `gtceu:${prev_size}_pipe_extruder_mold`,
C: '#forge:tools/mallets'
}).id(`tfg:shaped/${prev_size}_${size}_extruder_mold`)
}
prev_size = size;
});
pipe_sizes.reverse().forEach((size) => {
if (size !== 'tiny'){
event.shaped(`gtceu:${size}_pipe_casting_mold`, [
'ABC'
], {
A: '#forge:tools/mallets',
B: `gtceu:${prev_size}_pipe_casting_mold`,
C: '#forge:tools/hammers'
}).id(`tfg:shaped/${prev_size}_${size}_casting_mold`)
event.shaped(`gtceu:${size}_pipe_extruder_mold`, [
'ABC'
], {
A: '#forge:tools/mallets',
B: `gtceu:${prev_size}_pipe_extruder_mold`,
C: '#forge:tools/hammers'
}).id(`tfg:shaped/${prev_size}_${size}_extruder_mold`)
}
prev_size = size;
});
global.TFG_EXTRUDER_MOLDS.forEach(mold => {
TFGHelpers.registerMaterialInfo(mold, [GTMaterials.Steel, 4])
event.recipes.gtceu.forming_press(`copy_shape_${linuxUnfucker(mold)}`)
.itemInputs('gtceu:empty_mold')
.notConsumable(mold)
.itemOutputs(mold)
.duration(120)
.EUt(GTValues.VA[GTValues.LV])
});
global.TFG_CASTING_MOLDS.forEach(mold => {
TFGHelpers.registerMaterialInfo(mold, [GTMaterials.Steel, 4])
event.recipes.gtceu.forming_press(`copy_shape_${linuxUnfucker(mold)}`)
.itemInputs('gtceu:empty_mold')
.notConsumable(mold)
.itemOutputs(mold)
.duration(120)
.EUt(GTValues.VA[GTValues.LV])
});
};