1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-18 16:20:38 +01:00
server-nalc/mods/3d_armor_classes/hardenedleather/init.lua

47 lines
1.6 KiB
Lua
Raw Normal View History

if ARMOR_MATERIALS.hardenedleather then
-- Register helmets :
minetest.register_tool(":3d_armor:helmet_hardenedleather", {
description = "Hardened Leather Helmet (Hunter)",
inventory_image = "3d_armor_inv_helmet_hardenedleather.png",
groups = {armor_head = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register chestplates :
minetest.register_tool(":3d_armor:chestplate_hardenedleather", {
description = "Hardened Leather Chestplate (Hunter)",
inventory_image = "3d_armor_inv_chestplate_hardenedleather.png",
groups = {armor_torso = 8, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register leggings :
minetest.register_tool(":3d_armor:leggings_hardenedleather", {
description = "Hardened Leather Leggings (Hunter)",
inventory_image = "3d_armor_inv_leggings_hardenedleather.png",
groups = {armor_legs = 8, armor_heal = 0, armor_use = 250},
wear = 0,
})
-- Register boots :
minetest.register_tool(":3d_armor:boots_hardenedleather", {
description = "Hardened Leather Boots (Hunter)",
inventory_image = "3d_armor_inv_boots_hardenedleather.png",
groups = {armor_feet = 5, armor_heal = 0, armor_use = 250},
wear = 0,
})
end
2015-07-31 19:29:06 +02:00
minetest.register_craftitem(":3d_armor:hardenedleather", {
description = "Hardened Leather",
2015-07-31 19:29:06 +02:00
inventory_image = "3d_armor_hardenedleather.png",
stack_max = 99,
})
-- Hardened Leather craft recipe
minetest.register_craft({
output = "3d_armor:hardenedleather",
recipe = {
{"default:steel_ingot", "mobs:leather", "default:bronze_ingot"},
{"mobs:leather", "mobs:leather", "mobs:leather" },
{"default:bronze_ingot", "mobs:leather", "default:steel_ingot" }
}
})