aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-05-04 21:52:58 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-05-04 22:52:58 +0200
commitd6cf5450a897b00e5ed0d053f14108c94dfb3701 (patch)
treeed37c0065bd401b4e552477a2ddb31b1795d982e /doc
parent6fb27d3b2e7c497ae443538dbc4dc9f64ad2f8e9 (diff)
downloadminetest-d6cf5450a897b00e5ed0d053f14108c94dfb3701.tar.gz
minetest-d6cf5450a897b00e5ed0d053f14108c94dfb3701.tar.bz2
minetest-d6cf5450a897b00e5ed0d053f14108c94dfb3701.zip
Add option to also check the center to `find_node_near` (#5255)
* Add option to also check the center to `find_node_near`
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 599e02fcb..1550a78be 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2280,9 +2280,11 @@ and `minetest.auth_reload` call the authetification handler.
* `minetest.get_gametime()`: returns the time, in seconds, since the world was created
* `minetest.get_day_count()`: returns number days elapsed since world was created,
* accounting for time changes.
-* `minetest.find_node_near(pos, radius, nodenames)`: returns pos or `nil`
+* `minetest.find_node_near(pos, radius, nodenames, [search_center])`: returns pos or `nil`
* `radius`: using a maximum metric
* `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
* `nodenames`: e.g. `{"ignore", "group:tree"}` or `"default:dirt"`