The script i wrote doesn't seem to have any errors, as KJS doesnt give me any complaints. The hammer, wrench and hammerSoft are defined variables at the beginning of the script, doesn't seem to be the issue either, the log parses everything without an issue...
when I didn't have The wrench or hammers in the script, it didn't work either...
thank for the help
ServerEvents.recipes(event => {
let hammer = '#forge:tools/hammers'
let wrench = '#forge:tools/wrenches'
let hammerSoft = '#forge:tools/mallets'
// @ts-ignore
event.shaped(
//Millstone
'create:millstone', [
'HC ',
'SBS',
'SSS'
], {
C: 'create:cogwheel',
S: '#forge:stone',
B: 'minecraft:smooth_stone_slab',
H: hammer
}
)
// @ts-ignore
event.shaped(
//Water Pump
'create:mechanical_pump', [
'PCP',
'FRF',
'HPW'
], {
P: '#forge:plates/iron',
C: 'create:cogwheel',
F: 'gtceu:copper_normal_fluid_pipe',
R: 'gtceu:iron_rotor',
H: hammer,
W: wrench
}
)
// @ts-ignore
event.shaped(
//Encased Fan
'create:encased_fan', [
' F ',
'MCW',
' S '
], {
F: 'railways:smokestack_diesel',
C: 'create:andesite_casing',
S: 'create:shaft',
M: hammerSoft,
W: wrench
}
)
});