2020-02-18 14:44:54 +00:00
|
|
|
local S = minetest.get_translator("mcl_armor")
|
2022-04-30 22:16:23 +00:00
|
|
|
local modpath = minetest.get_modpath("mcl_armor")
|
2019-03-07 23:51:45 +00:00
|
|
|
|
2021-04-14 13:46:52 +00:00
|
|
|
mcl_armor = {
|
|
|
|
longdesc = S("This is a piece of equippable armor which reduces the amount of damage you receive."),
|
|
|
|
usage = S("To equip it, put it on the corresponding armor slot in your inventory menu."),
|
|
|
|
elements = {
|
|
|
|
head = {
|
|
|
|
name = "helmet",
|
|
|
|
description = "Helmet",
|
|
|
|
durability = 0.6857,
|
|
|
|
index = 2,
|
|
|
|
craft = function(m)
|
|
|
|
return {
|
|
|
|
{ m, m, m},
|
|
|
|
{ m, "", m},
|
|
|
|
{"", "", ""},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
torso = {
|
|
|
|
name = "chestplate",
|
|
|
|
description = "Chestplate",
|
|
|
|
durability = 1.0,
|
|
|
|
index = 3,
|
|
|
|
craft = function(m)
|
|
|
|
return {
|
|
|
|
{ m, "", m},
|
|
|
|
{ m, m, m},
|
|
|
|
{ m, m, m},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
legs = {
|
|
|
|
name = "leggings",
|
|
|
|
description = "Leggings",
|
|
|
|
durability = 0.9375,
|
|
|
|
index = 4,
|
|
|
|
craft = function(m)
|
|
|
|
return {
|
|
|
|
{ m, m, m},
|
|
|
|
{ m, "", m},
|
|
|
|
{ m, "", m},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
},
|
|
|
|
feet = {
|
|
|
|
name = "boots",
|
|
|
|
description = "Boots",
|
|
|
|
durability = 0.8125,
|
|
|
|
index = 5,
|
|
|
|
craft = function(m)
|
|
|
|
return {
|
|
|
|
{ m, "", m},
|
|
|
|
{ m, "", m},
|
|
|
|
}
|
|
|
|
end,
|
|
|
|
}
|
2021-04-17 11:49:40 +00:00
|
|
|
},
|
|
|
|
player_view_range_factors = {},
|
2021-04-12 21:56:33 +00:00
|
|
|
}
|
2015-06-29 17:55:56 +00:00
|
|
|
|
2021-04-14 13:46:52 +00:00
|
|
|
dofile(modpath .. "/api.lua")
|
|
|
|
dofile(modpath .. "/player.lua")
|
|
|
|
dofile(modpath .. "/damage.lua")
|
|
|
|
dofile(modpath .. "/register.lua")
|
|
|
|
dofile(modpath .. "/alias.lua")
|
2022-04-30 22:16:23 +00:00
|
|
|
dofile(modpath .."/leather.lua")
|