minetest.register_item(":", {
	type = "none",
	wield_image = "wieldhand.png",
	wield_scale = {x=1,y=1,z=2.5},
	tool_capabilities = {
		full_punch_interval = 0.9,
		max_drop_level = 0,
		groupcaps = {
			axey = {times={[1]=1.70,[2]=2.50,[3]=3.80}, uses=0, maxlevel=1},
			spady = {times={[1]=0.80,[2]=1.50,[3]=2.00}, uses=0, maxlevel=1},
			snappy = {times={[1]=0.20,[2]=0.50,[3]=1.70}, uses=0, maxlevel=1},
			handy = {times={[1]=0.20,[2]=0.50,[3]=1.70}, uses=0}
		},
		damage_groups = {fleshy=1},
	}
})

minetest.register_tool("tools:pick_diamond", {
	description = "Diamond Pickaxe",
	inventory_image = "default_pick_diamond.png",
	tool_capabilities = {
		full_punch_interval = 0.4,
		max_drop_level=3,
		groupcaps={
			picky = {times={[1]=0.10, [2]=0.50, [3]=1.20, [4]=1.50, [5]=1.80, [6]=2.60, [7]=3.20, [8]=3.50, [9]=4.20, [10]=5.50, [11]=20.50}, uses=3000, maxlevel=7},
		},
		damage_groups = {fleshy=5},
	},
	groups = {pickaxe = 1}
})

minetest.register_tool("tools:pick_stone_oxid", {
	description = "Oxidized Stone Pickaxe",
	inventory_image = "default_pick_stone_oxid.png",
	tool_capabilities = {
		full_punch_interval = 0.8,
		max_drop_level=3,
		groupcaps={
			picky = {times={[1]=1.50, [2]=2.00, [3]=2.80, [4]=3.50,}, uses=256, maxlevel=2},
		},
		damage_groups = {fleshy=5},
	},
	groups = {pickaxe = 1}
})

minetest.register_craft({
	type = "shaped",
	output = "tools:pick_stone_oxid",
	recipe = {
			{"group:little_oxidized_stone",  "group:little_oxidized_stone",  "group:little_oxidized_stone",},
			{"",  "group:sticks",  "",},
			{"",  "group:sticks",  "",},
	}
})

minetest.register_tool("tools:pick_titanium", {
	description = "Titanium Pickaxe",
	inventory_image = "default_pick_titanium.png",
	tool_capabilities = {
		full_punch_interval = 0.5,
		max_drop_level=3,
		groupcaps={
			picky = {times={[1]=1.00, [2]=1.50, [3]=2.00, [4]=3.00, [5]=3.50, [6]=7.00}, uses=8192, maxlevel=2},
		},
		damage_groups = {fleshy=5},
	},
	groups = {pickaxe = 1}
})

minetest.register_craft({
	type = "shaped",
	output = "tools:pick_titanium",
	recipe = {
			{"default:titanium_lump",  "default:titanium_lump",  "default:titanium_lump",},
			{"",  "group:sticks",  "",},
			{"",  "group:sticks",  "",},
	}
})

function register_topas_tools(def)
	minetest.register_tool("tools:" .. def.pickname, {
		description = def.pickdescription,
		inventory_image = def.pickimage,
		tool_capabilities = {
			full_punch_interval = 0.5,
			max_drop_level=3,
			groupcaps={
				picky = {times={[1]=0.30, [2]=0.90, [3]=1.50, [4]=1.90, [5]=2.80, [6]=3.30, [7]=3.90, [8]=4.50, [9]=17.20}, uses=1000, maxlevel=7},
			},
			damage_groups = {fleshy=5},
		},
		groups = {pickaxe = 1, topas_pick = 1}
	})

	minetest.register_craft({
	    type = "shaped",
	    output = "tools:" .. def.pickname,
	    recipe = {
	        {def.topasname,  def.topasname,  def.topasname,},
					{"",  "group:sticks",  "",},
					{"",  "group:sticks",  "",},
	    }
	})
end

register_topas_tools({
	pickname = "pick_topas",
	pickdescription = "Topas Pickaxe",
	pickimage = "default_pick_topas.png",
	topasname = "default:topas",
})

register_topas_tools({
	pickname = "pick_topas_blue",
	pickdescription = "Topas Pickaxe Blue",
	pickimage = "default_pick_topas_blue.png",
	topasname = "default:blue_topas",
})

register_topas_tools({
	pickname = "pick_topas_red",
	pickdescription = "Topas Pickaxe Red",
	pickimage = "default_pick_topas_red.png",
	topasname = "default:red_topas",
})

register_topas_tools({
	pickname = "pick_topas_yellow",
	pickdescription = "Topas Pickaxe Yellow",
	pickimage = "default_pick_topas_yellow.png",
	topasname = "default:yellow_topas",
})
