KubeJS will start downloading in 5 seconds...
STILL DOWNLOADING MANUALLY??
Join over 10 million players who use the CurseForge app!
What does this mod do?
How to use it?
Run the game with mod installed once. It should generate
kubejs folder in your minecraft directory with example scripts. startup scripts only get run once when the game loads. Those are for registering items, setting up configs etc. Server/data scripts are loaded when you join a world, those are better for things like clearlag, displaying custom login messages and world/player related things in general.
Can I reload scripts?
/reload. Note: Not everything is reloadable. Some things require you to restart game, some only world, some work on fly.
There's examples and pre-made scripts on KubeJS Wiki.
I have a question / suggestion / bug report!
If wiki didn't have the answer for what you were looking for, you can ask questions, make feature suggestions and report bugs here: KubeJS Support