KubeJS Delight

KubeJS Delight

645k Downloads

Couldn't create cutting recipe with multiple ingredient

EvanHsieh0415 opened this issue ยท 6 comments

commented

code is from wiki.latvian.dev/kubejs-farmers-delight

ServerEvents.recipes((event) => {
    event.recipes.farmersdelight.cutting(
        "minecraft:cobblestone",
        "#forge:tools/pickaxes", // tool
        [ // results
            "minecraft:iron_ore",
            {
                item: "minecraft:diamond",
                chance: 0.8
            }
        ],
        "" // sound
    );
});
! [18:31:14] [ERR] server_scripts:script.js:2: Failed to create recipe for type 'farmersdelight:cutting': Custom recipe has to use a single json object argument!
commented

what's your KubeJS Delight version?

commented

hmmm could you post your modlist? and anything else in your server scripts? i can't reproduce this issue in my environment

modlist

And there are no other scripts.

commented

what's your KubeJS Delight version?

1.0.1 on 1.19.2 Forge

commented

hmmm could you post your modlist? and anything else in your server scripts?
i can't reproduce this issue in my environment

commented

Actually, it seems like it works on dev env correctly, but outside it doesn't

commented

So I've been playing around with this issue, and I have no clue why this is happening, but I think my current verdict is just to update to kubejs 6.1 when it comes out later today or this week, because it doesn't happen in that version.