[Bug] 1.19.2-1.5.5.c-36 seems to break KubeJS integration...
CelestialAbyss opened this issue ยท 0 comments
My recipes were functioning just fine prior to this update.
Here is before on 1.19.2-1.5.4.c-36
with the same exact script as shown below:
Here's the script in question which worked with the previous updates but broke with 1.19.2-1.5.5.c-36
:
let ORESTONES = {
asurine: 'create:raw_zinc_block',
crimsite: 'minecraft:raw_iron_block',
ochrum: 'minecraft:raw_gold_block',
veridium: 'minecraft:raw_copper_block',
}
ServerEvents.recipes(event => {
event.shaped('create_mechanical_extruder:mechanical_extruder', [
' S ',
'GPG',
' G '
], {
S: 'create:shaft',
G: '#forge:glass',
P: 'create:mechanical_press'
}).id('create_mechanical_extruder:mechanical_extruder')
Object.keys(ORESTONES).forEach(material => {
event.recipes.createMechanicalExtruderExtruding(Item.of(`create:${material}`, 64), [
Item.of(`${ORESTONES[material]}`),
Fluid.of('kubejs:condensed_universal_entropy')
]).withCatalyst('kubejs:repeating_command_block').requiredBonks(1).id(`finality:repeating_command_block/${material}`)
event.recipes.createMechanicalExtruderExtruding(Item.of(`create:${material}`).withChance(0.75), [
Item.of(`${ORESTONES[material]}`),
Fluid.of('kubejs:condensed_universal_entropy')
]).withCatalyst('minecraft:crying_obsidian').requiredBonks(3).id(`finality:renew_extruder_${material}_with_crying_obsidian`)
})
event.recipes.createMechanicalExtruderExtruding(Item.of('create:limestone'), [
Fluid.of('create:honey'),
Fluid.of('minecraft:lava')
]).id('finality:renew_extruder_limestone')
event.recipes.createMechanicalExtruderExtruding(Item.of('create:limestone'), [
Item.of('minecraft:honey_block'),
Fluid.of('minecraft:lava')
]).id('finality:renew_extruder_limestone_alt')
event.recipes.createMechanicalExtruderExtruding(Item.of('create:limestone', 64), [
Fluid.of('create:honey'),
Fluid.of('minecraft:lava')
]).withCatalyst('kubejs:repeating_command_block').id('finality:repeating_command_block/limestone_compat')
event.recipes.createMechanicalExtruderExtruding(Item.of('create:scoria'), [
Fluid.of('create:chocolate'),
Fluid.of('minecraft:lava')
]).id('finality:renew_extruder_scoria_compat')
event.recipes.createMechanicalExtruderExtruding(Item.of('create:scoria', 64), [
Fluid.of('create:chocolate'),
Fluid.of('minecraft:lava')
]).withCatalyst('kubejs:repeating_command_block').id('finality:repeating_command_block/scoria_compat')
})
From server.log
[13:21:49] [ERROR] ! server_scripts:recipes/create_extruder.js:23: Failed to create recipe for type 'create_mechanical_extruder:extruding': Constructor for create_mechanical_extruder:extruding with 2 arguments not found!
[13:21:49] [WARN] server_scripts:recipes/create_extruder.js:23: Tried to call a function on an errored recipe! (Failed to create recipe for type 'create_mechanical_extruder:extruding')
[13:21:49] [ERROR] ! server_scripts:recipes/create_extruder.js:27: Failed to create recipe for type 'create_mechanical_extruder:extruding': Constructor for create_mechanical_extruder:extruding with 2 arguments not found!
[13:21:49] [WARN] server_scripts:recipes/create_extruder.js:27: Tried to call a function on an errored recipe! (Failed to create recipe for type 'create_mechanical_extruder:extruding')
[13:21:49] [ERROR] ! server_scripts:recipes/create_extruder.js:31: Failed to create recipe for type 'create_mechanical_extruder:extruding': Constructor for create_mechanical_extruder:extruding with 2 arguments not found!
[13:21:49] [WARN] server_scripts:recipes/create_extruder.js:31: Tried to call a function on an errored recipe! (Failed to create recipe for type 'create_mechanical_extruder:extruding')
[13:21:49] [ERROR] ! #31: Error occurred while handling event 'ServerEvents.recipes': TypeError: Cannot find default value for object. (server_scripts:recipes/create_extruder.js#31)
And please remember to close this issue after it is resolved, thank you.