Craig Martin

(Official) LUA Scripting Documentation

get_block

Get the block id at a map point.


Spec:

get_block(
	long x,
	long y,
	long z)

Parameters

Returns


Example

local x,y,z = get_script_point()
local block_id = get_block(x,y+1,z)

This example gets the block id of the block directly above the script block that executed this script.


Incomplete

This documentation is incomplete


back