execute if entity @s[tag=Tip1] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"If you want to shoot a Cannonball more towards the left or right, you can put unequal amounts of Gunpowder into a Cannon's Gunpowder slots.","color":"gray"}]
execute if entity @s[tag=Tip2] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"In order to shoot a Cannonball you need to place Gunpowder in at least one of the 2 slots on the sides of the Cannon.","color":"gray"}]
execute if entity @s[tag=Tip3] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"All Cannonballs have different properties. Make sure to read the item lore to see what they do.","color":"gray"}]
execute if entity @s[tag=Tip4] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Fire placed by Hot Cannonballs will deal extra damage to a ship once it extinguishes.","color":"gray"}]
execute if entity @s[tag=Tip5] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Players only regenerate health on their own ship or by using Golden Apples.","color":"gray"}]
execute if entity @s[tag=Tip6] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Cannonball Clusters are weak against ships, but they'll kill players with ease.","color":"gray"}]
execute if entity @s[tag=Tip7] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Use your Spotting Spyglass to locate and temporarily expose weakpoints on the enemy ship.","color":"gray"}]
execute if entity @s[tag=Tip8] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Using a Harpoon underwater will allow you to perform a quick dash.","color":"gray"}]
execute if entity @s[tag=Tip9] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"You can use a Skeleton Key to open the Team Chest of your enemies or open Skeleton Chests.","color":"gray"}]
execute if entity @s[tag=Tip10] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Killing an enemy regenerates a little bit of health.","color":"gray"}]
execute if entity @s[tag=Tip11] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Players drop a small amount of Gold on death.","color":"gray"}]
execute if entity @s[tag=Tip12] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"If you die, you lose all items you were carrying with you.","color":"gray"}]
execute if entity @s[tag=Tip13] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Share any leftover resources with your teammates either by dropping them or putting it in the Team Chest on your ship.","color":"gray"}]
execute if entity @s[tag=Tip14] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Destroying weakpoints is the best way to deal a lot of damage to ships.","color":"gray"}]
execute if entity @s[tag=Tip15] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"You deal significanlty less damage when you board the enemy ship. Only board the enemy ship if you intend on raiding their Team Chest.","color":"gray"}]
execute if entity @s[tag=Tip16] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Gas Cannonballs leave a cloud of Gas that weaken and damage any players who get inside it.","color":"gray"}]
execute if entity @s[tag=Tip17] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Bouncy Cannonballs will blow up randomly after bouncing around for a little bit.","color":"gray"}]
execute if entity @s[tag=Tip18] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"10 Gunpowder is a good amount to keep in mind if you want to hit the hull of a ship.","color":"gray"}]
execute if entity @s[tag=Tip19] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"You can remove Gunpowder from the Gunpowder slots of a Cannon by interacting with them while you're not holding Gunpowder in your hand.","color":"gray"}]
execute if entity @s[tag=Tip20] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Tracer Cannonball shots don't consume any Gunpowder! You can use them to get a rough estimate of where your shot will land.","color":"gray"}]
execute if entity @s[tag=Tip21] run tellraw @a[tag=!hideTips] ["",{"text":"<","color":"aqua"},{"text":"TIP!","bold":true,"color":"dark_aqua"},{"text":"> ","color":"aqua"},{"text":"Chain Cannonballs are a little less accurate than the other Cannonball types, but can deal a lot of damage to a ship's sails.","color":"gray"}]

execute as @a[tag=!hideTips,scores={GamesPlayed=2..}] run tellraw @s ["",{"text":"(Play ","color":"dark_aqua"},{"score":{"name":"@s","objective":"GamesPlayed"},"color":"dark_aqua"},{"text":" more games to be able to hide tips.)","color":"dark_aqua"}]
tellraw @a[tag=!hideTips,scores={GamesPlayed=1}] ["",{"text":"(Play 1 more game to be able to hide tips.)","color":"dark_aqua"}]
tellraw @a[tag=!hideTips,scores={GamesPlayed=..0}] ["",{"text":"(Click ","color":"dark_aqua"},{"text":"[HERE]","color":"green","clickEvent":{"action":"run_command","value":"/trigger toggleTips"},"hoverEvent":{"action":"show_text","contents":["Click to disable tips!"]}},{"text":" to disable tips!)","color":"dark_aqua"}]

scoreboard players set $Tip CmdData 0

execute unless entity @e[type=marker,tag=TipSet] run function tutorial:tips/newset
kill @s