Craig Martin

(Official) LUA Scripting Documentation

Pages

Miscellaneous Functions

has_marker*

Query if a marker exists.

has_permission*

Same as get_permission.

cave_in*

Start a cave in.

commit*

Force a chunk mesh update.

explosion*

Create an explosion.

is_chance*

A dice query (same as is_random).

is_random*

A dice query (same as is_chance).

mod_callback*

A Mod callback. Call this function to pass string data to a mod.

set_random_seed*

Change the seed for the random number generator.

set_clan*

Assign the context players clan.

set_context*

Set the script context.

set_reach*

Set the reach of the context actor.

set_text*

Set the text of a block (Sign, Book etc).

set_texture*

Set a block’s visible texture.

teleport*

Teleport the player.

teleport_all*

Teleport all actors in a cubic region.