1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 14:16:06 +02:00

Make all armors respect naming convention

This commit is contained in:
LeMagnesium
2015-07-25 15:54:26 +02:00
parent 96cc41f512
commit 1913804abd
52 changed files with 29 additions and 29 deletions

View File

@ -0,0 +1,2 @@
default
3d_armor

View File

@ -0,0 +1,40 @@
if ARMOR_MATERIALS.black_mithril then
-- Register helmets :
minetest.register_tool(":3d_armor:helmet_blackmithril", {
description = "Black Mithril Helmet",
inventory_image = "3d_armor_inv_helmet_blackmithril.png",
groups = {armor_head = 11, armor_heal = 1, armor_use = 40},
wear = 0,
})
-- Register chestplates :
minetest.register_tool(":3d_armor:chestplate_blackmithril", {
description = "Black Mithril Chestplate",
inventory_image = "3d_armor_inv_chestplate_blackmithril.png",
groups = {armor_torso = 17, armor_heal = 1, armor_use = 40},
wear = 0,
})
-- Register leggings :
minetest.register_tool(":3d_armor:leggings_blackmithril", {
description = "Black Mithril Leggings",
inventory_image = "3d_armor_inv_leggings_blackmithril.png",
groups = {armor_legs = 17, armor_heal = 1, armor_use = 40},
wear = 0,
})
-- Register boots :
minetest.register_tool(":3d_armor:boots_blackmithril", {
description = "Black Mithril Boots",
inventory_image = "3d_armor_inv_boots_blackmithril.png",
groups = {armor_feet = 11, armor_heal = 1, armor_use = 40},
wear = 0,
})
end
-- Black Mithril craft recipe
minetest.register_craft({
output = "3d_armor:blackmithril",
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" },
}
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB