Information
Website and FAQ: https://kubejs.latvian.dev/
Discord server: https://discord.gg/bPFfH6P
Forge download: https://www.curseforge.com/minecraft/mc-mods/kubejs
How to read Variables and Functions
-
variableName- A simple variable, can be read and changed as wellvar x = event.variableName&event.variableName = 10 -
functionName()- Function with no parameters, can be calledevent.functionName() -
functionName(int x, String y)- Function with parameters with types specified (even if JS doesn't have function types), can be calledevent.functionName(10, 'abc') -
variableName- Variable that can only be read but can't be changedvar x = event.variableName -
variableName- Variable that can only be changed, but can't be readevent.variableName = 10