-- CONTENTS
-- Dalekanium Tools - definitions and crafting


-- DALEKANIUM (dalek) TOOLS

-- Pickaxe
minetest.register_tool("drwho_tardis:pick_dalek", {
	description = "Dalekanium Pickaxe",
	inventory_image = "dalek_pick.png",
	tool_capabilities = {
		full_punch_interval = 0.5,
		max_drop_level=3,
		groupcaps={
			cracky = {times={[1]=1.0, [2]=0.5, [3]=0.25}, uses=60, maxlevel=3},
			azbantium = {times={[1]=25}, uses=30, maxlevel=3},
		},
		damage_groups = {fleshy=5},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})
minetest.register_craft({
    output = "drwho_tardis:pick_dalek",
    recipe = {
        {"drwho_tardis:dalekanium_ingot", "drwho_tardis:dalekanium_ingot", "drwho_tardis:dalekanium_ingot"},
        {"", "default:stick", ""},
        {"", "default:stick", ""}
    }
})

-- Shovel
minetest.register_tool("drwho_tardis:shovel_dalek", {
	description = "Dalekanium Shovel",
	inventory_image = "dalek_shovel.png",
	tool_capabilities = {
		full_punch_interval = 0.5,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=0.9, [2]=0.25, [3]=0.15}, uses=60, maxlevel=3},
		},
		damage_groups = {fleshy=4},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})
minetest.register_craft({
    output = "drwho_tardis:shovel_dalek",
    recipe = {
        {"drwho_tardis:dalekanium_ingot"},
        {"default:stick"},
        {"default:stick"}
    }
})

-- Axe
minetest.register_tool("drwho_tardis:axe_dalek", {
	description = "Dalekanium Axe",
	inventory_image = "dalek_axe.png",
	tool_capabilities = {
		full_punch_interval = 0.45,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=30, maxlevel=3},
		},
		damage_groups = {fleshy=7},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})
minetest.register_craft({
    output = "drwho_tardis:axe_dalek",
    recipe = {
        {"drwho_tardis:dalekanium_ingot", "drwho_tardis:dalekanium_ingot", ""},
        {"drwho_tardis:dalekanium_ingot", "default:stick", ""},
        {"", "default:stick", ""}
    }
})

-- Sword
minetest.register_tool("drwho_tardis:sword_dalek", {
	description = "Dalekanium Sword",
	inventory_image = "dalek_sword.png",
	tool_capabilities = {
		full_punch_interval = 0.5,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=1, [2]=0.90, [3]=0.30}, uses=65, maxlevel=3},
		},
		damage_groups = {fleshy=10},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})
minetest.register_craft({
    output = "drwho_tardis:sword_dalek",
    recipe = {
        {"drwho_tardis:dalekanium_ingot"},
        {"drwho_tardis:dalekanium_ingot"},
        {"default:stick"}
    }
})