2021-01-21 16:03:14 -05:00
|
|
|
-- This is from:
|
|
|
|
-- devtest game, mod basetools
|
|
|
|
|
|
|
|
-- Mese Pickaxe: special tool that digs "everything" instantly
|
2021-02-27 23:51:30 -05:00
|
|
|
|
|
|
|
if durapick_durability_dev then
|
|
|
|
minetest.register_tool("durapick:dev_pick", {
|
|
|
|
description = "Dev Pickaxe",
|
|
|
|
inventory_image = "durapick_dev.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.0,
|
|
|
|
max_drop_level=3,
|
|
|
|
groupcaps={
|
|
|
|
-- This will mine everything in 0.5 seconds
|
2021-03-27 17:28:43 -04:00
|
|
|
cracky={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
|
|
|
crumbly={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
|
|
|
snappy={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
|
|
|
choppy={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
|
|
|
dig_immediate={times={[1]=0.5, [2]=0.5, [3]=0.5}, (durapick_durability_dev_amt * durapick_durability_factor), maxlevel=255},
|
2021-02-27 23:51:30 -05:00
|
|
|
},
|
|
|
|
-- Modified damage due to the fact it is craftable
|
|
|
|
damage_groups = {fleshy=8},
|
2021-01-21 16:03:14 -05:00
|
|
|
},
|
2021-02-27 23:51:30 -05:00
|
|
|
})
|
|
|
|
else
|
|
|
|
minetest.register_tool("durapick:dev_pick", {
|
|
|
|
description = "Dev Pickaxe",
|
|
|
|
inventory_image = "durapick_dev.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.0,
|
|
|
|
max_drop_level=3,
|
|
|
|
groupcaps={
|
|
|
|
-- This will mine everything in 0.5 seconds
|
|
|
|
cracky={times={[1]=0.5, [2]=0.5, [3]=0.5}, maxlevel=255},
|
|
|
|
crumbly={times={[1]=0.5, [2]=0.5, [3]=0.5}, maxlevel=255},
|
|
|
|
snappy={times={[1]=0.5, [2]=0.5, [3]=0.5}, maxlevel=255},
|
|
|
|
choppy={times={[1]=0.5, [2]=0.5, [3]=0.5}, maxlevel=255},
|
|
|
|
dig_immediate={times={[1]=0.5, [2]=0.5, [3]=0.5}, maxlevel=255},
|
|
|
|
},
|
|
|
|
-- Modified damage due to the fact it is craftable
|
|
|
|
damage_groups = {fleshy=8},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
2021-01-21 16:03:14 -05:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "durapick:dev_pick 1",
|
|
|
|
recipe = {
|
|
|
|
"durapick:wood_pick",
|
|
|
|
"durapick:stone_pick",
|
|
|
|
"durapick:bronze_pick",
|
|
|
|
"durapick:steel_pick",
|
|
|
|
"durapick:mese_pick",
|
|
|
|
"durapick:diamond_pick",
|
|
|
|
},
|
|
|
|
})
|