Module:Gm4Sprite/Aliases

Revision as of 03:42, 15 February 2021 by Epyon (talk | contribs) (More GM4 enchanted things)

Documentation for this module may be created at Module:Gm4Sprite/Aliases/doc

local aliases = {

	'Bat Grenades',
	['Bat Leather']	= { name = 'Bat Leather', text = '&o&5Would make for a very strange,/very tiny jacket' },

	'Book Binders',
	['Enchanted Page']	= { title = '&bEnchanted Page', name = 'Enchanted Page', enchanted = "true"},

	'Boots of Ostara',
	['Boots of Ostara']	= { name = 'Boots of Ostara', text = '&o&5Brings Abundance Beneath You!'},

	'Heart Canisters',
	['Heart Canister Tier 1']	= { title = '&eHeart Canister', name = 'Heart Canister Tier 1', text = '&5Tier 1' },
	['Heart Canister Tier 2']	= { title = '&eHeart Canister', name = 'Heart Canister Tier 2', text = '&5Tier 2' },

	'Lightning Rods',
	['Lightning Rod']	= { title = '&bLightning Rod', name = 'Lightning Rod', text = '&o&5Throw for boom!'},


	'Liquid Tanks - Standard Liquids',
	['Beetroot Soup Liquid']	= { title = 'Beetroot Soup', name = 'Beetroot Soup Liquid' },
	['Experience Liquid']		= { title = 'Experience', name = 'Experience Liquid' },
	['Honey Liquid']			= { title = 'Honey', name = 'Honey Liquid' },
	['Lava Liquid']				= { title = 'Lava', name = 'Lava Liquid' },
	['Milk Liquid']				= { title = 'Milk', name = 'Milk Liquid' },
	['Mushroom Stew Liquid']	= { title = 'Mushroom Stew', name = 'Mushroom Stew Liquid' },
	['Rabbit Stew Liquid']		= { title = 'Rabbit Stew', name = 'Rabbit Stew Liquid' },
	['Water Liquid']			= { title = 'Water', name = 'Water Liquid' },

	'Liquid Tanks - Potion Liquids',
	['Regeneration Potion Liquid']			= { title = 'Regeneration', name = 'Regeneration Potion Liquid' },
	['Strong Regeneration Potion Liquid']	= { title = 'Regeneration II', name = 'Strong Regeneration Potion Liquid' },
	['Healing Potion Liquid']				= { title = 'Instant Health', name = 'Healing Potion Liquid' },
	['Strong Healing Potion Liquid']		= { title = 'Instant Health II', name = 'Strong Healing Potion Liquid' },
	['Strength Potion Liquid']				= { title = 'Strength', name = 'Strength Potion Liquid' },
	['Strong Strength Potion Liquid']		= { title = 'Strength II', name = 'Strong Strength Potion Liquid' },
	['Fire Resistance Potion Liquid']		= { title = 'Regeneration', name = 'Regeneration Potion Liquid' },
	['Poison Potion Liquid']				= { title = 'Poison', name = 'Poison Potion Liquid' },
	['Strong Poison Potion Liquid']			= { title = 'Poison II', name = 'Strong Poison Potion Liquid' },
	['Leaping Potion Liquid']				= { title = 'Leaping', name = 'Leaping Potion Liquid' },
	['Strong Leaping Potion Liquid']		= { title = 'Leaping II', name = 'Strong Leaping Potion Liquid' },
	['Invisibility Potion Liquid']			= { title = 'Invisibility', name = 'Invisibility Potion Liquid' },
	['Harming Potion Liquid']				= { title = 'Instant Damage', name = 'Harming Potion Liquid' },
	['Strong Harming Potion Liquid']		= { title = 'Instant Damage II', name = 'Strong Harming Potion Liquid' },
	['Night Vision Potion Liquid']			= { title = 'Night Vision', name = 'Night Vision Potion Liquid' },
	['Weakness Potion Liquid']				= { title = 'Weakness', name = 'Weakness Potion Liquid' },
	['Slowness Potion Liquid']				= { title = 'Slowness', name = 'Slowness Potion Liquid' },
	['Strong Slowness Potion Liquid']		= { title = 'Slowness IV', name = 'Strong Slowness Potion Liquid' },
	['Swiftness Potion Liquid']				= { title = 'Swiftness', name = 'Swiftness Potion Liquid' },
	['Strong Swiftness Potion Liquid']		= { title = 'Swiftness II', name = 'Strong Swiftness Potion Liquid' },
	['Water Breathing Potion Liquid']		= { title = 'Water Breathing', name = 'Water Breathing Potion Liquid' },
	['Levitation Potion Liquid']			= { title = 'Levitation', name = 'Levitation Potion Liquid' },

	'Liquid Tanks - Zauber Liquids',
	['Zauber Strength Liquid']		= {title = 'Strength IV', name = 'Zauber Strength Liquid' },
	['Zauber Regeneration Liquid']	= {title = 'Regeneration IV/Speed III', name = 'Zauber Regeneration Liquid' },
	['Zauber Swiftness Liquid']		= {title = 'Speed IV/Weakness IV', name = 'Zauber Swiftness Liquid' },
	['Zauber Healing Liquid']		= {title = 'Instant Healing IV/Nausea', name = 'Zauber Healing Liquid' },
	['Zauber Poison Liquid']		= {title = 'Poison IV', name = 'Zauber Poison Liquid' },
	['Zauber Leaping Liquid']		= {title = 'Jump Boost IV', name = 'Zauber Strength Liquid' },
	['Zauber Harming Liquid']		= {title = 'Instant Damage IV', name = 'Zauber Harming Liquid' },

	'Metallurgy - Ores',
	['Baryte Lump']		= { name = 'Baryte Lump', text = '&7Contains &fBarium' },
	['Bauxite Lump']	= { name = 'Bauxite Lump', text = '&7Contains &cAluminium' },
	['Malachite Lump']	= { name = 'Malachite Lump', text = '&7Contains &6Copper' },
	['Thorianite Lump']	= { name = 'Thorianite Lump', text = '&7Contains &8Thorium' },

	'Orb of Ankou',
	['Orb of Ankou (Empty)']	= { title = '&bOrb of Ankou', name = 'Orb of Ankou (Empty)', text = '&7&oEmpty' },
	['Soul Shard'] 				= { name = 'Soul Shard', text = '/&7When in Off Hand:/&c-20% Attack Damage' },

	'SCUBA Gear',
	['SCUBA Helmet']	= { title = '&eSCUBA Helmet', name = 'SCUBA Helmet', text = '/&7When on head:/&c-0.5 Attack Speed/&9+2 Armour'},
	['SCUBA Tank']		= { name = 'SCUBA Tank', text = '/&7When on chest:/&9+4 Armour/&c-0.01 Movement Speed'},
	['Flippers']		= { name = 'Flippers', text = '/&7When on feet:/&9+1 Armour/&c-0.04 Movement Speed'},

	'Sunken Treasure',
	['Audrey 1']		= { title = 'Message in a Bottle', name = 'Message in a Bottle', text = 'Dearest Audrey, I drank all my beer'},
	['Audrey 2']		= { title = 'Message in a Bottle', name = 'Message in a Bottle', text = 'Dearest Audrey, My Boat was/sunk by a lily-pad and now I\'m/stuck on this island.'},

	
	['Waders']			= { title = '&bWaders', name = 'Waders', text = '&7Depth Strider 1//When on feet:/&9+1 Armour'},
	['Treasure Chest']	= { name = 'Treasure Chest' },

	'Zauber Cauldrons',
	['Enchanted Prismarine Shard']	= { title = 'Enchanted Prismarine Shard', name = 'Enchanted Prismarine Shard', enchanted = "true" },
	['Magic in a Bottle']			= { title = 'Magic in a Bottle', name = 'Magic in a Bottle', enchanted = "true" },
	['Wormhole in a Potion']		= { title = 'Wormhole in a Bottle', name = 'Wormhole in a Bottle', enchanted = "true" },
	['Zauber Swiftness Potion']		= { title = 'Potion of Swiftness', name = 'Zauber Swiftness Potion', text = '&9Speed IV (3:20)/&cWeakness IV (6:00)//&5When Applied:/&9+80% Speed/-16% Attack Damage', enchanted = "true" },
	['Zauber Healing Potion']		= { title = 'Potion of Healing', name = 'Zauber Healing Potion', text = '&9Instant Health IV/&cNausea (0:08)', enchanted = "true" },
	['Zauber Harming Potion']		= { title = 'Potion of Harming', name = 'Zauber Harming Potion', text = '&cInstant Damage IV', enchanted = "true" },
	['Zauber Poison Potion']		= { title = 'Potion of Poison', name = 'Zauber Poison Potion', text = '&cPoison IV (0:32)', enchanted = "true" },
	['Zauber Regeneration Potion']	= { title = 'Potion of Regeneration', name = 'Zauber Regeneration Potion', text = '&9Regeneration IV (0:22)/Speed III (0:16)', enchanted = "true" },
	['Zauber Strength Potion']		= { title = 'Potion of Strength', name = 'Zauber Strength Potion', text = '&9Strength IV (1:30)//&5When Applied:/&9+12 Attack Damage', enchanted = "true" },
	['Zauber Leaping Potion']		= { title = 'Potion of Leaping', name = 'Zauber Leaping Potion', text = '&9Jump Boost IV (1:30)', enchanted = "true" },
	['Zauber Swiftness Soulution']		= { title = 'Soulution of Swiftness', name = 'Zauber Swiftness Potion', text = '&79/9 Sips/&9Speed IV (3:20)/&cWeakness IV (6:00)//&5When Applied:/&9+80% Speed/-16% Attack Damage', enchanted = "true" },
	['Zauber Healing Soulution']		= { title = 'Soulution of Healing', name = 'Zauber Healing Potion', text = '&79/9 Sips/&9Instant Health IV/&cNausea (0:08)', enchanted = "true" },
	['Zauber Harming Soulution']		= { title = 'Soulution of Harming', name = 'Zauber Harming Potion', text = '&79/9 Sips/&cInstant Damage IV', enchanted = "true" },
	['Zauber Poison Soulution']		= { title = 'Soulution of Poison', name = 'Zauber Poison Potion', text = '&79/9 Sips/&cPoison IV (0:32)', enchanted = "true" },
	['Zauber Regeneration Soulution']	= { title = 'Soulution of Regeneration', name = 'Zauber Regeneration Potion', text = '&79/9 Sips/&9Regeneration IV (0:22)/Speed III (0:16)', enchanted = "true" },
	['Zauber Strength Soulution']		= { title = 'Soulution of Strength', name = 'Zauber Strength Potion', text = '&79/9 Sips/&9Strength IV (1:30)//&5When Applied:/&9+12 Attack Damage', enchanted = "true" },
	['Zauber Leaping Soulution']		= { title = 'Soulution of Leaping', name = 'Zauber Leaping Potion', text = '&79/9 Sips/&9Jump Boost IV (1:30)', enchanted = "true" },

	'TNT Landmines',
	['Landmine (Invisible)']	= { title = '&eLandmine', name = 'Landmine (Invisible)', text = '&o&5Drop to Use/Invisible' },
	['Soft Defuser']	= {  name = 'Soft Defuser', text = '&o&5Drop to Use' },
}

local yellowTooltips = {
	'Enderpuff',
	'Crystal of Fire Resistance',
	'Crystal of Regeneration',
	'Crystal of Resistance',
	'Crystal of Speed',
	'Relocator',
	'Landmine'
}

for _, name in ipairs ( yellowTooltips ) do
	aliases[name] = { title = '&e', name = name }
end

-- Relocated Blocks
local relocatedBlocks = {
	{ 'Compressor' ,			'Block Compressor'			},
	{ 'Custom Crafter' ,									},
	{ 'Disassembler' ,										},
	{ 'Enchantment Extractor' ,								},
	{ 'Ender Hopper' ,										},
	{ 'Liquid Tank' ,			'Empty Tank'				},
	{ 'Master Crafter' , 		'Mastercraftman\'s Bench'	},
	{ 'Smeltery' ,											},
	{ 'Tinkering Compressor' ,								},
	{ 'Teleportation Jammer' ,								},
	{ 'Teleportation Anchor' ,								}
}

for _, block in ipairs( relocatedBlocks ) do
	local name = 'Relocated ' .. block[1]
	local title = '&b' .. block[1]
	if block[2] ~= nil then
		title = '&b' .. block[2]
	end
	aliases[name] = { title = title, name = name, text = '&o&eRelocator' }
end
	

-- Metallurgy
-- Obsidian Casts
local bandFormat = {
	Aluminium		= 'c',
	Barimium		= 'd',
	Barium			= 'f',
	Copper			= '6',
	Thorium			= '8',
	Thorium_Brass	= '2',
}

local obsidianCasts = {
	'Aluminium',
	'Barium',
	'Barimium',
	'Copper',
	'Thorium',
	'Thorium Brass',
}

for _, cast in ipairs ( obsidianCasts ) do
	local name = 'Obsidian Cast (' .. cast .. ' Band)'
	local bandName = cast
	if bandName == "Thorium Brass" then
		bandName = "Thorium_Brass"
	end
	local band = '&' .. bandFormat[bandName] .. cast .. ' Band'
	aliases[name] = { title = '&eObsidian Cast', name = name , text = band }
end

-- Shamirs
local shamirs = { 
	{ 'Arborenda',	'Barium'},
	{ 'Conduction',	'Thorium'},
	{ 'Defuse',		'Aluminium'},
	{ 'Ender Bolt',	'Thorium'},
	{ 'Forterra',	'Copper'},
	{ 'Gemini',		'Barimium'},
	{ 'Hypexperia',	'Copper'},
	{ 'Levity',		'Aluminium'},
	{ 'Musical',	'Barimium'},
	{ 'Sensus',		'Barium'},
	{ 'Spiraculum',	'Thorium Brass'},
	{ 'Tinker',		'Thorium Brass'},
	{ 'Corripio',	'Copper'},
	{ 'Fulcio',		'Barimium'},
	{ 'Helious',	'Aluminium'},
	{ 'Lumos',		'Thorium Brass'},
	{ 'Moneo',		'Aluminium'},
	{ 'Percurro',	'Thorium Brass'},
}

for _, shamir in ipairs( shamirs ) do
	local name = shamir[1] .. ' Shamir'
	local bandName = shamir[2]
	if bandName == "Thorium Brass" then
		bandName = "Thorium_Brass"
	end
	local band = '&' .. bandFormat[bandName] .. shamir[2] .. ' Band'
	local shamirName = shamir[1]
	aliases[name] = { title = '&eObsidian Cast', name = name, text = band .. '/&bShamir/&7' .. shamirName }
end



-- Orb of Ankou
local pneumas = {
	'Aggressive',
	'Agile',
	'Anchoring',
	'Bargaining',
	'Bashing',
	'Blasting',
	'Blinding',
	'Bounding',
	'Bubbly',
	'Conjuring',
	'Depriving',
	'Draining',
	'Enduring',
	'Expeditious',
	'Feathery',
	'Freezing',
	'Gazing',
	'Gliding',
	'Hawkeye',
	'Incombustible',
	'Lifeless',
	'Neutralizing',
	'Phasing',
	'Pricking',
	'Retreating',
	'Rushing',
	'Scaling',
	'Soaring',
	'Striding',
	'Synergetic',
	'Vanishing',
	'Venomous',
	'Volatile',
	'Withering',
}

-- Create Soul Shards
local preLore = {
	{'Pricking', '&7Thorns V' },
}

local preAttackDamageText = {
	{'Enduring', '&9+8 Max Health/&c-20% Speed' },
	{'Soaring', '&c-20% Max Health' },
	{'Bashing', '&c-40% Attack Speed' }
}

local postAttackDamageText = {
	{'Anchoring', '&9+0.9 Knockback Resistance' },
	{'Bashing', '&9+70% Attack Damage' }
}

for _, shard in ipairs( pneumas ) do
	local name = shard .. ' Soul Shard'
	local combinedText = '&9' .. shard .. '//&7When in Off Hand:'

	for _, shard2 in ipairs( preLore ) do
		if shard == shard2[1] then
			combinedText = shard2[2] .. '/' .. combinedText
		end
	end

	for _, shard2 in ipairs( preAttackDamageText ) do
		if shard == shard2[1] then
			combinedText = combinedText .. '/' .. shard2[2]
		end
	end

	combinedText = combinedText .. '/&c-20% Attack Damage'

	for _, shard2 in ipairs( postAttackDamageText ) do
		if shard == shard2[1] then
			combinedText = combinedText .. '/' .. shard2[2]
		end
	end

	aliases[name] = { title = 'Soul Shard', name = name, text = combinedText, enchanted = "true" }	
end


-- Create Soul Essences
for _, pneuma in ipairs( pneumas ) do
	local name = pneuma .. ' Soul Essence'
	aliases[name] = { title = 'Soul Essence', name = name, text = '&9' .. pneuma }
end

-- Create Single Pneuma Orbs of Ankou
for _, pneuma in ipairs( pneumas ) do
	local name = 'Orb of Ankou (' .. pneuma .. ')'
	local combinedText = '&dPneumas:/&9' .. pneuma .. '//&7When in Off Hand:'

	for _, pneuma2 in ipairs( preLore ) do
		if pneuma == pneuma2[1] then
			combinedText = pneuma2[2] .. '/' .. combinedText
		end
	end

	for _, pneuma2 in ipairs( preAttackDamageText ) do
		if pneuma == pneuma2[1] then
			combinedText = combinedText .. '/' .. pneuma2[2]
		end
	end

	combinedText = combinedText .. '/&c-20% Attack Damage'

	for _, pneuma2 in ipairs( postAttackDamageText ) do
		if pneuma == pneuma2[1] then
			combinedText = combinedText .. '/' .. pneuma2[2]
		end
	end
	aliases[name] = { title = '&bOrb of Ankou', name = name, text = combinedText, enchanted = "true" }
end


-- Zauber
-- Armour Pieces
local armourPiece = {
	{ 'Helmet', 3, 3 },
	{ 'Chestplate', 7, 3 },
	{ 'Leggings', 5, 3 },
	{ 'Boots', 2, 3 }
}

-- Armour Buffs
local armourBuff = {
	'Health',
	'Knockback',
	'Speed',
	'Strength'
}

for _, armourProps in ipairs ( armourPiece ) do
	
	local aliasName = 'Zauber ' .. armourProps[1]

	local armourSlotText = '&9+25% Magic//&7When on '

	if armourProps[1] == 'Helmet' then
		armourSlotText = armourSlotText .. 'head'
	elseif armourProps[1] == 'Chestplate' then
		armourSlotText = armourSlotText .. 'body'
	elseif armourProps[1] == 'Leggings' then
		armourSlotText = armourSlotText .. 'legs'
	else
		armourSlotText = armourSlotText .. 'feet'
	end

	armourSlotText = armourSlotText .. ':/&9'

	-- Plain Zauber Armour
	aliases[aliasName] = { title = '&b' .. aliasName, name = aliasName, text = armourSlotText .. '+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' }
	
	-- Zauber Armour with specific buff
	for _, buff in ipairs( armourBuff ) do

		if buff == 'Health' then
			armourSlotTextBuffed = armourSlotText .. '+4 Max Health'
		elseif buff == 'Knockback' then
			armourSlotTextBuffed = armourSlotText .. '+0.25 Knockback Resistance'
		elseif buff == 'Speed' then
			armourSlotTextBuffed = armourSlotText .. '+10% Speed'
		else
			armourSlotTextBuffed = armourSlotText .. '+35% Attack Damage'
		end

		aliasNameBuffed = aliasName .. ' (' .. buff .. ')'
		aliases[aliasNameBuffed] = { title = '&b' .. aliasName, name = aliasName, text = armourSlotTextBuffed .. '/+' .. armourProps[3] .. ' Armour Toughness/+' .. armourProps[2] .. ' Armour' }
	end
end


--TNT Landmines
local landmines = {
	'Crafting Table',
	'Dirt',
	'Grass Block',
	'Netherrack',
	'Stone Bricks',
	'Stone',
}

for _, block in ipairs ( landmines ) do
	local name = 'Landmine (' .. block .. ')'
	local lore = '&o&5Drop to Use/Disguised as ' .. block
	aliases[name] = { title = '&eLandmine', name = name , text = lore }
end




return aliases