#KubeJS fails to load scripts MC 1.20
55 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Attempting to add ore veins to a create add-on mod
ServerEvents.recipes(event => {
//Adding veins
event.recipes.createoreexcavation.vein('{"text": "uranium vein"}', 'mekanism:raw_uranium').placement(1024, 128, 64825185).id("kubejs:uranium_vein")
....
event.recipes.createoreexcavation.extracting('minecraft:lava', 'kubejs:lava_vein', 10).id("kubejs:mod_vein8");
console.log('Hello! The recipe event has fired!')
});
going off of https://github.com/tom5454/Create-Ore-Excavation for a starting point
Could upload the js to you if that would be easier.
can you send your server.log
Paste version of server.log from @normal needle
says you have zero scripts
Loaded 0/0 KubeJS server scripts in 0.004 s
so that sounds like youre either not saving the script, or editing the file for a different instance
Confirmed script is in the same instance i am loading. and also verified the file is saved and closed
can i see a screenshot of your file explorer that also shows the path

when did you run the game to generate this log? the time is a bit sussy
sent you the log from this directory
i get that, but when did you generate it
aka when did you load into the game
is this time correct
does it still say 0/0
yes
Do I need any kind of syntax at the start of the JS file?
nope, im not sure whats happening there to be completely honest
maybe someone else knows
1 last question, if there are no other mods are those example.js files suppose to kick off when you launch a new world?
it depends on the folder and the events you use
some, yes, work when you launch a new world
thanks for the help. Tried a brand new instance and only had this mod loaded and tried 'hello world' to display on the server scripts and got nothin. for whatever reason it feels like kube is not seeing the scripts folders. will throw a few other attempts at it
id just wait until others can look at this
dont suppose theres a few debug commands that can be ran. havnt had any luck finding commands in the wiki. nod
but its the middle of the night for most people here, so might have to wait a good few hours
lol yeah it is getting late
im gonna link this thread in a private channel we have, cuz im curious whats going on here too
thanks again for atleast ruling out the starter stuff
lets hope someone sees something ive missed
Interesting to see what looks like the same issue for another user | Loaded 0/0 KubeJS in 1.20 but not 1.19
KubeJS fails to load scripts MC 1.20
@normal needle what version of KJS are you on
just saw
KubeJS 2001.6.3-build.57
kubejs-forge-2001.6.3-build.57.jar
I'm having the same issue, same conditions. Scripts files are saved in the correct folder, while using version kubejs-forge-2001.6.3-build.61.jar
It definitely works fine in my dev, this is super weird
The example.js scripts that are auto generated also don't work
definitely mod issue not script issue
@winter bramble Mentioned a private thread about this issue, may I follow?
private channel