Total Miner

(Official) LUA Scripting Documentation

get_cursor_point

Get the world point of the context actor block cursor.


Spec:

get_cursor_point()

Returns


if y == 0 then the cursor is invalid (not targeting a block)


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