From 70f9e1aafa6cd7a2b2d204609cab6cc26539cdb9 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 22 Sep 2019 22:12:21 +0200 Subject: Punchwear (improved) (#8959) --- doc/lua_api.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8a5ff78e8..cefc53569 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -6269,7 +6269,7 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and liquids_pointable = false, - -- See "Tools" section + -- See "Tools" section for an example including explanation tool_capabilities = { full_punch_interval = 1.0, max_drop_level = 0, @@ -6279,6 +6279,14 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and uses = 20, maxlevel = 2}, }, damage_groups = {groupname = damage}, + + punch_attack_uses = nil, + -- Amount of uses this tool has for attacking players and entities + -- by punching them (0 = infinite uses). + -- For compatibility, this is automatically set from the first + -- suitable groupcap using the forumla "uses * 3^(maxlevel - 1)". + -- It is recommend to set this explicitly instead of relying on the + -- fallback behavior. }, node_placement_prediction = nil, -- cgit v1.2.3