aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-04-06 22:44:42 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-04-06 22:44:42 +0300
commit578fc5bb4418b0746fea373f382f5921058382c4 (patch)
tree275950897fc61bb9dcd8a6d6ba61d6ffd552fff3 /doc
parente8660cfd8e5632f662e753c668459289ba33cbf5 (diff)
downloadminetest-578fc5bb4418b0746fea373f382f5921058382c4.tar.gz
minetest-578fc5bb4418b0746fea373f382f5921058382c4.tar.bz2
minetest-578fc5bb4418b0746fea373f382f5921058382c4.zip
Add EnvRef:find_node_near(pos, radius, nodenames)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 36c004fa3..afcee1843 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -646,6 +646,8 @@ methods:
- get_objects_inside_radius(pos, radius)
- set_timeofday(val): val: 0...1; 0 = midnight, 0.5 = midday
- get_timeofday()
+- find_node_near(pos, radius, nodenames) -> pos or nil
+ ^ nodenames: eg. {"ignore", "group:tree"} or "default:dirt"
Deprecated:
- add_rat(pos): Add C++ rat object (no-op)
- add_firefly(pos): Add C++ firefly object (no-op)