Hi, everyone,
I want to make a pick more powerful than diamond, but I can't understand how to register a pick.
With my code, the pick is more efficient with dirt than stone...
Code: Select all
minetest.register_tool("pala_tools:pick_paladium", {
description = "Paladium Pickaxe",
_doc_items_longdesc = pickaxe_longdesc,
inventory_image = "pala_tools_paladiumpick.png",
wield_scale = wield_scale,
groups = { tool=1, pickaxe=1, dig_speed_class=5},
tool_capabilities = {
-- 1/1.2
full_punch_interval = 0.83333333,
max_drop_level=5,
groupcaps={
pickaxey_dig_diamond = {times=2, uses=4999, maxlevel=0},
},
damage_groups = {fleshy=6.5},
punch_attack_uses = 4999,
},
sound = { breaks = "default_tool_breaks" },
})
Can someone help me ?
It is the code of diamond pick.