mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-16 18:01:40 +00:00
Add minetest.get_gametime() API function, that returns the number of seconds since the world was created.
This commit is contained in:
parent
4a2203413f
commit
6291fd1cbb
3 changed files with 15 additions and 0 deletions
|
@ -104,6 +104,9 @@ private:
|
|||
// minetest.get_timeofday() -> 0...1
|
||||
static int l_get_timeofday(lua_State *L);
|
||||
|
||||
// minetest.get_gametime()
|
||||
static int l_get_gametime(lua_State *L);
|
||||
|
||||
// minetest.find_node_near(pos, radius, nodenames) -> pos or nil
|
||||
// nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
|
||||
static int l_find_node_near(lua_State *L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue