execute as @s[scores={svm_ep.shift_time=1,svm_ep.using_move=780..}] run function svm_ep:power/flora/creation/switch


scoreboard players operation %cooldown1 svm_ep.numbers = @s svm_ep.using_move
scoreboard players operation %cooldown1 svm_ep.numbers -= %780 svm_ep.numbers
function svm_ep:power/delay




title @s times 0 2 4
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Root Growth","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_creation=2}] title [{"text":" | ","color":"#989898"},{"text":"Flower Field","color":"#509930"},{"text":" | ","color":"#989898"}]


title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Oak Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Piercing Thorns","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Jungle Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=4,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Cactus","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=5,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Mushroom Stem","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Warped Fungus","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Crimson Fungus","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Short Grass","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=9,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Kelp","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Dark Oak Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=11,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Acacia Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=12,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Pink Petals","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=13,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Mangrove Propagule","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_creation=1}] title [{"text":" | ","color":"#989898"},{"text":"Moss Patch","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.using_move=780..}] subtitle [{"text":" | ","color":"#989898"},{"score":{"name":"%cooldown1","objective":"svm_ep.numbers"},"color":"green"},{"text":".","color":"green"},{"score":{"name":"%cooldown2","objective":"svm_ep.numbers"},"color":"green"},{"text":" | ","color":"#989898"}]
#title @s[scores={svm_ep.using_move=..779}] subtitle [{"text":" | ","color":"#989898"},{"text":"Hold for more","color":"#999999"},{"text":" | ","color":"#989898"}]


execute as @s[scores={svm_ep.using_move=..780}] run function svm_ep:power/flora/creation/use