1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-19 03:00:22 +02:00
server-nalc/mods/3d_armor_classes/black_mithril_plated_armor_warrior/init.lua
Ombridride 830a7924c9 Begin the 'Black Mithril Plated Armor' for Warriors and
Add the 'automappercolors' mod wich is the base of the colors.txt auto-generated
update the 'world.mt' file for activated this mod
---
Remove the dumpnodes mod wich is now useless
2015-07-20 21:53:25 +02:00

41 lines
1.6 KiB
Lua
Executable File

if ARMOR_MATERIALS.black_mithril then
-- Register helmets :
minetest.register_tool(":3d_armor:helmet_black_mithril_plated_armor_warrior", {
description = "Warrior's Black Mithril Plated Helmet",
inventory_image = "3d_armor_inv_helmet_black_mithril_plated_armor_warrior.png",
groups = {armor_head = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register chestplates :
minetest.register_tool(":3d_armor:chestplate_black_mithril_plated_armor_warrior", {
description = "Warrior's Black Mithril Plated Chestplate",
inventory_image = "3d_armor_inv_chestplate_black_mithril_plated_warrior.png",
groups = {armor_torso = 8, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register leggings :
minetest.register_tool(":3d_armor:leggings_black_mithril_plated_armor_warrior", {
description = "Warrior's Black Mithril Plated Leggings",
inventory_image = "3d_armor_inv_leggings_black_mithril_plated_armor_warrior.png",
groups = {armor_legs = 8, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register boots :
minetest.register_tool(":3d_armor:boots_black_mithril_plated_armor_warrior", {
description = "Warrior's Black Mithril Plated Boots",
inventory_image = "3d_armor_inv_boots_black_mithril_plated_armor_warrior.png",
groups = {armor_feet = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
end
-- Black Mithril craft recipe
minetest.register_craft({
output = "3d_armor:black_mithril",
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" },
}
})