Globals
NovoScript provides several Global functions. Here's a list of them:
Builtin Functions
function
milliTime
Time in milliseconds since JVM startup
long()
function
nanoTime
Time in nanoseconds since JVM startup
long()
function
currentMillisTime
Time in milliseconds since the Unix epoch
long()
Macros
function
rgb
Converts red, green, blue values to hex
int(int, int, int)
function
rgba
Converts red, green, blue, alpha values to hex
int(int, int, int, int)
Timer
Timer delay is set when the Timer object is initialized.
function
hasPassed
Whether a specific delay has been passed since the last reset
boolean(int)
function
reset
Resets the timer
void()
Imported Render APIs
Several LWJGL APIs are already imported for you, so you don't have to all Java.type
on most of them. Here's the list of the imported APIs:
Last updated
Was this helpful?