Craig Martin

(Official) LUA Scripting Documentation

get_cursor_point

Get the world point of the players block cursor.


Spec:

get_cursor_point()

Returns


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


back