Improve documentation of minetest.get_node_drops()

Also remove the comment saying it could be removed or modified.
This commit is contained in:
sfan5 2020-03-26 20:28:44 +01:00
parent 49a558574f
commit 3c0d309643
1 changed files with 5 additions and 3 deletions

View File

@ -4894,9 +4894,11 @@ Item handling
given `param2` value. given `param2` value.
* Returns `nil` if the given `paramtype2` does not contain color * Returns `nil` if the given `paramtype2` does not contain color
information. information.
* `minetest.get_node_drops(nodename, toolname)` * `minetest.get_node_drops(node, toolname)`
* Returns list of item names. * Returns list of itemstrings that are dropped by `node` when dug
* **Note**: This will be removed or modified in a future version. 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` * `minetest.get_craft_result(input)`: returns `output, decremented_input`
* `input.method` = `"normal"` or `"cooking"` or `"fuel"` * `input.method` = `"normal"` or `"cooking"` or `"fuel"`
* `input.width` = for example `3` * `input.width` = for example `3`