Skip to content

Commit 3c0d309

Browse files
committedMar 26, 2020
Improve documentation of minetest.get_node_drops()
Also remove the comment saying it could be removed or modified.
1 parent 49a5585 commit 3c0d309

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎doc/lua_api.txt

+5-3
Original file line numberDiff line numberDiff line change
@@ -4894,9 +4894,11 @@ Item handling
48944894
given `param2` value.
48954895
* Returns `nil` if the given `paramtype2` does not contain color
48964896
information.
4897-
* `minetest.get_node_drops(nodename, toolname)`
4898-
* Returns list of item names.
4899-
* **Note**: This will be removed or modified in a future version.
4897+
* `minetest.get_node_drops(node, toolname)`
4898+
* Returns list of itemstrings that are dropped by `node` when dug
4899+
with `toolname`.
4900+
* `node`: node as table or node name
4901+
* `toolname`: name of the tool item (can be `nil`)
49004902
* `minetest.get_craft_result(input)`: returns `output, decremented_input`
49014903
* `input.method` = `"normal"` or `"cooking"` or `"fuel"`
49024904
* `input.width` = for example `3`

0 commit comments

Comments
 (0)