]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/script/lua_api/l_env.h
Merge branch 'master' of https://github.com/minetest/minetest
[dragonfireclient.git] / src / script / lua_api / l_env.h
index 07d4d24387dee0e116cad324d94e33c69773d2d6..ad9a0f50981d43e128768baf9c62538bb76e8011 100644 (file)
@@ -56,6 +56,11 @@ class ModApiEnvMod : public ModApiBase {
        // timeofday: nil = current time, 0 = night, 0.5 = day
        static int l_get_node_light(lua_State *L);
 
+       // get_natural_light(pos, timeofday)
+       // pos = {x=num, y=num, z=num}
+       // timeofday: nil = current time, 0 = night, 0.5 = day
+       static int l_get_natural_light(lua_State *L);
+
        // place_node(pos, node)
        // pos = {x=num, y=num, z=num}
        static int l_place_node(lua_State *L);
@@ -126,6 +131,18 @@ class ModApiEnvMod : public ModApiBase {
        // find_node_near(pos, radius, nodenames, search_center) -> pos or nil
        // nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
        static int l_find_node_near(lua_State *L);
+       
+       // find_nodes_near(pos, radius, nodenames, search_center) -> list of positions
+       // nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
+       static int l_find_nodes_near(lua_State *L);
+       
+       // find_nodes_near_under_air(pos, radius, nodenames, search_center) -> list of positions
+       // nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
+       static int l_find_nodes_near_under_air(lua_State *L);
+       
+       // find_nodes_near_under_air(pos, radius, nodenames, search_center) -> list of positions
+       // nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
+       static int l_find_nodes_near_under_air_except(lua_State *L);
 
        // find_nodes_in_area(minp, maxp, nodenames) -> list of positions
        // nodenames: eg. {"ignore", "group:tree"} or "default:dirt"