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


scoreboard players operation %cooldown1 svm_ep.numbers = @s svm_ep.using_move
scoreboard players operation %cooldown1 svm_ep.numbers -= %680 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_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Stick","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Wheat Seeds","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Seagrass","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Sugarcane","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Short Grass","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Lily Pad","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Glow Lichen","color":"#509930"},{"text":" | ","color":"#989898"}]
execute unless entity @s[scores={svm_ep.p.flora_climate=1..}] run title @s[scores={svm_ep.p.flora_item=8}] title [{"text":" | ","color":"#989898"},{"text":"Bone Meal","color":"#509930"},{"text":" | ","color":"#989898"}]


title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Oak Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Birch Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Oak Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Birch Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Oak Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Birch Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Lilac","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=8}] title [{"text":" | ","color":"#989898"},{"text":"Rose Bush","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=9}] title [{"text":" | ","color":"#989898"},{"text":"Peony","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=10}] title [{"text":" | ","color":"#989898"},{"text":"Lily of the Valley","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=1,svm_ep.p.flora_item=11}] title [{"text":" | ","color":"#989898"},{"text":"Apple","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Spruce Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Spruce Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Spruce Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Fern","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Large Fern","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=2,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Sweet Berries","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Jungle Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Jungle Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Jungle Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Vine","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Fern","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Bamboo","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Melon","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=3,svm_ep.p.flora_item=8}] title [{"text":" | ","color":"#989898"},{"text":"Cocoa Beans","color":"#509930"},{"text":" | ","color":"#989898"}]

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

title @s[scores={svm_ep.p.flora_climate=5,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Mushroom Stem","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=5,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Brown Mushroom","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=5,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Red Mushroom Bush","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=5,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Brown Mushroom Block","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=5,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Red Mushroom Block","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Warped Fungus","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Warped Wart Block","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Warped Stem","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Warped Roots","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Twisting Vines","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Nether Sprouts","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=6,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Shroomlight","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Crimson Fungus","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Nether Wart Block","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Crimson Stem","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Crimson Roots","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Weeping Vines","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Nether Wart","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=7,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Shroomlight","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Short Grass","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Tall Grass","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Sunflower","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Pumpkin","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Carrot","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Potato","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=8,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Beetroot Seeds","color":"#509930"},{"text":" | ","color":"#989898"}]

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

title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Dark Oak Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Dark Oak Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Dark Oak Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Lilac","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Rose Bush","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Peony","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Lily of the Valley","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=8}] title [{"text":" | ","color":"#989898"},{"text":"Apple","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=9}] title [{"text":" | ","color":"#989898"},{"text":"Brown Mushroom","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=10,svm_ep.p.flora_item=10}] title [{"text":" | ","color":"#989898"},{"text":"Red Mushroom","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=11,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Acacia Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=11,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Acacia Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=11,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Acacia Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=11,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Tall Grass","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=12,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Cherry Sapling","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=12,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Cherry Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=12,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Cherry Log","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=12,svm_ep.p.flora_item=4}] 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_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Mangrove Propagule","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=13,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Mangrove Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=13,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Mangrove Log","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=1}] title [{"text":" | ","color":"#989898"},{"text":"Moss Block","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=2}] title [{"text":" | ","color":"#989898"},{"text":"Azalea","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=3}] title [{"text":" | ","color":"#989898"},{"text":"Flowering Azalea","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=4}] title [{"text":" | ","color":"#989898"},{"text":"Azalea Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=5}] title [{"text":" | ","color":"#989898"},{"text":"Flowering Azalea Leaves","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=6}] title [{"text":" | ","color":"#989898"},{"text":"Hanging Roots","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=7}] title [{"text":" | ","color":"#989898"},{"text":"Small Dripleaf","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=8}] title [{"text":" | ","color":"#989898"},{"text":"Big Dripleaf","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=9}] title [{"text":" | ","color":"#989898"},{"text":"Spore Blossom","color":"#509930"},{"text":" | ","color":"#989898"}]
title @s[scores={svm_ep.p.flora_climate=14,svm_ep.p.flora_item=10}] title [{"text":" | ","color":"#989898"},{"text":"Glow Berries","color":"#509930"},{"text":" | ","color":"#989898"}]

title @s[scores={svm_ep.using_move=680..}] 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=..679}] subtitle [{"text":" | ","color":"#989898"},{"text":"Hold for more","color":"#999999"},{"text":" | ","color":"#989898"}]


execute as @s[scores={svm_ep.using_move=..660}] run function svm_ep:power/flora/item/craft