armor:register_armor('epic:crown', {
   description = 'Admin Crown',
   inventory_image = 'epic_crown_inv.png',
   groups = {armor_head=1, armor_use=0, armor_fire=5, armor_block=100, armor_water=5, physics_jump=0.5, physics_speed=1.3, armor_heal = 20, not_in_creative_inventory=1},
   armor_groups = {fleshy=100},
   damage_groups = {cracky=2, snappy=1, level=3},
   on_drop = function(itemstack, dropper, pos)
      return
   end,
})

armor:register_armor('epic:cap_deception', {
   description = 'Fur Cap of Deception',
   inventory_image = 'epic_cap_deception_inv.png',
   groups = {armor_head=1, armor_use=300, armor_block=1, physics_jump=-0.12, physics_speed=-.1, armor_heal = 2, not_in_creative_inventory=1},
   armor_groups = {fleshy=25},
   damage_groups = {cracky=2, snappy=1, level=3},
})

--[[default groups:
Elements: armor_head, armor_torso, armor_legs, armor_feet
Attributes: armor_heal, armor_fire, armor_water, armor_block
Armor_heal actively heals the wearer. Max HP is 50.
Armor_fire protects against fire and lava.
Armor_water allows for breathing underwater.
Armor_block determins if an attack with deal damage.
Physics: physics_jump, physics_speed, physics_gravity
Durability: armor_use, flammable

{'epic:float_crystal', 'gravity'},
{'epic:bloodstone', 'healing'},
{'epic:huntite', 'fire'},
{'ocean:prismarine_crystals', 'water'},
{'epic:garnet', 'speed'},
{'quartz:quartz_crystal_piece', 'jump'}

Armor Stats Shields can improve these values.
wood
Level 27, block 6%
steel
Level 37.8, block 24%
Bronze
Level 45, block 36%
Gold
Level 48.6, block 44%
Diamond
Level 63, block 60%
Diamond Enchanted
Level 66.6, block 68%
Titanium
Level 21.6, block 80%
--]]

--Actinolite armor provides lower gravity.
armor:register_armor('epic:helmet_gravity', {
   _doc_items_crafting = 'This tool is crafted in the Crystal Workshop.',
   description = 'Diamond helmet with Actinolite enchantment',
   inventory_image = 'epic_helmet_inv.png^epic_gravity_overlay.png',
   groups = {armor_head=1, armor_block=17, armor_use=190, physics_gravity=-.15},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, choppy=1, level=4},
})

armor:register_armor('epic:chestplate_gravity', {
   description = 'Diamond chestplate with Actinolite enchantment',
   inventory_image = 'epic_chestplate_inv.png^epic_gravity_overlay.png',
   groups = {armor_torso=1, armor_block=17, armor_use=190, physics_gravity=-.2},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:leggings_gravity', {
   description = 'Diamond leggings with Actinolite enchantment',
   inventory_image = 'epic_leggings_inv.png^epic_gravity_overlay.png',
   groups = {armor_legs=1, armor_block=17, armor_use=190, physics_gravity=-.2},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:boots_gravity', {
   description = 'Diamond boots with Actinolite enchantment',
   inventory_image = 'epic_boots_inv.png^epic_gravity_overlay.png',
   groups = {armor_feet=1, armor_block=17, armor_use=190, physics_gravity=-.15},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

--Bloodstone armor provides healing.
armor:register_armor('epic:helmet_healing', {
   description = 'Diamond helmet with Bloodstone enchantment',
   inventory_image = 'epic_helmet_inv.png^epic_healing_overlay.png',
   groups = {armor_head=1, armor_block=17, armor_use=190, armor_heal=1},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:chestplate_healing', {
   description = 'Diamond chestplate with Bloodstone enchantment',
   inventory_image = 'epic_chestplate_inv.png^epic_healing_overlay.png',
   groups = {armor_torso=1, armor_block=17, armor_use=190, armor_heal=1},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:leggings_healing', {
   description = 'Diamond leggings with Bloodstone enchantment',
   inventory_image = 'epic_leggings_inv.png^epic_healing_overlay.png',
   groups = {armor_legs=1, armor_block=17, armor_use=190, armor_heal=1},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:boots_healing', {
   description = 'Diamond boots with Bloodstone enchantment',
   inventory_image = 'epic_boots_inv.png^epic_healing_overlay.png',
   groups = {armor_feet=1, armor_block=17, armor_use=190, armor_heal=1},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

--huntite armor provides fire protection.
armor:register_armor('epic:helmet_fire', {
   description = 'Diamond helmet with Huntite enchantment',
   inventory_image = 'epic_helmet_inv.png^epic_fire_overlay.png',
   groups = {armor_head=1, armor_block=17, armor_use=380, armor_fire=1, flammable=1},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:chestplate_fire', {
   description = 'Diamond chestplate with Huntite enchantment',
   inventory_image = 'epic_chestplate_inv.png^epic_fire_overlay.png',
   groups = {armor_torso=1, armor_block=17, armor_use=190, armor_fire=2, flammable=1},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:leggings_fire', {
   description = 'Diamond leggings with Huntite enchantment',
   inventory_image = 'epic_leggings_inv.png^epic_fire_overlay.png',
   groups = {armor_legs=1, armor_block=17, armor_use=190, armor_fire=2, flammable=1},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:boots_fire', {
   description = 'Diamond boots with Huntite enchantment',
   inventory_image = 'epic_boots_inv.png^epic_fire_overlay.png',
   groups = {armor_feet=1, armor_block=17, armor_use=380, armor_fire=1, flammable=11},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

--prismarine crystals armor provides underwater breathing.
armor:register_armor('epic:helmet_water', {
   description = 'Diamond helmet with Prismarine enchantment',
   inventory_image = 'epic_helmet_inv.png^epic_water_overlay.png',
   groups = {armor_head=1, armor_block=17, armor_use=190, armor_water=1},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:chestplate_water', {
   description = 'Diamond chestplate with Prismarine enchantment',
   inventory_image = 'epic_chestplate_inv.png^epic_water_overlay.png',
   groups = {armor_torso=1, armor_block=17, armor_use=190, armor_water=1},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:leggings_water', {
   description = 'Diamond leggings with Prismarine enchantment',
   inventory_image = 'epic_leggings_inv.png^epic_water_overlay.png',
   groups = {armor_legs=1, armor_block=17, armor_use=190, armor_water=1},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:boots_water', {
   description = 'Diamond boots with Prismarine enchantment',
   inventory_image = 'epic_boots_inv.png^epic_water_overlay.png',
   groups = {armor_feet=1, armor_block=17, armor_use=190, armor_water=1},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

--Garnet crystals armor provides speed.
armor:register_armor('epic:helmet_speed', {
   description = 'Diamond helmet with Garnet enchantment',
   inventory_image = 'epic_helmet_inv.png^epic_speed_overlay.png',
   groups = {armor_head=1, armor_block=17, armor_use=190, physics_speed=.2},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:chestplate_speed', {
   description = 'Diamond chestplate with Garnet enchantment',
   inventory_image = 'epic_chestplate_inv.png^epic_speed_overlay.png',
   groups = {armor_torso=1, armor_block=17, armor_use=190, physics_speed=.4},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:leggings_speed', {
   description = 'Diamond leggings with Garnet enchantment',
   inventory_image = 'epic_leggings_inv.png^epic_speed_overlay.png',
   groups = {armor_legs=1, armor_block=17, armor_use=190, physics_speed=.4},
   armor_groups = {fleshy=21},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:boots_speed', {
   description = 'Diamond boots with Garnet enchantment',
   inventory_image = 'epic_boots_inv.png^epic_speed_overlay.png',
   groups = {armor_feet=1, armor_block=17, armor_use=190, physics_speed=.2},
   armor_groups = {fleshy=16},
   damage_groups = {cracky=2, snappy=1, level=4},
})

--Titanium, very light, high block chance, but low damge absorbtion.
armor:register_armor('epic:helmet_titanium', {
   description = 'Titanium helmet',
   inventory_image = 'epic_helmet_titanium_inv.png',
   groups = {armor_head=1, armor_block=15, armor_use=180, physics_speed=.15, physics_jump=0.1},
   armor_groups = {fleshy=4},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:chestplate_titanium', {
   description = 'Titanium chestplate',
   inventory_image = 'epic_chestplate_titanium_inv.png',
   groups = {armor_torso=1, armor_block=25, armor_use=180, physics_speed=.25, physics_jump=0.1},
   armor_groups = {fleshy=8},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:leggings_titanium', {
   description = 'Titanium leggings',
   inventory_image = 'epic_leggings_titanium_inv.png',
   groups = {armor_legs=1, armor_block=25, armor_use=180, physics_speed=.25, physics_jump=0.1},
   armor_groups = {fleshy=8},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:boots_titanium', {
   description = 'Titanium boots',
   inventory_image = 'epic_boots_titanium_inv.png',
   groups = {armor_feet=1, armor_block=15, armor_use=180, physics_speed=.15, physics_jump=0.1},
   armor_groups = {fleshy=4},
   damage_groups = {cracky=2, snappy=1, level=4},
})

armor:register_armor('epic:shield_titanium', {
   description = 'Titanium shield',
   inventory_image = 'epic_inv_shield_titanium.png',
   groups = {armor_shield=1, armor_block=15, armor_use=180},
   armor_groups = {fleshy=10},
   damage_groups = {cracky=2, snappy=3, choppy=2, crumbly=1, level=2},
})
