durapick/mese.lua
david 3b04e013ba Pickaxes can now be changed via factor
By default all durapicks will get 12 times their normal durabilities,
and it's customizable.
2021-03-27 17:28:43 -04:00

37 lines
1.1 KiB
Lua

-- Make such a thing
minetest.register_tool("durapick:mese_pick", {
description = "Durable Mese Pickaxe",
inventory_image = "durapick_mese.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=3,
groupcaps={
cracky = {times={[1]=2.4, [2]=1.2, [3]=0.60}, uses=(durapick_durability_mese * durapick_durability_factor), maxlevel=3},
},
damage_groups = {fleshy=5},
},
sound = {breaks = "default_tool_breaks"},
groups = {pickaxe = 1}
})
if durapick_previous_pick then
minetest.register_craft({
type = "shaped",
output = "durapick:mese_pick 1",
recipe = {
{durapick_resource_mese, "durapick:steel_pick", durapick_resource_mese},
{"", durapick_stick, ""},
{"", durapick_stick, ""}
},
})
else
minetest.register_craft({
type = "shaped",
output = "durapick:mese_pick 1",
recipe = {
{durapick_resource_mese, durapick_resource_mese, durapick_resource_mese},
{"", durapick_stick, ""},
{"", durapick_stick, ""}
},
})
end