mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
Document node drop tool filtering by string matching as deprecated (#9009)
This commit is contained in:
parent
61e9c1b0dd
commit
653d7b8112
@ -6526,7 +6526,9 @@ Used by `minetest.register_node`.
|
|||||||
drop = "",
|
drop = "",
|
||||||
-- Name of dropped item when dug.
|
-- Name of dropped item when dug.
|
||||||
-- Default dropped item is the node itself.
|
-- 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 = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
-- Maximum number of item lists to drop.
|
-- 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
|
-- Only drop if using a tool whose name contains
|
||||||
-- "default:shovel_".
|
-- "default:shovel_" (this tool filtering by string matching
|
||||||
|
-- is deprecated).
|
||||||
tools = {"~default:shovel_"},
|
tools = {"~default:shovel_"},
|
||||||
rarity = 2,
|
rarity = 2,
|
||||||
-- The item list dropped.
|
-- The item list dropped.
|
||||||
|
Loading…
Reference in New Issue
Block a user