summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-09-08 10:54:36 +0200
committerSfan5 <sfan5@live.de>2013-09-08 11:09:50 +0200
commit6291fd1cbb9c2808e336532c833e26330ff2642b (patch)
treea1cf96776a56f2154daaacee6533b2a436b7ff4c /doc
parent4a2203413fbd4e4ff7e801172416ae8012e861d4 (diff)
downloadminetest-6291fd1cbb9c2808e336532c833e26330ff2642b.tar.gz
minetest-6291fd1cbb9c2808e336532c833e26330ff2642b.tar.bz2
minetest-6291fd1cbb9c2808e336532c833e26330ff2642b.zip
Add minetest.get_gametime() API function, that returns the number of seconds since the world was created.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index e65392c17..f593b0db8 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1226,6 +1226,7 @@ minetest.get_player_by_name(name) -- Get an ObjectRef to a player
minetest.get_objects_inside_radius(pos, radius)
minetest.set_timeofday(val): val: 0...1; 0 = midnight, 0.5 = midday
minetest.get_timeofday()
+minetest.get_gametime(): returns the time, in seconds, since the world was created
minetest.find_node_near(pos, radius, nodenames) -> pos or nil
^ nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
minetest.find_nodes_in_area(minp, maxp, nodenames) -> list of positions