Module:ParallelAliases: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 176: Line 176:
----------------------------
----------------------------


local dyeableText = '&b♦ Dyeable ♦/'
local hatArmorText = '//&r&7When on head:/&9+2 Armor'
local hatArmorText = '//&r&7When on head:/&9+2 Armor'


Line 228: Line 229:
-- Spooky Hat Pack --
-- Spooky Hat Pack --
local halloweenHats = {  
local halloweenHats = {  
{ 'Original Witch Hat', '&2', '&b♦ Dyeable ♦/', 'Double, double toil and trouble;/Fire burn and cauldron bubble...'},
{ 'Original Witch Hat', '&2', false, 'Double, double toil and trouble;/Fire burn and cauldron bubble...'},
{ 'Red Witch Hat', '&c', '&b♦ Dyeable ♦/', 'Double, double toil and trouble;/Fire burn and cauldron bubble...'},
{ 'Red Witch Hat', '&c', false, 'Double, double toil and trouble;/Fire burn and cauldron bubble...'},
{ 'Witch Hat', '&c', true, 'Double, double toil and trouble;/Fire burn and cauldron bubble...'},
}
}
for _, hat in ipairs( halloweenHats ) do
for _, hat in ipairs( halloweenHats ) do
local name = hat[1]
local name = hat[1]
local color = hat[2]
local color = hat[2]
local dyeable = hat[3]
local dyeable
if hat[3] then local dyeable = dyeableText else dyeable = '' end
local lore = hat[4]
local lore = hat[4]
aliases[name] = { title = '&l' .. color .. name, name = name, text = dyeable .. '&8♦ Spooky Hat Pack ♦/&r&5&o' .. lore .. hatArmorText}
aliases[name] = { title = '&l' .. color .. name, name = name, text = dyeable .. '&8♦ Spooky Hat Pack ♦/&r&5&o' .. lore .. hatArmorText}