aboutsummaryrefslogtreecommitdiff
path: root/data/mods/default
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-01-24 12:01:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-01-24 12:01:59 +0200
commit2e8e9ee7f5c0fa638e5a427f34b6823892c84f7c (patch)
tree9f0fa7c3daa75ae5a688dfba585f25e78684f913 /data/mods/default
parentcb05a28745ae4f4f6ad6f4b922bc1b465c6287fa (diff)
downloadminetest-2e8e9ee7f5c0fa638e5a427f34b6823892c84f7c.tar.gz
minetest-2e8e9ee7f5c0fa638e5a427f34b6823892c84f7c.tar.bz2
minetest-2e8e9ee7f5c0fa638e5a427f34b6823892c84f7c.zip
Add EnvRef:set_timeofday(0...1) and EnvRef:get_timeofday()
Diffstat (limited to 'data/mods/default')
-rw-r--r--data/mods/default/init.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index 7c6cccd44..f0e6b6dc2 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -114,10 +114,10 @@
-- minetest.chat_send_player(name, text)
-- minetest.get_player_privs(name) -> set of privs
-- minetest.get_inventory(location) -> InvRef
--- minetest.get_current_modname() -> string
--- minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
-- ^ location = eg. {type="player", name="celeron55"}
-- {type="node", pos={x=, y=, z=}}
+-- minetest.get_current_modname() -> string
+-- minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
--
-- minetest.debug(line)
-- ^ Goes to dstream
@@ -169,6 +169,8 @@
-- - get_meta(pos) -- Get a NodeMetaRef at that position
-- - get_player_by_name(name) -- Get an ObjectRef to a player
-- - get_objects_inside_radius(pos, radius)
+-- - set_timeofday(val): val: 0...1; 0 = midnight, 0.5 = midday
+-- - get_timeofday()
--
-- NodeMetaRef (this stuff is subject to change in a future version)
-- - get_type()