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?
#Recipe issue
40 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
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?
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
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?
send the log file again
still says 1 recipe
youre doing something wrong
idk why that replied to the message, i did not click the reply button lol
oh shi
its outside the recipe event
on line 7 you close the recipe and THEN you add the new recipe
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?
no clue, based on what you said before, it shouldve
but that means you did something sussy before
this right?
looks right on first glance
still isnt popping up in the recipe book, jei or when i try to make it
diorite one still pops up though
send the log file again (without screenshots or copy pasted content)
Paste version of server.log from @cedar kayak
add a console.log('test') before the first recipe and after the second recipe, then send me the log again
this is after adding
Paste version of server.log from @cedar kayak
again if im doing something dumb sorry im very new to this stuff
