Recipe with KubeJS not working
Spyro1502 opened this issue ยท 2 comments
Hi !
I actually tried to add recipes through KubeJS in create_mechanical_extruder-1.18.2-1.4.4.e-318
But even if kubejs confirm it's been loaded with no error, none of the recipes appears.
Here is a small one I tried with only minecraft items to be the more accurate, and I confirm it does not appear:
onEvent('recipes', event => {
event.custom({
"type": "create_mechanical_extruder:extruding",
"ingredients": [
{"fluid": "minecraft:water", "amount": 1000},
{"fluid": "minecraft:lava", "amount": 1000}
],
"result": { "item": "minecraft:obsidian" }
})
})
I found a workaround for now, which consist of using the KubsJS format of that code :
event.recipes.createMechanicalExtruderExtruding(
Item.of("minecraft:obsidian"),
[
Fluid.of("minecraft:water"),
Fluid.of("minecraft:lava")
]
);
Hopping it can still help.