#Recipe not found/recognised when using a create recipe

28 messages · Page 1 of 1 (latest)

steady turtle
#

So I'm trying to make a mixing recipe as a test. However, after following way too many tutorials, all saying smth different, my recipe doesn't work, doesn't give me an error and doesn't show up in JEI. The other recipe in the file does work properly, and I tried following the mod's wiki, but that resulted in an "constructors not found" error and whilst trying to troubleshoot that via the discord (so by adding the "addCreateRecipeHandler(event)" script into my script as instructed) I got an error regarding the new lines. This is my script:

ServerEvents.recipes(event => {
event.shaped('create:blaze_burner', [
'ABA',
' C ',
'ADA'
], {
C: 'knightlib:great_essence',
A: 'minecraft:blaze_rod',
D: 'create:empty_blaze_burner',
B: 'minecraft:lava_bucket'
})

event.custom({
"type": "create:mixing",
"results": [
{
"item": "create:blaze_burner", amount: 1
}
],
ïngredients: [
{
"item": "knightlib:great_essence", amount: 1
},
{
"item": "minecraft:blaze_rod", amount: 4
},
{
"item": "create:empty_blaze_burner", amount: 1
},
{
"fluid": "minecraft:lava", amount: 500
}
]})});

Does anyone know how I can solve this?
I'm using no addons except for ProbeJS and Ponder for CubeJS.

Thanks in advance!

cedar gullBOT
#

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

short jackalBOT
#

You can write your code in a codeblock by typing it between the codeblock delimiters:
Note that these are backticks, not apostrophes

```js :arrow_left:

ServerEvents.recipes(event => {
event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

This example will look like this:

ServerEvents.recipes(event => {
  event.smelting('minecraft:glass', '#forge:sand').xp(.1)
})
#

Please send your KubeJS server log. It can be found at /minecraft/logs/kubejs/server.log.
If you are on 1.18 or 1.16 it will be called server.txt.
Please send the file directly, without links or snippets.

broken granite
#

ï
Oops, somehow an accented i got into the script

steady turtle
#
 ServerEvents.recipes(event => {
    event.shaped('create:blaze_burner', [
        'ABA',
        ' C ',
        'ADA'
    ], {
        C: 'knightlib:great_essence',
        A: 'minecraft:blaze_rod',
        D: 'create:empty_blaze_burner',
        B: 'minecraft:lava_bucket'
})



event.custom({
    "type": "create:mixing",
    "results": [
        {
            "item": "create:blaze_burner", amount: 1
        }
    ],
    ïngredients: [
        {
            "item": "knightlib:great_essence", amount: 1
        },
        {
            "item": "minecraft:blaze_rod", amount: 4
        },
        {
            "item": "create:empty_blaze_burner", amount: 1
        },
        {
            "fluid": "minecraft:lava", amount: 500
        }
 ]})});

I guess this is supposed to make this an actual script, if it helps...

orchid elbow
#

just need the logs

#

but yes as it was pointed out above, its th ingredients that is mispelled

steady turtle
#

This is the server log file. I changed the typo, but the problem still persists...

short jackalBOT
#

Paste version of server.log from @steady turtle

orchid elbow
#

there is an error

#
Error parsing recipe create:kjs/abqy0xt9vvdvghve9wc8cdpsz: {"type":"create:mixing","results":[{"item":"create:blaze_burner","amount":1}],"ingredients":[{"item":"knightlib:great_essence","amount":1},{"item":"minecraft:blaze_rod","amount":4},{"item":"create:empty_blaze_burner","amount":1},{"fluid":"minecraft:lava","amount":500}]}: com.google.gson.JsonParseException: Failed to parse either. 

No key id in MapLike[{"item":"create:blaze_burner","amount":1}]; 
No key id in MapLike[{"item":"create:blaze_burner","amount":1}];
Not a JSON object: "create:blaze_burner";
Input does not contain a key [type]: MapLike[{"fluid":"minecraft:lava","amount":500}];
Not a json array: {"fluid":"minecraft:lava","amount":500};
No key tag in MapLike[{"fluid":"minecraft:lava","amount":500}];
No key item in MapLike[{"fluid":"minecraft:lava","amount":500}]
#

that is 7 errors in one recipe

#

o.o

steady turtle
#

Do you know how I can solve them?

orchid elbow
#

it all indicates to having the wrong recipe json when you copied the recipe

lapis crescent
steady turtle
#

It was from a youtube vid, then I tried to troubleshoot using some stuff I found online

orchid elbow
#

bruh

short jackalBOT
#

You can add, remove, and modify recipes with KubeJS. The wiki has a page on that!
If you want to learn how to add recipes to any mod, click the Custom button.

orchid elbow
#

custom section ^

steady turtle
#

I tried that, even copied some recipe´s from the create section but it didn´t work either

#

It´s really weird

lapis crescent
#

Do not go anywhere else, thats all the info you need

orchid elbow
#

if you are on github, check youre copying the correct mc version recipe

#

and if you try something and doesnt work, show us what you tried and the server logs

steady turtle