(Official) LUA Scripting Documentation
get_placement_point
Get the world point where a block would be placed by the context actor.
Spec:
get_placement_point()
Returns
long
: The x component of the placement pointlong
: The y component of the placement pointlong
: The z component of the placement point
if y == 0 then the cursor / placement point is invalid (not targeting a block)
Example
local x,y,z = get_placement_point()
set_block(x,y,z,block.clay)
Incomplete
This documentation is incomplete