Skip to content

Commit

Permalink
Improve documentation of minetest.get_node_drops()
Browse files Browse the repository at this point in the history
Also remove the comment saying it could be removed or modified.
  • Loading branch information
sfan5 committed Mar 26, 2020
1 parent 49a5585 commit 3c0d309
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/lua_api.txt
Expand Up @@ -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`
Expand Down

0 comments on commit 3c0d309

Please sign in to comment.