add drills back to create branch

master
KaylebJay 2019-09-05 12:23:49 -06:00 committed by GitHub
parent 7b8e3ad1b2
commit 19fecfc502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 0 deletions

View File

@ -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, {