aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-03-26 20:28:44 +0100
committersfan5 <sfan5@live.de>2020-03-26 20:35:05 +0100
commit3c0d30964315ad9e2cba2c6ade1260d8b35293da (patch)
treefc46479291da7875eaa5ef2484c487e1dae627b5 /doc
parent49a558574f29c72733c951e1bf67ec4eabd8933b (diff)
downloadminetest-3c0d30964315ad9e2cba2c6ade1260d8b35293da.tar.gz
minetest-3c0d30964315ad9e2cba2c6ade1260d8b35293da.tar.bz2
minetest-3c0d30964315ad9e2cba2c6ade1260d8b35293da.zip
Improve documentation of minetest.get_node_drops()
Also remove the comment saying it could be removed or modified.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index b67f70631..c94af6125 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -4894,9 +4894,11 @@ Item handling
given `param2` value.
* Returns `nil` if the given `paramtype2` does not contain color
information.
-* `minetest.get_node_drops(nodename, toolname)`
- * Returns list of item names.
- * **Note**: This will be removed or modified in a future version.
+* `minetest.get_node_drops(node, toolname)`
+ * Returns list of itemstrings that are dropped by `node` when dug
+ with `toolname`.
+ * `node`: node as table or node name
+ * `toolname`: name of the tool item (can be `nil`)
* `minetest.get_craft_result(input)`: returns `output, decremented_input`
* `input.method` = `"normal"` or `"cooking"` or `"fuel"`
* `input.width` = for example `3`