Craig Martin

(Official) LUA Scripting Documentation

get_sun_light

Get the amount of sunlight at a world point.


Spec:

get_sun_light(
	long x,
	long y,
	long z)

Parameters

Returns


Example

local x,y,z = get_script_pos()
local sunlight = get_sun_light(x,y+1,z)

This example gets the amount of sunlight at the point directly above the script block that executed the script


Incomplete

This documentation is incomplete


back