From 0f556d0c7f8c98c7209416577aae4fcc0c1c2b32 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Sun, 22 Feb 2015 17:01:03 +0100 Subject: Add find_surface_nodes_in_area LUA call which permit to only get the nodes which touch air. This permit to massively improve performance for mods like plantlife --- doc/lua_api.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/lua_api.txt') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 431ba0a8e..739fcef83 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1869,6 +1869,9 @@ and `minetest.auth_reload` call the authetification handler. * `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"` * `minetest.find_nodes_in_area(minp, maxp, nodenames)`: returns a list of positions * `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"` +* `minetest.find_surface_nodes_in_area(minp, maxp, nodenames)`: returns a list of positions + * returned positions are nodes with a node air above + * `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"` * `minetest.get_perlin(noiseparams)` * `minetest.get_perlin(seeddiff, octaves, persistence, scale)` * Return world-specific perlin noise (`int(worldseed)+seeddiff`) -- cgit v1.2.3