(Official) LUA Scripting Documentation
get_cursor_point
Get the world point of the players block cursor.
Spec:
get_cursor_point()
Returns
long
: The x component of the cursor pointlong
: The y component of the cursor pointlong
: The z component of the cursor point
Example
local x,y,z = get_cursor_point()
set_block(x,y,z,block.clay)
This example sets the block currently highlighted by the players cursor to clay
Incomplete
This documentation is incomplete