diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-02-22 17:01:03 +0100 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-02-27 21:34:33 +1000 |
commit | 0f556d0c7f8c98c7209416577aae4fcc0c1c2b32 (patch) | |
tree | 51db9a8f2f853905a8e0b5e89aeb108baf30d700 /doc | |
parent | 2b189d4507028068694e2d5d2d94ded646d3c604 (diff) | |
download | minetest-0f556d0c7f8c98c7209416577aae4fcc0c1c2b32.tar.gz minetest-0f556d0c7f8c98c7209416577aae4fcc0c1c2b32.tar.bz2 minetest-0f556d0c7f8c98c7209416577aae4fcc0c1c2b32.zip |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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`) |