Information (Read this first!)
Website and FAQ: https://kubejs.latvian.dev/
Discord server: https://discord.gg/bPFfH6P
Forge download: https://www.curseforge.com/minecraft/mc-mods/kubejs
Forge source and issue tracker: https://github.com/KubeJS-Mods/KubeJS
Fabric download: https://www.curseforge.com/minecraft/mc-mods/kubejs-fabric
Fabric source and issue tracker: https://github.com/KubeJS-Mods/KubeJS-Fabric
How to read Variables and Functions
Format | Use Example | Info |
variableName |
|
A simple variable, can be read and changed as well |
functionName() | event.functionName() |
Function with no parameters, can be called |
functionName(int x, String y) |
|
Function with parameters with types specified (even if JS doesn't have function types), can be called |
variableName | var x = event.variableName |
Variable that can only be read but can't be changed |
variableName | event.variableName = 10 |
Variable that can only be changed, but can't be read |