#"Failed to create recipe for type 'kubejs:shapeless': Constructor for kubejs:shapeless..."

7 messages · Page 1 of 1 (latest)

hoary frost
#

Was just making some shapeless recipes and got thrown this error for some reason. Here's the log for one of the failed recipe, a recipe that does work, versus a recipe that doesn't work. I don't know what I missed or forgot to add...

[21:31:00] [ERROR] ! new_recipes/general/stuff_for_chapter_1.js#54: Failed to create recipe for type 'kubejs:shapeless': Constructor for kubejs:shapeless with 1 arguments not found! [21:31:00] [WARN] new_recipes/general/stuff_for_chapter_1.js#54: Tried to call a function on an errored recipe! (Failed to create recipe for type 'kubejs:shapeless')

    event.shapeless(
      Item.of('minecraft:brown_dye'),
        [
        'kubejs:dyemorphic_catalyst',
        'minecraft:orange_dye',
        'minecraft:black_dye'
        ],
    ).id('kubejs:brown_dye_from_dyemorphic_catalyst')
    event.shapeless(
        Item.of('minecraft:cherry_sapling')
        [
        'minecraft:pink_dye',
        'minecraft:green_dye',
        'kubejs:dyemorphic_catalyst'
        ],
    ).id('kubejs:cherry_sapling_from_dyemorphic_catalyst')
cerulean pawnBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

plush swallow
#

no comma after Item.of('minecraft:cherry_sapling')

hoary frost
#

Well that's fixed now, thanks, but now I'm getting thrown a new error.
[21:56:22] [ERROR] ! new_recipes/general/stuff_for_chapter_1.js#75: Failed to create recipe for type 'kubejs:shapeless': ItemStack 'result' can't be empty! [21:56:22] [WARN] new_recipes/general/stuff_for_chapter_1.js#75: Tried to call a function on an errored recipe! (Failed to create recipe for type 'kubejs:shapeless')
It's angry about the last line in this code block, as this is the only non-working recipe now:

    event.shapeless(
        Item.of('minecraft:dyemorphic_catalyst'),
        [
        'minecraft:white_dye',
        'minecraft:light_gray_dye',
        'minecraft:gray_dye',
        'minecraft:black_dye',
        'minecraft:flint'
        ],
    ).id('kubejs:dyemorphic_catalyst_from_flint')
plush swallow
#

error is complaining about an inexistent item as the recipe's result - does minecraft:dyemorphic_catalyst exist, or did you mean the kubejs:dyemorphic_catalyst you used earlier?

hoary frost
#

well I may be stupid

#

thanks gfhdjgfk