Misc
void print ( any value )
Converts value
to a stirng, and writes it to stdout.
void sleep ( int time )
Pauses execution for time
game ticks. (20 game ticks = 1 second)
int time ()
Returns the current game time, in ticks. Equivalent to mcfunction: /time query gametime
any call ( string name, array args )
Calls the function named name
, passing it args
.
Returns the return value of the called function.
Eg. call("random", [1,10])
is equivalent to random(1,10)
.