Module:Inventory slot/Aliases: Difference between revisions

adding pigstep
bottle o enchanting, enchanted book, and end crystal are all animated (glint)
Line 88: Line 88:
-- Tooltip colors --
-- Tooltip colors --
local yellowTooltips = {
local yellowTooltips = {
'Bottle o\' Enchanting',
'Creeper Head',
'Creeper Head',
'Damaged Elytra',
'Damaged Elytra',
Line 94: Line 93:
'Dragon\'s Breath',
'Dragon\'s Breath',
'Elytra',
'Elytra',
'Enchanted Book',
'Head',
'Head',
'Heart of the Sea',
'Heart of the Sea',
Line 110: Line 108:
'Beacon',
'Beacon',
'Conduit',
'Conduit',
'End Crystal',
'Golden Apple',
'Golden Apple',
}
}
Line 147: Line 144:
end
end


-- Nether Stars are both animated and yellow --
-- Some things are both animated and yellow --
local rareAnimatedIcons = {
local animatedIconsYellowTooltips = {
'Nether Star'
'Bottle o\' Enchanting',
'Enchanted Book',
'Nether Star',
}
}
for _, name in ipairs( rareAnimatedIcons ) do
for _, name in ipairs( animatedIconsYellowTooltips ) do
aliases[name] = { title = '&e', name = name .. '.gif' }
aliases[name] = { title = '&e', name = name .. '.gif' }
end
end


-- Enchanted items and command blocks are both animated and purple --
-- Some things are both animated and aqua --
local enchantedItems = {
local animatedIconsAquaTooltips = {
'End Crystal',
}
for _, name in ipairs( animatedIconsAquaTooltips ) do
aliases[name] = { title = '&b', name = name .. '.gif' }
end
 
-- Some things are both animated and purple --
local animatedIconsPurpleTooltips = {
'Command Block',
'Command Block',
'Chain Command Block',
'Chain Command Block',
Line 162: Line 169:
'Enchanted Golden Apple',
'Enchanted Golden Apple',
}
}
for _, name in ipairs( enchantedItems ) do
for _, name in ipairs( animatedIconsPurpleTooltips ) do
aliases[name] = { title = '&d', name = name .. '.gif' }
aliases[name] = { title = '&d', name = name .. '.gif' }
end
end