aboutsummaryrefslogtreecommitdiff
path: root/data/mods/default
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-04 15:55:37 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-04 15:55:37 +0200
commit09c48b60bd0430084d0d5a93357147e5279f071b (patch)
treec824795332cd801c1cdc62c502a58258f7371302 /data/mods/default
parent4cc117ddf6149b5b488e598a620674c8df208eac (diff)
downloadminetest-09c48b60bd0430084d0d5a93357147e5279f071b.tar.gz
minetest-09c48b60bd0430084d0d5a93357147e5279f071b.tar.bz2
minetest-09c48b60bd0430084d0d5a93357147e5279f071b.zip
Add EnvRef:get_node_light(pos, timeofday)
Diffstat (limited to 'data/mods/default')
-rw-r--r--data/mods/default/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 7f0614e20..1bd1eba4a 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -146,6 +146,8 @@
-- ^ Returns {name="ignore", ...} for unloaded area
-- - get_node_or_nil(pos)
-- ^ Returns nil for unloaded area
+-- - get_node_light(pos, timeofday) -> 0...15 or nil
+-- ^ timeofday: nil = current time, 0 = night, 0.5 = day
-- - add_luaentity(pos, name)
-- - add_item(pos, itemstring)
-- - add_rat(pos)