(Official) LUA Scripting Documentation
get_block_info
Get various world data of a block.
Spec:
get_block_info(
long x,
long y,
long z)
Parameters
x
: The x component of the map point of the block.y
: The y component of the map point of the block.z
: The z component of the map point of the block.
Returns
block_info
: A data type containing fields for the block statelong
: block_id. The block ID of the voxel at location x, y, zlong
: aux. The auxillary data of the voxel at location x, y, zbool
: is_edited. True if the block has been edited (is not naturally generated)bool
: is_light_source. True if the block emits lightbool
: is_open. True if the blocks interface screen is openbool
: is_ore. True if the block is a naturally generated orebool
: is_passable. True if actors can pass through the blockbool
: is_delivering_power. True if the block is currently delivering power (to surrounding blocks)bool
: is_receiving_power. True if the block is currently receiving powerbool
: is_solid. True if the block has solid geometry (no gaps to see though)long
: tex_id. The current texture id (for blocks who’s texture can be reassigned)long
: resistance. The blocks resistance to mining
Incomplete
This documentation is incomplete