Module:Inventory slot/Aliases: Difference between revisions

Added tooltips for armor pieces
Fixing something incorrect
Line 263: Line 263:
{'Diamond Chestplate', 8, 2 },
{'Diamond Chestplate', 8, 2 },
{'Netherite Chestplate', 8, 3, 1 },
{'Netherite Chestplate', 8, 3, 1 },
{'Leather Horse Armor', 3 },
{'Iron Horse Armor', 5 },
{'Golden Horse Armor', 7 },
{'Diamond Horse Armor', 11, 2 },
{'Wolf Armor', 11 },
}
}


Line 286: Line 281:
{'Diamond Boots', 3, 2 },
{'Diamond Boots', 3, 2 },
{'Netherite Boots', 3, 3, 1 },
{'Netherite Boots', 3, 3, 1 },
}
local equipped = {
{'Leather Horse Armor', 3 },
{'Iron Horse Armor', 5 },
{'Golden Horse Armor', 7 },
{'Diamond Horse Armor', 11, 2 },
{'Wolf Armor', 11 },
}
}


local bodyParts = {
local bodyParts = {
     {head, "Head"},
     {head, "on Head"},
     {body, "Body"},
     {body, "on Body"},
     {legs, "Legs"},
     {legs, "on Legs"},
     {feet, "Feet"}
     {feet, "on Feet"},
    {equipped, "equipped"}
}
}


Line 303: Line 307:
     for _, toolProps in ipairs(items) do
     for _, toolProps in ipairs(items) do
         local aliasName = toolProps[1]
         local aliasName = toolProps[1]
         local text = '/&7When on ' .. bodyPartName .. ' :/&9+' .. toolProps[2] .. ' Armor/'
         local text = '/&7When ' .. bodyPartName .. ' :/&9+' .. toolProps[2] .. ' Armor/'
         if toolProps[3] then
         if toolProps[3] then
             text = text .. '+' .. toolProps[3] .. ' Armor Toughness/'
             text = text .. '+' .. toolProps[3] .. ' Armor Toughness/'