(Official) LUA Scripting Documentation
set_block
Set block id and aux data at a map point.
Spec:
set_block(
long x,
long y,
long z,
long block_id,
long aux)
Parameters
x
: The x component of the map pointy
: The y component of the map pointz
: The z component of the map pointblock_id
: The numerical block value, this can also be from the global block enumaux
: The auxiliary data for setting orientation (This can be omitted)
Examples
set_block(100, 201, 100, block.grass)
Sets a grass block at 100, 201, 100.
set_block (100, 201, 100, block.stairs, 14)
Sets a stairs block at 100, 201, 100 that is upside down and facing east.
Incomplete
This documentation is incomplete