#KubeJS removed All recipes
93 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
I can send a link with the modpack with the most recent version and the older version but I know it is not safe to download a strangers file
I can also try to just send the folder
Link (If you trust):
Present Scripts
Past Scripts
you should probably conduct a binary search
i.e. remove half of the scripts, then test which one is causing all recipes to be removed
if it still occurs, remove half of that half
@fading mango
okay thanks for the Idea
I will try and see if it works if it doesnt then I will let you know I guess
so I found the problem script
it has something to do with the Crafting Recipes script
is there a way to possible fix it?
you'll have to post the exact script for us to know whether there are any issues with the code 
Paste version of CraftingRecipes.js from @fading mango
right there
a quick skim, I don't see anything particularly wrong with it
it was working like yesterday
and then today me and my friend were trying to play the modpack and it kinda broke
what I like to do when it comes to overwriting recipes is to overwrite the recipe's ID using .id('recipe_id_of_item')
so I did start to do that
and then ended up stopping causes I dont know what that does exaclty
basically, it makes your recipe have priority over another recipe with the same ID
well not to seem like I know better
very useful with mods that do weird stuff with their recipes like Apotheosis
but why would me not doing that on all recipes suddenly make all recipes excpet the ones I changed just stop working
again I used ChatGPT to help with a lot of this
🤖 Rule 6: AI generated code (ChatGPT, etc.) is not allowed.
AI doesn't know KubeJS 100%
it was made by me
just avoid using AI, it's not that great for kjs
but it gave me an outline to go off of
that's all!
with that outta the way
I'm not sure what the issue in particular could be
did you test this in a new world?
yes
or minimal instance
new and an older one
what do you mean by that?
just KJS + any necessary mod
almost all the mods are necessary
necessary mod being any mod within the script
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.
so create one and then send that?
or just go into the one I just experienced this with?
this one first
This one?
Paste version of server.log from @fading mango
so I think I found what is causing the problem
its specific lines of script I just copy and pasted
Paste version of Toms_Crafting.js from @fading mango
I created a new profile with just KubeJS and Tom's simple storage
and added these recipe changes
and it broke the recipes
im gonna try removing each recipe on by one to se if that fixes it
okay I have narrowed it down to one thing
Paste version of Broken_one.txt from @fading mango
in event.remove({ ouput: 'toms_storage:ts.crafting_terminal',}), can you remove the added comma at the end?
I was thinking that'd be a trail comma but maybe not
yes I can but just to let you know I have one with that same thing and it works fine
nope didnt fix it
hmm
try replacing the ID of the recipe using .id() and erase the event.remove() code
okay
event.shaped('toms_storage:ts.crafting_terminal',
[
' RT',
'SCG',
' RT'
],
{
R: 'minecraft:redstone',
T: 'minecraft:redstone_torch',
S: 'toms_storage:ts.storage_terminal',
C: 'minecraft:crafting_table',
G: 'minecraft:glass_pane'
}
).id('id_of_the_original_recipe')
yeah that fixed it
Please close your ticket (with </ticket close:1054771505520717835> or the button atop this thread) once you resolved your issue!
This also helps others that would like to help out, as they don't have to look into this thread to check if it has been resolved by now.
Do you have any other questions regarding your issue? Feel free to ask!
Note: You should create a new post for unrelated issues.