Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document node drop tool filtering by string matching as deprecated (#…
  • Loading branch information
paramat committed Sep 30, 2019
1 parent 61e9c1b commit 653d7b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/lua_api.txt
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 653d7b8

Please sign in to comment.