(Official) LUA Scripting Documentation
copy_region
Copy block data (block id, aux, light) from one cubic region to another.
Spec:
copy_region(
long x1,
long y1,
long z1,
long x2,
long y2,
long z2,
long x3,
long y3,
long z3)
Parameters
x1
: The x component of the source regions min map pointy1
: The y component of the source regions min map pointz1
: The z component of the source regions min map pointx2
: The x component of the source regions max map pointy2
: The y component of the source regions max map pointz2
: The z component of the source regions max map pointx3
: The x component of the destination regions min map pointy3
: The y component of the destination regions min map pointz3
: The z component of the destination regions min map point
Example
copy_region(100,10,200,120,20,240,400,50,200)
This example copies the block id, aux data and light data of all the blocks in the region 100,10,200 to 120,20,240 to a region of the same size starting at 400,50,200.
Incomplete
This documentation is incomplete