2021-05-29 16:12:33 +02:00
|
|
|
local S = minetest.get_translator(minetest.get_current_modname())
|
2019-03-08 00:51:45 +01:00
|
|
|
|
2021-04-14 15:46:52 +02: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 13:49:40 +02:00
|
|
|
},
|
|
|
|
player_view_range_factors = {},
|
2023-08-28 15:09:48 +02:00
|
|
|
trims = {
|
2024-07-16 21:21:21 +02:00
|
|
|
core_textures = {},
|
|
|
|
blacklisted = {["mcl_armor:elytra"]=true, ["mcl_armor:elytra_enchanted"]=true},
|
2023-10-21 22:25:30 +02:00
|
|
|
overlays = {"sentry","dune","coast","wild","tide","ward","vex","rib","snout","eye","spire","silence","wayfinder"},
|
2024-07-16 21:21:21 +02:00
|
|
|
translations = {
|
|
|
|
sentry = S("sentry"),
|
|
|
|
dune = S("dune"),
|
|
|
|
coast = S("coast"),
|
|
|
|
wild = S("wild"),
|
2024-07-19 20:05:26 +02:00
|
|
|
tide = S("tide"),
|
2024-07-16 21:21:21 +02:00
|
|
|
ward = S("ward"),
|
|
|
|
vex = S("vex"),
|
|
|
|
rib = S("rib"),
|
|
|
|
snout = S("snout"),
|
|
|
|
eye = S("eye"),
|
|
|
|
spire = S("spire"),
|
|
|
|
silence = S("silence"),
|
|
|
|
wayfinder = S("wayfinder"),
|
|
|
|
},
|
|
|
|
colors = {["amethyst"]="#8246a5",["gold"]="#ce9627",["emerald"]="#1b9958",["copper"]="#c36447",["diamond"]="#5faed8",["iron"]="#938e88",["lapis"]="#1c306b",["netherite"]="#302a26",["quartz"]="#c9bcb9",["redstone"]="#af2c23"},
|
2023-08-28 15:09:48 +02:00
|
|
|
},
|
2021-04-12 23:56:33 +02:00
|
|
|
}
|
2015-06-29 19:55:56 +02:00
|
|
|
|
2021-04-14 15:46:52 +02:00
|
|
|
local modpath = minetest.get_modpath("mcl_armor")
|
|
|
|
|
|
|
|
dofile(modpath .. "/api.lua")
|
|
|
|
dofile(modpath .. "/player.lua")
|
|
|
|
dofile(modpath .. "/damage.lua")
|
|
|
|
dofile(modpath .. "/register.lua")
|
2022-05-10 15:55:56 +02:00
|
|
|
dofile(modpath .. "/leather.lua")
|
2021-04-14 15:46:52 +02:00
|
|
|
dofile(modpath .. "/alias.lua")
|
2023-08-28 15:09:48 +02:00
|
|
|
dofile(modpath .. "/trims.lua")
|