summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-01-30 19:10:37 +0000
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-03-13 23:56:05 +0100
commit37df9cb7d764891f29b433e80a0d5663fee1a94f (patch)
treeefed423ad2021439267eb5e1e8719fb8514ea6d7 /doc
parent073f5cf03d95ce1cdf04ce8a0adcaf1fc571d95f (diff)
downloadminetest-37df9cb7d764891f29b433e80a0d5663fee1a94f.tar.gz
minetest-37df9cb7d764891f29b433e80a0d5663fee1a94f.tar.bz2
minetest-37df9cb7d764891f29b433e80a0d5663fee1a94f.zip
[CSM] Add `get_node` and `get_node_or_nil`
Diffstat (limited to 'doc')
-rw-r--r--doc/client_lua_api.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 886dbc6e1..7b24452e8 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -717,7 +717,13 @@ Call these functions only at load time!
* `minetest.after(time, func, ...)`
* Call the function `func` after `time` seconds, may be fractional
* Optional: Variable number of arguments that are passed to `func`
-
+### Map
+* `minetest.get_node(pos)`
+ * Returns the node at the given position as table in the format
+ `{name="node_name", param1=0, param2=0}`, returns `{name="ignore", param1=0, param2=0}`
+ for unloaded areas.
+* `minetest.get_node_or_nil(pos)`
+ * Same as `get_node` but returns `nil` for unloaded areas.
### Misc.
* `minetest.parse_json(string[, nullvalue])`: returns something
* Convert a string containing JSON data into the Lua equivalent