add drills back to create branch
parent
7b8e3ad1b2
commit
19fecfc502
|
@ -367,6 +367,28 @@ local function register_all(name, def)
|
|||
}
|
||||
})
|
||||
end
|
||||
|
||||
if def.drill then
|
||||
minetest.register_tool("xtraores:drill_"..name, {
|
||||
description = xtraores.upper(name).." Drill",
|
||||
inventory_image = "xtraores_drill_"..name..".png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.001,
|
||||
max_drop_level=3,
|
||||
groupcaps=def.drill[1],
|
||||
damage_groups = {fleshy=def.drill[2]},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "xtraores:drill_"..name,
|
||||
recipe = {
|
||||
{"xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot", "xtraores:"..name.."_ingot"},
|
||||
{"", "xtraores:"..name.."_ingot", ""},
|
||||
{"", "default:diamond", ""},
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
if def.sword then
|
||||
minetest.register_tool("xtraores:sword_"..name, {
|
||||
|
|
Loading…
Reference in New Issue