#Recipe issue

40 messages · Page 1 of 1 (latest)

cedar kayak
#

I'm trying to add a deepslate recipe, I've added a diorite recipe before which works, so naturally I copied the dioorite recipe, switched out the materials, put it in a deepslate.js file and /reloaded. The recipe is not recognized by JEI and does not work in game either, the diorite one still works, and I've tried this with blocks other than deepslate, such as diamonds, wool, wheat, just to test and get a result, but I've had no result so far.
This is the code -
ServerEvents.recipes(event => {
event.shapeless('minecraft:deepslate', [
'createdeco:industrial_iron_ingot',
'minecraft:andesite',
])
})
This is important part of the logs -
It says this in the beginning:
[15:45:10] [INFO] Loaded script server_scripts:deepslate.js in 0.0 s
[15:45:10] [INFO] Loaded script server_scripts:diorite.js in 0.001 s
[15:45:10] [INFO] Loaded script server_scripts:string.js in 0.0 s
[15:45:10] [INFO] Loaded 3/3 KubeJS server scripts in 0.019 s with 0 errors and 0 warnings
[15:45:12] [INFO] Processing recipes...
[15:45:12] [INFO] Initializing recipe event...
And then it says:
[15:45:13] [INFO] Added 1 recipes, removed 0 recipes, modified 1 recipes, with 0 failed recipes taking 420 ms in total.
Any fixes?

frank tangleBOT
#

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

tepid crest
#

I've just tested it, and it works for me. Maybe try putting the recipe in a file that you know loads, like in the same file as the diorite recipe?

topaz phoenix
#

considering it says it added 1 recipe and you say you added 2, that means you either didnt save your script or you edited the wrong file

cedar kayak
#

I've tried putting it in the diorite.js file, the one that works, but it still doesn't pop up, could it be that it's being overwritten by another mod?

topaz phoenix
#

send the log file again

cedar kayak
topaz phoenix
#

still says 1 recipe

topaz phoenix
#

idk why that replied to the message, i did not click the reply button lol

cedar kayak
topaz phoenix
#

bruh

#

did you not see the event

#

crossed out

cedar kayak
#

oh shi

topaz phoenix
#

its outside the recipe event

#

on line 7 you close the recipe and THEN you add the new recipe

cedar kayak
#

lmao mb man im brand new to this stuff, do you have any idea why it wouldn't work on it's own though when it was in a seperate file?

topaz phoenix
#

no clue, based on what you said before, it shouldve
but that means you did something sussy before

cedar kayak
#

this right?

topaz phoenix
#

looks right on first glance

cedar kayak
#

still isnt popping up in the recipe book, jei or when i try to make it

#

diorite one still pops up though

topaz phoenix
#

send the log file again (without screenshots or copy pasted content)

cedar kayak
lucid ventureBOT
#

Paste version of server.log from @cedar kayak

topaz phoenix
#

add a console.log('test') before the first recipe and after the second recipe, then send me the log again

cedar kayak
lucid ventureBOT
#

Paste version of server.log from @cedar kayak

topaz phoenix
#

um

#

show me a pic of your script

#

cuz theres nothing being logged

cedar kayak
#

again if im doing something dumb sorry im very new to this stuff

topaz phoenix
#

that looks good but youre still doing something wrong, like not saving the script or editing the wrong file

#

since the console.log isnt showing in the log youre sending

cedar kayak
#

im dumb man

#

i never saved the file

#

thanks for your help