Bureaucrats, Check users, emailconfirmed, Interface administrators, staff, Administrators, translation-admin, Widget editors
1,641
edits
(Add Yellow "Enchanted Book") |
m (idk how that works man, just don't use Turtle Helmet) Tag: Manual revert |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
local aliases = { | local aliases = { | ||
-- Display names -- | |||
['Broken Elytra'] = { title = '&eElytra', name = 'Broken Elytra' }, | ['Broken Elytra'] = { title = '&eElytra', name = 'Broken Elytra' }, | ||
['Clay (block)'] = { title = 'Clay', name = 'Clay (block)' }, | ['Clay (block)'] = { title = 'Clay', name = 'Clay (block)' }, | ||
Line 5: | Line 6: | ||
['Iron Block'] = { title = 'Block of Iron', name = 'Block of Iron' }, | ['Iron Block'] = { title = 'Block of Iron', name = 'Block of Iron' }, | ||
['Gold Block'] = { title = 'Block of Gold', name = 'Block of Gold' }, | ['Gold Block'] = { title = 'Block of Gold', name = 'Block of Gold' }, | ||
['Diamond Block'] = { title = 'Block of Diamond', name = 'Block of Diamond' } | ['Diamond Block'] = { title = 'Block of Diamond', name = 'Block of Diamond' }, | ||
['Button'] = { title = 'Button', name = 'Stone Button'}, | |||
['Wooden Button'] = { title = 'Button', name = 'Oak Button'}, | |||
['Arrow Loaded Crossbow'] = { title = 'Crossbow', name = 'Arrow Loaded Crossbow' }, | |||
['Damaged Arrow Loaded Crossbow'] = { title = 'Crossbow', name = 'Damaged Arrow Loaded Crossbow' }, | |||
['Firework Loaded Crossbow'] = { title = 'Crossbow', name = 'Firework Loaded Crossbow' }, | |||
['Damaged Firework Loaded Crossbow'] = { title = 'Crossbow', name = 'Damaged Firework Loaded Crossbow' }, | |||
['Illager Banner'] = { title = '&6&oIllager Banner', name = 'Illager Banner', text = | |||
'&7Cyan Lozenge/&7Light Gray Base/&7Gray Pale/&7Light Gray Bordure/&7Black Fess/&7Light Gray Per Fess'}, | |||
['Jigsaw Block'] = { title = '&dJigsaw Block', name = 'Jigsaw Block' }, | |||
['Half Filled Bundle'] = { title = 'Bundle', name = 'Half Filled Bundle' }, | |||
['Filled Bundle'] = { title = 'Bundle', name = 'Filled Bundle' }, | |||
-- Weapons -- | |||
['Trident'] = { name = 'Trident', text = '/&7 When in main hand:/ &21.1 Attack Speed/ &29 Attack Damage'}, | |||
-- Wood -- | |||
['Mangrove Sapling'] = {name = 'Mangrove Propagule'}, | |||
['Bamboo Boat'] = {name ='Bamboo Raft'}, | |||
['Bamboo Boat with Chest'] = {name = 'Bamboo Raft with Chest'} | |||
} | } | ||
-- Tooltip colors -- | -- Tooltip colors -- | ||
Line 27: | Line 46: | ||
for _, name in ipairs( yellowTooltips ) do | for _, name in ipairs( yellowTooltips ) do | ||
aliases[name] = { title = '&e', name = name } | aliases[name] = { title = '&e', name = name } | ||
end | |||
local enchantedIconYellowTooltips = { | |||
"Bottle o' Enchanting", | |||
'Enchanted Book', | |||
'Nether Star' | |||
} | |||
for _, name in ipairs( enchantedIconYellowTooltips ) do | |||
aliases[name] = { title = '&e', name = name, enchanted = "true" } | |||
end | end | ||
Line 36: | Line 65: | ||
for _, name in ipairs( aquaTooltips ) do | for _, name in ipairs( aquaTooltips ) do | ||
aliases[name] = { title = '&b', name = name } | aliases[name] = { title = '&b', name = name } | ||
end | |||
local enchantedIconAquaTooltips = { | |||
'End Crystal' | |||
} | |||
for _, name in ipairs( enchantedIconAquaTooltips ) do | |||
aliases[name] = { title = '&b', name = name, enchanted = "true" } | |||
end | end | ||
Line 42: | Line 79: | ||
'Structure Block', | 'Structure Block', | ||
} | } | ||
for _, name in ipairs( lightPurpleTooltips ) do | for _, name in ipairs( lightPurpleTooltips ) do | ||
aliases[name] = { title = '&d', name = name } | aliases[name] = { title = '&d', name = name } | ||
end | end | ||
local enchantedIconPurpleTooltips = { | |||
'Enchanted Golden Apple' | |||
} | |||
for _, name in ipairs( enchantedIconPurpleTooltips ) do | |||
aliases[name] = { title = '&d', name = name, enchanted = "true" } | |||
end | |||
-- Discs -- | -- Discs -- | ||
local discs = { | local discs = { | ||
{ '13', | { '13', 'C418', }, | ||
{ 'Cat', | { 'Cat', 'C418', 'cat' }, | ||
{ 'Blocks', | { 'Blocks', 'C418', 'blocks' }, | ||
{ 'Chirp', | { 'Chirp', 'C418', 'chirp' }, | ||
{ 'Far', | { 'Far', 'C418', 'far' }, | ||
{ 'Mall', | { 'Mall', 'C418', 'mall' }, | ||
{ 'Mellohi', 'C418', | { 'Mellohi', 'C418', 'mellohi' }, | ||
{ 'Stal', | { 'Stal', 'C418', 'stal' }, | ||
{ 'Strad', | { 'Strad', 'C418', 'strad' }, | ||
{ 'Ward', | { 'Ward', 'C418', 'ward' }, | ||
{ '11', | { '11', 'C418', }, | ||
{ 'Wait', | { 'Wait', 'C418', 'wait' }, | ||
{ 'Pigstep', 'Lena Raine', | { 'Otherside', 'Lena Raine', 'otherside' }, | ||
{ 'Pigstep', 'Lena Raine', }, | |||
{ '5', 'Samuel Åberg', }, | |||
} | } | ||
for _, disc in ipairs( discs ) do | for _, disc in ipairs( discs ) do | ||
Line 288: | Line 336: | ||
-- turtle master is weird, so just do a fancy string replacement | -- turtle master is weird, so just do a fancy string replacement | ||
if effect.text then | if effect.text then | ||
aliases[name] = { name = potionName, text = effect.text:gsub( '%$1', durations[1] ) } | aliases[name] = { name = potionName, text = effect.text:gsub( '%$1', durations[1] ), enchanted = "true" } | ||
aliases[name .. ' Extended'] = { name = potionName, text = effect.text:gsub( '%$1', durations[2] ) } | aliases[name .. ' Extended'] = { name = potionName, text = effect.text:gsub( '%$1', durations[2] ), enchanted = "true" } | ||
aliases[name .. ' Enhanced'] = { name = potionName, text = effect.enhanced:gsub( '%$1', durations[3] ) } | aliases[name .. ' Enhanced'] = { name = potionName, text = effect.enhanced:gsub( '%$1', durations[3] ), enchanted = "true" } | ||
else | else | ||
-- we always have normal | -- we always have normal | ||
aliases[name] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[1] ) } | aliases[name] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[1] ), enchanted = "true" } | ||
-- ensure we have extended | -- ensure we have extended | ||
if durations[2] then | if durations[2] then | ||
aliases[name .. ' Extended'] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[2] ) } | aliases[name .. ' Extended'] = { name = potionName, text = string.format( '%s (%s)', effect.effect, durations[2] ), enchanted = "true" } | ||
-- and enhanced, currently there is nothing with a duration that can be extended but not enhanced | -- and enhanced, currently there is nothing with a duration that can be extended but not enhanced | ||
if effect.enhanced then | if effect.enhanced then | ||
aliases[name .. ' Enhanced'] = { name = potionName, text = string.format( '%s %s (%s)', effect.effect, effect.enhanced, durations[3] ) } | aliases[name .. ' Enhanced'] = { name = potionName, text = string.format( '%s %s (%s)', effect.effect, effect.enhanced, durations[3] ), enchanted = "true" } | ||
end | end | ||
end | end | ||
Line 307: | Line 355: | ||
else | else | ||
-- otherwise its just effect, currently every potion with no duration can be enhanced | -- otherwise its just effect, currently every potion with no duration can be enhanced | ||
aliases[name] = { name = potionName, text = effect.effect} | aliases[name] = { name = potionName, text = effect.effect, enchanted = "true" } | ||
aliases[name .. ' Enhanced'] = { name = potionName, text = effect.effect .. ' ' .. effect.enhanced } | aliases[name .. ' Enhanced'] = { name = potionName, text = effect.effect .. ' ' .. effect.enhanced, enchanted = "true" } | ||
end | end | ||
edits