2015-07-27 19:12:32 +02:00
|
|
|
if ARMOR_MATERIALS.blackmithril then
|
2015-07-20 21:53:25 +02:00
|
|
|
-- Register helmets :
|
2015-07-24 13:31:21 +02:00
|
|
|
minetest.register_tool(":3d_armor:helmet_blackmithril", {
|
2015-07-25 15:54:26 +02:00
|
|
|
description = "Black Mithril Helmet",
|
|
|
|
inventory_image = "3d_armor_inv_helmet_blackmithril.png",
|
2015-07-27 20:37:36 +02:00
|
|
|
groups = {armor_head = 11, armor_heal = 0, armor_use = 40},
|
2015-07-20 21:53:25 +02:00
|
|
|
wear = 0,
|
|
|
|
})
|
|
|
|
-- Register chestplates :
|
2015-07-24 13:31:21 +02:00
|
|
|
minetest.register_tool(":3d_armor:chestplate_blackmithril", {
|
2015-07-25 15:54:26 +02:00
|
|
|
description = "Black Mithril Chestplate",
|
|
|
|
inventory_image = "3d_armor_inv_chestplate_blackmithril.png",
|
2015-07-27 20:37:36 +02:00
|
|
|
groups = {armor_torso = 17, armor_heal = 0, armor_use = 40},
|
2015-07-20 21:53:25 +02:00
|
|
|
wear = 0,
|
|
|
|
})
|
|
|
|
-- Register leggings :
|
2015-07-24 13:31:21 +02:00
|
|
|
minetest.register_tool(":3d_armor:leggings_blackmithril", {
|
2015-07-25 15:54:26 +02:00
|
|
|
description = "Black Mithril Leggings",
|
|
|
|
inventory_image = "3d_armor_inv_leggings_blackmithril.png",
|
2015-07-27 20:37:36 +02:00
|
|
|
groups = {armor_legs = 17, armor_heal = 0, armor_use = 40},
|
2015-07-20 21:53:25 +02:00
|
|
|
wear = 0,
|
|
|
|
})
|
|
|
|
-- Register boots :
|
2015-07-24 13:31:21 +02:00
|
|
|
minetest.register_tool(":3d_armor:boots_blackmithril", {
|
2015-07-25 15:54:26 +02:00
|
|
|
description = "Black Mithril Boots",
|
|
|
|
inventory_image = "3d_armor_inv_boots_blackmithril.png",
|
2015-07-27 20:37:36 +02:00
|
|
|
groups = {armor_feet = 11, armor_heal = 0, armor_use = 40},
|
2015-07-20 21:53:25 +02:00
|
|
|
wear = 0,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Black Mithril craft recipe
|
|
|
|
minetest.register_craft({
|
2015-07-25 15:54:26 +02:00
|
|
|
output = "3d_armor:blackmithril",
|
2015-07-20 21:53:25 +02:00
|
|
|
recipe = {
|
|
|
|
{"nether:white", "mobs:dungeon_master_blood", "default:obsidian" },
|
|
|
|
{"default:mithril_ingot", "mobs:dungeon_master_diamond", "default:mithril_ingot" },
|
|
|
|
{"default:obsidian", "mobs:dungeon_master_blood", "nether:white" },
|
|
|
|
}
|
|
|
|
})
|