if not minetest.get_modpath("3d_armor") and drain_hunger then
    minetest.log("error", "[leather_armor] 3d_armor mod was not found, please reinstall package to fix this issue or report at https://content.minetest.net/packages/hilol/epic_combat/ . ")
end

armor:register_armor("leather_armor:boots_leather", {
	description = "Leather Boots",
	inventory_image = "leather_armor",
	groups = {armor_feet=1, armor_heal=0, armor_use=500, armor_fire=0},
	armor_groups = {fleshy=5},
	damage_groups = {cracky=2, fleshy=-0.5, snappy=1, level=3},
})


armor:register_armor("leather_armor:tunic_leather", {
	description = "Leather Tunic",
	inventory_image = "leather_armor",
	groups = {armor_torso=1, armor_heal=0, armor_use=500, armor_fire=0},
	armor_groups = {fleshy=10},
	damage_groups = {cracky=2, fleshy=-0.5, snappy=1, level=3},
})


armor:register_armor("leather_armor:cap_leather", {
	description = "Leather Cap",
	inventory_image = "leather_armor",
	groups = {armor_head=1, armor_heal=0, armor_use=500, armor_fire=0},
	armor_groups = {fleshy=5},
	damage_groups = {cracky=2, fleshy=-0.5, snappy=1, level=3},
})


armor:register_armor("leather_armor:leggings_leather", {
	description = "Leather Leggings",
	inventory_image = "leather_armor.png",
	groups = {armor_legs=1, armor_heal=0, armor_use=500, armor_fire=0},
	armor_groups = {fleshy=10},
	damage_groups = {cracky=2, fleshy=-0.5, snappy=1, level=3},
})

minetest.register_craft({
	output = "leather_armor:cap_leather",
	recipe = {
		{"mobs:leather", "mobs:leather", "mobs:leather"},
		{"mobs:leather", "", "mobs:leather"},
		{"", "", ""},
	},
})
minetest.register_craft({
	output = "leather_armor:tunic_leather",
	recipe = {
		{"mobs:leather", "", "mobs:leather"},
		{"mobs:leather", "mobs:leather", "mobs:leather"},
		{"mobs:leather", "mobs:leather", "mobs:leather"},
	},
})
minetest.register_craft({
	output = "leather_armor:leggings_leather",
	recipe = {
		{"mobs:leather", "mobs:leather", "mobs:leather"},
		{"mobs:leather", "", "mobs:leather"},
		{"mobs:leather", "", "mobs:leather"},
	},
})
minetest.register_craft({
	output = "leather_armor:boots_leather",
	recipe = {
		{"mobs:leather", "", "mobs:leather"},
		{"mobs:leather", "", "mobs:leather"},
	},
})



