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-29 19:18:10 +02:00
|
|
|
description = "Black Mithril Helmet (Warrior)",
|
2015-07-25 15:54:26 +02:00
|
|
|
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-29 19:18:10 +02:00
|
|
|
description = "Black Mithril Chestplate (Warrior)",
|
2015-07-25 15:54:26 +02:00
|
|
|
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-29 19:18:10 +02:00
|
|
|
description = "Black Mithril Leggings (Warrior)",
|
2015-07-25 15:54:26 +02:00
|
|
|
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-29 19:18:10 +02:00
|
|
|
description = "Black Mithril Boots (Warrior)",
|
2015-07-25 15:54:26 +02:00
|
|
|
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
|
|
|
|
|
2015-07-31 19:29:06 +02:00
|
|
|
minetest.register_craftitem(":3d_armor:blackmithril_ingot", {
|
|
|
|
description = "Black Mithril Ingot",
|
|
|
|
inventory_image = "3d_armor_blackmithril_ingot.png",
|
|
|
|
stack_max = 99,
|
|
|
|
})
|
|
|
|
|
2015-07-20 21:53:25 +02:00
|
|
|
-- Black Mithril craft recipe
|
|
|
|
minetest.register_craft({
|
2015-07-31 19:29:06 +02:00
|
|
|
output = "3d_armor:blackmithril_ingot",
|
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" },
|
|
|
|
}
|
|
|
|
})
|