forked from mtcontrib/3d_armor
90 lines
2.5 KiB
Lua
90 lines
2.5 KiB
Lua
|
|
-- Override moreores weapons (make them more powerful)
|
|
|
|
minetest.register_tool(":moreores:sword_mithril", {
|
|
description = "Mithril Sword",
|
|
inventory_image = "moreores_tool_mithrilsword.png",
|
|
tool_capabilities = {
|
|
full_punch_interval = 0.8,
|
|
max_drop_level=1,
|
|
groupcaps={
|
|
fleshy={times={[0]=0.65, [1]=0.50, [2]=0.40, [3]=0.30}, uses=50, maxlevel=3},
|
|
snappy={times={[2]=0.80, [3]=0.40}, uses=100, maxlevel=1},
|
|
choppy={times={[3]=0.90}, uses=50, maxlevel=0}
|
|
}
|
|
}
|
|
})
|
|
|
|
-- Regisiter Head Armor
|
|
|
|
minetest.register_tool("more_armor:helmet_mithril", {
|
|
description = "Mithril Helmet",
|
|
inventory_image = "more_armor_inv_helmet_mithril.png",
|
|
groups = {armor_head=15, armor_heal=15, armor_use=50},
|
|
wear = 0,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "more_armor:helmet_mithril",
|
|
recipe = {
|
|
{"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
|
|
{"moreores:mithril_ingot", "", "moreores:mithril_ingot"},
|
|
{"", "", ""},
|
|
},
|
|
})
|
|
|
|
-- Regisiter Torso Armor
|
|
|
|
minetest.register_tool("more_armor:chestplate_mithril", {
|
|
description = "Mithril Chestplate",
|
|
inventory_image = "more_armor_inv_chestplate_mithril.png",
|
|
groups = {armor_torso=25, armor_heal=15, armor_use=50},
|
|
wear = 0,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "more_armor:chestplate_mithril",
|
|
recipe = {
|
|
{"moreores:mithril_ingot", "", "moreores:mithril_ingot"},
|
|
{"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
|
|
{"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
|
|
},
|
|
})
|
|
|
|
-- Regisiter Leg Armor
|
|
|
|
minetest.register_tool("more_armor:leggings_mithril", {
|
|
description = "Mithril Leggings",
|
|
inventory_image = "more_armor_inv_leggings_mithril.png",
|
|
groups = {armor_legs=20, armor_heal=15, armor_use=50},
|
|
wear = 0,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "more_armor:leggings_mithril",
|
|
recipe = {
|
|
{"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
|
|
{"moreores:mithril_ingot", "", "moreores:mithril_ingot"},
|
|
{"moreores:mithril_ingot", "", "moreores:mithril_ingot"},
|
|
},
|
|
})
|
|
|
|
-- Regisiter Shields
|
|
|
|
minetest.register_tool("more_armor:shield_mithril", {
|
|
description = "Mithril Shield",
|
|
inventory_image = "more_armor_inv_shield_mithril.png",
|
|
groups = {armor_shield=25, armor_heal=15, armor_use=50},
|
|
wear = 0,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "more_armor:shield_mithril",
|
|
recipe = {
|
|
{"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
|
|
{"moreores:mithril_ingot", "moreores:mithril_ingot", "moreores:mithril_ingot"},
|
|
{"", "moreores:mithril_ingot", ""},
|
|
},
|
|
})
|
|
|