summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2017-06-19 16:30:26 +0200
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commit03bc584f5738e21ef6c07e7c0928d0083be9995e (patch)
treed362c4ce011e8b7a06ca6c6cc6b83c1f0f671db3 /doc/lua_api.txt
parent5f796f7a042576f848e969c77b25b4b9e4112b77 (diff)
downloadminetest-03bc584f5738e21ef6c07e7c0928d0083be9995e.tar.gz
minetest-03bc584f5738e21ef6c07e7c0928d0083be9995e.tar.bz2
minetest-03bc584f5738e21ef6c07e7c0928d0083be9995e.zip
find_nodes_in_area: Extend maximal count to U32_MAX (#5277)
Extend documentation, limit area volume Remove u16 count limitation * Prevent integer overflow, replace minp/maxp with pos1/pos2
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 2bbf18310..e893d6461 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2462,12 +2462,13 @@ and `minetest.auth_reload` call the authetification handler.
* `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"`
* `search_center` is an optional boolean (default: `false`)
If true `pos` is also checked for the nodes
-* `minetest.find_nodes_in_area(minp, maxp, nodenames)`: returns a list of positions
- * returns as second value a table with the count of the individual nodes found
+* `minetest.find_nodes_in_area(pos1, pos2, nodenames)`: returns a list of positions
* `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"`
-* `minetest.find_nodes_in_area_under_air(minp, maxp, nodenames)`: returns a list of positions
- * returned positions are nodes with a node air above
+ * First return value: Table with all node positions
+ * Second return value: Table with the count of each node with the node name as index
+* `minetest.find_nodes_in_area_under_air(pos1, pos2, nodenames)`: returns a list of positions
* `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"`
+ * Return value: Table with all node positions with a node air above
* `minetest.get_perlin(noiseparams)`
* `minetest.get_perlin(seeddiff, octaves, persistence, scale)`
* Return world-specific perlin noise (`int(worldseed)+seeddiff`)