
local S = minetest.get_translator("chemistry")

--
-- Aluminium
--

minetest.register_tool("chemistry:aluminium_pick", {
	description = S("Aluminium Pickaxe"),
	inventory_image = "aluminium_pick.png",
	tool_capabilities = {
		full_punch_interval = 1.5,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=4.40, [2]=1.80, [3]=0.90}, uses=65, maxlevel=2},
		},
		damage_groups = {fleshy=5},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:aluminium_sword", {
	description = S("Aluminium Sword"),
	inventory_image = "aluminium_sword.png",
	tool_capabilities = {
		full_punch_interval = 0.8,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=2.6, [2]=1.30, [3]=0.45}, uses=65, maxlevel=2},
		},
		damage_groups = {fleshy=7},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:aluminium_shovel", {
	description = S("Aluminium Shovel"),
	inventory_image = "aluminium_shovel.png",
	tool_capabilities = {
		full_punch_interval = 1.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=1.60, [2]=0.90, [3]=0.50}, uses=65, maxlevel=2},
		},
		damage_groups = {fleshy=4},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:aluminium_axe", {
	description = S("Aluminium Axe"),
	inventory_image = "aluminium_axe.png",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=2.60, [2]=1.50, [3]=1.10}, uses=65, maxlevel=2},
		},
		damage_groups = {fleshy=6},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})
---
--- Steel-Manganese Alloy
---

minetest.register_tool("chemistry:steel_sword", {
	description = S("Steel-Manganese alloy Sword"),
	inventory_image = "default_tool_steelsword.png^[colorize:red:50",
	tool_capabilities = {
		full_punch_interval = 0.8,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=2.5, [2]=1.20, [3]=0.35}, uses=70, maxlevel=3},
		},
		damage_groups = {fleshy=8},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:steel_axe", {
	description = S("Steel-Manganese alloy Axe"),
	inventory_image = "default_tool_steelaxe.png^[colorize:red:50",
	tool_capabilities = {
		full_punch_interval = 1.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=2.25, [2]=1.20, [3]=0.75}, uses=70, maxlevel=3},
		},
		damage_groups = {fleshy=7},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

minetest.register_tool("chemistry:steel_shovel", {
	description = S("Steel-Manganese alloy Shovel"),
	inventory_image = "default_tool_steelshovel.png^[colorize:red:50",
	wield_image = "default_tool_steelshovel.png^[colorize:red:50",
	tool_capabilities = {
		full_punch_interval = 1.1,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=1.00, [2]=0.10, [3]=0.05}, uses=70, maxlevel=3},
		},
		damage_groups = {fleshy=5},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:steel_pick", {
	description = S("Steel-Manganese alloy Pickaxe"),
	inventory_image = "default_tool_steelpick.png^[colorize:red:50",
	tool_capabilities = {
		full_punch_interval = 1.0,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=3.70, [2]=1.40, [3]=0.65}, uses=70, maxlevel=3},
		},
		damage_groups = {fleshy=6},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

----
---- Titanium
----

minetest.register_tool("chemistry:titanium_sword", {
	description = S("Titanium Sword"),
	inventory_image = "default_tool_steelsword.png^[brighten:75",
	tool_capabilities = {
		full_punch_interval = 0.8,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=0.5, [2]=0.20, [3]=0.35}, uses=380, maxlevel=4},
		},
		damage_groups = {fleshy=9},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:titanium_pick", {
	description = S("Titanium Pickaxe"),
	inventory_image = "default_tool_steelpick.png^[brighten:75",
	tool_capabilities = {
		full_punch_interval = 1.5,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=1.70, [2]=0.80, [3]=0.45}, uses=180, maxlevel=4},
		},
		damage_groups = {fleshy=7},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:titanium_shovel", {
	description = S("Titanium Shovel"),
	inventory_image = "default_tool_steelshovel.png^[brighten:75",
	tool_capabilities = {
		full_punch_interval = 1.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=1.40, [2]=0.90, [3]=0.30}, uses=270, maxlevel=4},
		},
		damage_groups = {fleshy=6},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:titanium_axe", {
	description = S("Titanium Axe"),
	inventory_image = "default_tool_steelaxe.png^[brighten:75",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=1.30, [2]=1.00, [3]=0.90}, uses=200, maxlevel=4},
		},
		damage_groups = {fleshy=8},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

-----
----- Cobalt
-----

minetest.register_tool("chemistry:cobalt_sword", {
	description = S("Cobalt Sword"),
	inventory_image = "cobalt_sword.png",
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=0.5, [2]=0.40, [3]=0.35}, uses=680, maxlevel=5},
		},
		damage_groups = {fleshy=13},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:cobalt_pick", {
	description = S("Cobalt Pickaxe"),
	inventory_image = "cobalt_pick.png",
	tool_capabilities = {
		full_punch_interval = 1.9,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=1.60, [2]=0.70, [3]=0.50}, uses=200, maxlevel=5},
		},
		damage_groups = {fleshy=11},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:cobalt_shovel", {
	description = S("Cobalt Shovel"),
	inventory_image = "cobalt_shovel.png",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=1.50, [2]=0.90, [3]=0.05}, uses=270, maxlevel=5},
		},
		damage_groups = {fleshy=10},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:cobalt_axe", {
	description = S("Cobalt Axe"),
	inventory_image = "cobalt_axe.png",
	tool_capabilities = {
		full_punch_interval = 5.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=1.00, [2]=0.90, [3]=0.60}, uses=400, maxlevel=5},
		},
		damage_groups = {fleshy=12},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

------
------ Osmium
------

minetest.register_tool("chemistry:osmium_sword", {
	description = S("Osmium Sword"),
	inventory_image = "osmium_sword.png",
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=0.5, [2]=0.20, [3]=0.35}, uses=680, maxlevel=6},
		},
		damage_groups = {fleshy=17},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:osmium_pick", {
	description = S("Osmium Pickaxe"),
	inventory_image = "osmium_pick.png",
	tool_capabilities = {
		full_punch_interval = 1.9,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=1.60, [2]=0.60, [3]=0.45}, uses=400, maxlevel=6},
		},
		damage_groups = {fleshy=15},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:osmium_shovel", {
	description = S("Osmium Shovel"),
	inventory_image = "osmium_shovel.png",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=0.20, [2]=0.20, [3]=0.05}, uses=470, maxlevel=6},
		},
		damage_groups = {fleshy=14},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:osmium_axe", {
	description = S("Osmium Axe"),
	inventory_image = "osmium_axe.png",
	tool_capabilities = {
		full_punch_interval = 5.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=600, maxlevel=6},
		},
		damage_groups = {fleshy=16},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

-------
------- Tungsten
-------

minetest.register_tool("chemistry:tungsten_sword", {
	description = S("Tungsten Sword"),
	inventory_image = "tungsten_sword.png",
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=0.5, [2]=0.20, [3]=0.35}, uses=750, maxlevel=7},
		},
		damage_groups = {fleshy=22},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:tungsten_pick", {
	description = S("Tungsten Pickaxe"),
	inventory_image = "tungsten_pick.png",
	tool_capabilities = {
		full_punch_interval = 1.9,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=1.80, [2]=0.90, [3]=0.45}, uses=600, maxlevel=7},
		},
		damage_groups = {fleshy=20},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:tungsten_shovel", {
	description = S("Tungsten Shovel"),
	inventory_image = "tungsten_shovel.png",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=0.20, [2]=0.20, [3]=0.05}, uses=770, maxlevel=7},
		},
		damage_groups = {fleshy=19},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:tungsten_axe", {
	description = S("Tungsten Axe"),
	inventory_image = "tungsten_axe.png",
	tool_capabilities = {
		full_punch_interval = 5.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=1.20, [2]=0.60, [3]=0.30}, uses=800, maxlevel=7},
		},
		damage_groups = {fleshy=21},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

--------
-------- Strong Crystal
--------

minetest.register_tool("chemistry:crystal_sword", {
	description = S("Strong Crystal Sword"),
	inventory_image = "strong_crystal_sword.png",
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=0.25, [2]=0.10, [3]=0.15}, uses=1000, maxlevel=8},
		},
		damage_groups = {fleshy=27},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:crystal_pick", {
	description = S("Strong Crystal Pickaxe"),
	inventory_image = "strong_crystal_pick.png",
	tool_capabilities = {
		full_punch_interval = 1.9,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=1.40, [2]=0.45, [3]=0.35}, uses=1000, maxlevel=8},
		},
		damage_groups = {fleshy=25},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:crystal_shovel", {
	description = S("Strong Crystal Shovel"),
	inventory_image = "strong_crystal_shovel.png",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=0.10, [2]=0.10, [3]=0.05}, uses=1000, maxlevel=8},
		},
		damage_groups = {fleshy=24},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:crystal_axe", {
	description = S("Strong Crystal Axe"),
	inventory_image = "strong_crystal_axe.png",
	tool_capabilities = {
		full_punch_interval = 5.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=0.60, [2]=0.30, [3]=0.15}, uses=1000, maxlevel=8},
		},
		damage_groups = {fleshy=26},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

---------
--------- Stronger Stone (Strongest of all)
---------

minetest.register_tool("chemistry:stone_sword", {
	description = S("Stronger Stone Sword"),
	inventory_image = "strong_sword.png",
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level=1,
		groupcaps={
			snappy={times={[1]=0.25, [2]=0.10, [3]=0.15}, uses=1000, maxlevel=9},
		},
		damage_groups = {fleshy=32},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

minetest.register_tool("chemistry:stone_pick", {
	description = S("Stronger Stone Pickaxe"),
	inventory_image = "strong_pick.png",
	tool_capabilities = {
		full_punch_interval = 1.9,
		max_drop_level=1,
		groupcaps={
			cracky = {times={[1]=1.40, [2]=0.45, [3]=0.325}, uses=1000, maxlevel=9},
		},
		damage_groups = {fleshy=30},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:stone_shovel", {
	description = S("Stronger Stone Shovel"),
	inventory_image = "strong_shovel.png",
	tool_capabilities = {
		full_punch_interval = 2.0,
		max_drop_level=1,
		groupcaps={
			crumbly = {times={[1]=0.10, [2]=0.10, [3]=0.05}, uses=1000, maxlevel=9},
		},
		damage_groups = {fleshy=29},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:stone_axe", {
	description = S("Stronger Stone Axe"),
	inventory_image = "strong_axe.png",
	tool_capabilities = {
		full_punch_interval = 5.0,
		max_drop_level=1,
		groupcaps={
			choppy={times={[1]=0.60, [2]=0.30, [3]=0.15}, uses=1000, maxlevel=9},
		},
		damage_groups = {fleshy=31},
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

---
--- Crafting
---

minetest.register_craft({
	output = 'chemistry:aluminium_pick',
	recipe = {
		{'chemistry:aluminium', 'chemistry:aluminium', 'chemistry:aluminium'},
		{'', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:aluminium_axe',
	recipe = {
		{'chemistry:aluminium', 'chemistry:aluminium', ''},
		{'chemistry:aluminium', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:aluminium_shovel',
	recipe = {
		{'', 'chemistry:aluminium', ''},
		{'', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:aluminium_sword',
	recipe = {
		{'', 'chemistry:aluminium', ''},
		{'', 'chemistry:aluminium', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:steel_pick',
	recipe = {
		{'chemistry:steel_ingot', 'chemistry:steel_ingot', 'chemistry:steel_ingot'},
		{'', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:steel_axe',
	recipe = {
		{'chemistry:steel_ingot', 'chemistry:steel_ingot', ''},
		{'chemistry:steel_ingot', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:steel_shovel',
	recipe = {
		{'', 'chemistry:steel_ingot', ''},
		{'', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:steel_sword',
	recipe = {
		{'', 'chemistry:steel_ingot', ''},
		{'', 'chemistry:steel_ingot', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:titanium_pick',
	recipe = {
		{'chemistry:titanium', 'chemistry:titanium', 'chemistry:titanium'},
		{'', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:titanium_axe',
	recipe = {
		{'chemistry:titanium', 'chemistry:titanium', ''},
		{'chemistry:titanium', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:titanium_shovel',
	recipe = {
		{'', 'chemistry:titanium', ''},
		{'', 'group:stick', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:titanium_sword',
	recipe = {
		{'', 'chemistry:titanium', ''},
		{'', 'chemistry:titanium', ''},
		{'', 'group:stick', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:cobalt_pick',
	recipe = {
		{'chemistry:cobalt', 'chemistry:cobalt', 'chemistry:cobalt'},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:cobalt_axe',
	recipe = {
		{'chemistry:cobalt', 'chemistry:cobalt', ''},
		{'chemistry:cobalt', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:cobalt_shovel',
	recipe = {
		{'', 'chemistry:cobalt', ''},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:cobalt_sword',
	recipe = {
		{'', 'chemistry:cobalt', ''},
		{'', 'chemistry:cobalt', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:tungsten_pick',
	recipe = {
		{'chemistry:tungsten', 'chemistry:tungsten', 'chemistry:tungsten'},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:tungsten_axe',
	recipe = {
		{'chemistry:tungsten', 'chemistry:tungsten', ''},
		{'chemistry:tungsten', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:tungsten_shovel',
	recipe = {
		{'', 'chemistry:tungsten', ''},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:tungsten_sword',
	recipe = {
		{'', 'chemistry:tungsten', ''},
		{'', 'chemistry:tungsten', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:crystal_pick',
	recipe = {
		{'chemistry:crystal_shard', 'chemistry:crystal_shard', 'chemistry:crystal_shard'},
		{'', 'chemistry:diamond_handle', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:crystal_axe',
	recipe = {
		{'chemistry:crystal_shard', 'chemistry:crystal_shard', ''},
		{'chemistry:crystal_shard', 'chemistry:diamond_handle', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:crystal_shovel',
	recipe = {
		{'', 'chemistry:crystal_shard', ''},
		{'', 'chemistry:diamond_handle', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:crystal_sword',
	recipe = {
		{'', 'chemistry:crystal_shard', ''},
		{'', 'chemistry:crystal_shard', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:stone_pick',
	recipe = {
		{'chemistry:stone_ingot', 'chemistry:stone_ingot', 'chemistry:stone_ingot'},
		{'', 'chemistry:diamond_handle', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:stone_axe',
	recipe = {
		{'chemistry:stone_ingot', 'chemistry:stone_ingot', ''},
		{'chemistry:stone_ingot', 'chemistry:diamond_handle', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:stone_shovel',
	recipe = {
		{'', 'chemistry:stone_ingot', ''},
		{'', 'chemistry:diamond_handle', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:stone_sword',
	recipe = {
		{'', 'chemistry:stone_ingot', ''},
		{'', 'chemistry:stone_ingot', ''},
		{'', 'chemistry:diamond_handle', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:osmium_pick',
	recipe = {
		{'chemistry:osmium', 'chemistry:osmium', 'chemistry:osmium'},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:osmium_axe',
	recipe = {
		{'chemistry:osmium', 'chemistry:osmium', ''},
		{'chemistry:osmium', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:osmium_shovel',
	recipe = {
		{'', 'chemistry:osmium', ''},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:osmium_sword',
	recipe = {
		{'', 'chemistry:osmium', ''},
		{'', 'chemistry:osmium', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

if minetest.get_modpath("uraniumstuff") then
-----
----- Radioactive
-----

--- 
--- Radium
---

minetest.register_tool("chemistry:radium_pick", {
	description = S("Radium Pickaxe"),
	inventory_image = "radium_pick.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 1.5,
		max_drop_level = 3,
		groupcaps = {
			cracky = {times = {[1] = 2.05, [2] = 0.95, [3] = 0.65}, uses = 280, maxlevel = 3},
		},
		damage_groups = {fleshy = 10, radioactive = 10},
        radioactive = 4,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:radium_shovel", {
    description = S("Radium Shovel"),
    inventory_image = "radium_shovel.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level = 3,
		groupcaps = {
			crumbly = {times = {[1] = 0.50, [2] = 0.25, [3] = 0.10}, uses = 280, maxlevel = 3},
		},
		damage_groups = {fleshy = 9, radioactive = 10},
        radioactive = 4,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:radium_axe", {
    description = S("Radium Axe"),
    inventory_image = "radium_axe.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 2,
		max_drop_level = 3,
		groupcaps = {
			choppy = {times = {[1] = 1.65, [2] = 0.35, [3] = 0.35}, uses = 300, maxlevel = 3},
			fleshy = {times = {[2] = 0.85, [3] = 0.20}, uses = 300, maxlevel = 3},
		},
		damage_groups = {fleshy = 11, radioactive = 10},
        radioactive = 4,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

minetest.register_tool("chemistry:radium_sword", {
    description = S("Radium Sword"),
    inventory_image = "radium_sword.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 0.7,
		max_drop_level = 3,
		groupcaps = {
			fleshy = {times = {[2] = 0.55, [3] = 0.15}, uses = 300, maxlevel = 3},
			snappy = {times = {[1] = 1.60, [2] = 0.60, [3] = 0.15}, uses = 300, maxlevel = 3},
		},
		damage_groups = {fleshy = 12, radioactive = 10},
        radioactive = 4,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

----
---- Americium
----

minetest.register_tool("chemistry:americium_pick", {
	description = S("Americium Pickaxe"),
	inventory_image = "americium_pick.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 1.5,
		max_drop_level = 3,
		groupcaps = {
			cracky = {times = {[1] = 1.85, [2] = 0.95, [3] = 0.55}, uses = 280, maxlevel = 4},
		},
		damage_groups = {fleshy = 12, radioactive = 7},
        radioactive = 2,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {pickaxe = 1}
})

minetest.register_tool("chemistry:americium_shovel", {
    description = S("Americium Shovel"),
    inventory_image = "americium_shovel.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 1,
		max_drop_level = 3,
		groupcaps = {
			crumbly = {times = {[1] = 0.50, [2] = 0.25, [3] = 0.10}, uses = 280, maxlevel = 4},
		},
		damage_groups = {fleshy = 11, radioactive = 7},
        radioactive = 2,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {shovel = 1}
})

minetest.register_tool("chemistry:americium_axe", {
    description = S("Americium Axe"),
    inventory_image = "americium_axe.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 2,
		max_drop_level = 3,
		groupcaps = {
			choppy = {times = {[1] = 1.65, [2] = 0.35, [3] = 0.35}, uses = 300, maxlevel = 4},
			fleshy = {times = {[2] = 0.85, [3] = 0.20}, uses = 300, maxlevel = 4},
		},
		damage_groups = {fleshy = 13, radioactive = 7},
        radioactive = 2,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {axe = 1}
})

minetest.register_tool("chemistry:americium_sword", {
    description = S("Americium Sword"),
    inventory_image = "americium_sword.png",
    light_source = 5,
	tool_capabilities = {
		full_punch_interval = 0.7,
		max_drop_level = 3,
		groupcaps = {
			fleshy = {times = {[2] = 0.55, [3] = 0.15}, uses = 300, maxlevel = 4},
			snappy = {times = {[1] = 1.60, [2] = 0.60, [3] = 0.15}, uses = 300, maxlevel = 4},
		},
		damage_groups = {fleshy = 14, radioactive = 7},
        radioactive = 2,
	},
	sound = {breaks = "default_tool_breaks"},
	groups = {sword = 1}
})

---
--- Crafting
---

minetest.register_craft({
	output = 'chemistry:radium_pick',
	recipe = {
		{'chemistry:radium', 'chemistry:radium', 'chemistry:radium'},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:radium_axe',
	recipe = {
		{'chemistry:radium', 'chemistry:radium', ''},
		{'chemistry:radium', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:radium_shovel',
	recipe = {
		{'', 'chemistry:radium', ''},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:radium_sword',
	recipe = {
		{'', 'chemistry:radium', ''},
		{'', 'chemistry:radium', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:americium_pick',
	recipe = {
		{'chemistry:americium', 'chemistry:americium', 'chemistry:americium'},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:americium_axe',
	recipe = {
		{'chemistry:americium', 'chemistry:americium', ''},
		{'chemistry:americium', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:americium_shovel',
	recipe = {
		{'', 'chemistry:americium', ''},
		{'', 'basic_materials:steel_bar', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

minetest.register_craft({
	output = 'chemistry:americium_sword',
	recipe = {
		{'', 'chemistry:americium', ''},
		{'', 'chemistry:americium', ''},
		{'', 'basic_materials:steel_bar', ''},
	}
})

end

---
--- Other
---

minetest.register_craftitem("chemistry:diamond_handle", {
	description = S("Diamond Handle"),
	inventory_image = "diamond_handle.png",
})

minetest.register_craft({
	output = 'chemistry:diamond_handle 3',
	recipe = {
		{'', '', 'default:diamond'},
		{'', 'default:diamond', ''},
		{'default:diamond', '', ''},
	}
})
