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
Format
Use Example
Info
variableName
-
A simple variable, can be read and changed as well var x = event.variableName & event.variableName = 10
event.functionName()
event.functionName()
functionName(int x, String y)
event.functionName(10, 'abc')
event.functionName(10,
variableName
var x = event.variableName
- Variable that can only be read but can't be changed
variableName
var xevent.variableName = event.variableName10
variableNameevent.variableName