summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParamat <paramat@users.noreply.github.com>2019-09-30 21:34:43 +0100
committerGitHub <noreply@github.com>2019-09-30 21:34:43 +0100
commit653d7b8112ccac491daf42a2b6b73ff10612ad68 (patch)
tree94b5924317932f97e9b101afe4802c9e72dc7cbc
parent61e9c1b0dd7da9cf45969875a89af5203910d290 (diff)
downloadminetest-653d7b8112ccac491daf42a2b6b73ff10612ad68.tar.gz
minetest-653d7b8112ccac491daf42a2b6b73ff10612ad68.tar.bz2
minetest-653d7b8112ccac491daf42a2b6b73ff10612ad68.zip
Document node drop tool filtering by string matching as deprecated (#9009)
-rw-r--r--doc/lua_api.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index b4cf65e54..bbd11c867 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -6526,7 +6526,9 @@ Used by `minetest.register_node`.
drop = "",
-- Name of dropped item when dug.
-- Default dropped item is the node itself.
- -- Using a table allows multiple items, drop chances and tool filtering:
+ -- Using a table allows multiple items, drop chances and tool filtering.
+ -- Tool filtering was undocumented until recently, tool filtering by string
+ -- matching is deprecated.
drop = {
max_items = 1,
-- Maximum number of item lists to drop.
@@ -6557,7 +6559,8 @@ Used by `minetest.register_node`.
},
{
-- Only drop if using a tool whose name contains
- -- "default:shovel_".
+ -- "default:shovel_" (this tool filtering by string matching
+ -- is deprecated).
tools = {"~default:shovel_"},
rarity = 2,
-- The item list dropped.