Give hook infinite durability

This commit is contained in:
Wuzzy 2024-12-14 19:34:02 +01:00
parent a7ed534e03
commit 0337fa5172

View File

@ -358,6 +358,11 @@ minetest.register_tool("lzr_hook:hook",{
_tt_help = S("Punch to push edge, place to rotate face").."\n"..
S("Sneak to reverse rotation direction"),
inventory_image = "lzr_hook_hook.png",
-- Ensure infinite durability if used as digging tool by automation
tool_capabilities = {
full_punch_interval = 0,
punch_attack_uses = 0,
},
on_use = function(itemstack, player, pointed_thing)
return lzr_hook.use(itemstack, player, pointed_thing, false)
end,