Craig Martin

(Official) LUA Scripting Documentation

copy_block

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


Spec:

copy_block(
	long x1,
	long y1,
	long z1,
	long x2,
	long y2,
	long z2)

Parameters


Example

local x,y,z = get_script_point()
copy_block(x,y,z,x,y+1,z)

This example copies the block id, aux data and light data of the script block that executed this script to the point directly above it.


Incomplete

This documentation is incomplete


back