Skip to content
Snippets Groups Projects
Commit fe6575b8 authored by Robert Zenz's avatar Robert Zenz Committed by est31
Browse files

Add more information about how get_node_light works.

parent 0b875560
No related branches found
No related tags found
No related merge requests found
......@@ -1914,9 +1914,13 @@ and `minetest.auth_reload` call the authetification handler.
* Returns `{name="ignore", ...}` for unloaded area
* `minetest.get_node_or_nil(pos)`
* Returns `nil` for unloaded area
* `minetest.get_node_light(pos, timeofday)` returns a number between `0` and `15` or `nil`
* `minetest.get_node_light(pos, timeofday)`
* Gets the light value at the given position. Note that the light value
"inside" the node at the given position is returned, so you usually want
to get the light value of a neighbor.
* `pos`: The position where to measure the light.
* `timeofday`: `nil` for current time, `0` for night, `0.5` for day
* Returns a number between `0` and `15` or `nil`
* `minetest.place_node(pos, node)`
* Place node with the same effects that a player would cause
* `minetest.dig_node(pos)`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment