oierbravo / create-mechanical-extruder

Mechanical extruder for the amazing Create mod.
MIT License
5 stars 8 forks source link

Recipe with KubeJS not working #41

Open Spyro1502 opened 10 months ago

Spyro1502 commented 10 months ago

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" }
    })
})
Spyro1502 commented 10 months ago

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.

jmilster0731 commented 9 months ago

I've been trying to get this to work for two days, can you show the full doc? Because I can't seem to get it going and I'm losing it...