Craig Martin

(Official) LUA Scripting Documentation

Pages

Functions to manipulate blocks

get_aux*

Get the aux data at a map point.

get_block*

Get the block id at a map point.

copy_block*

Copy block data (block id, aux, light) from one map point to another.

copy_region*

Copy block data (block id, aux, light) from one cubic region to another.

move_block*

Move block data (block id, aux, light) from one map point to another.

move_region*

Move block data (block id, aux, light) from one cubic region to another.

paste*

Paste a component.

replace_region*

Replace a block id with another block id in a cubic region.

set_block*

Set block id and aux data at a map point.

set_block_script*

Assign a script to a block at a map point.

set_region*

Set block id in a cubic region.

set_region_aux*

Set aux data in a cubic region.

set_sphere*

Set block id in a spherical region.