function main:settings/scoreboards/load
function main:menu/remove
tag @s add archer
tag @s remove melee_class
tag @s add ranged_class
function main:settings/player_data/main {"id":1}
scoreboard players set @s archer 0
function main:characters/archer/info/info_simple

attribute @s minecraft:scale base set 1
execute at @s run playsound block.note_block.harp master @s ~ ~ ~ 1 1
execute as @e[type=text_display,tag=choice] run data modify entity @s background set value 7566195
data modify entity @n[type=text_display,tag=archer] background set value -16777216

scoreboard players set .arrow archer 0
scoreboard players set .arrow_animation_type archer 0
scoreboard players set .rc_animation archer 0
scoreboard players set .rc_release_animation archer 0
scoreboard players set .rc_hold_animation archer 0
scoreboard players set .weapon_animation archer 0
scoreboard players set .shift_animation archer 0
scoreboard players set .q_animation archer 0

scoreboard players set .gale_cooldown_s archer 0
scoreboard players set .thundering_cooldown_s archer 0
scoreboard players set .storm_cooldown_s archer 0
scoreboard players set .gale_cooldown_t archer 0
scoreboard players set .thundering_cooldown_t archer 0
scoreboard players set .storm_cooldown_t archer 0
scoreboard players set .extra_cooldown archer 0

scoreboard players set .upgrade_5_cd archer 0

fill 65 -58 19 63 -56 19 pink_stained_glass
fill 65 -58 20 63 -56 20 pink_concrete_powder

#icon
kill @e[type=item_display,tag=classes]
kill @e[type=text_display,tag=fake_start]
kill @e[type=interaction,tag=fake_start]
execute at @e[type=block_display,tag=main_menu] run particle dust{color:[1,0,1],scale:0.5} 64 -56.5 18 .5 0.5 0.5 1 25
execute at @e[type=block_display,tag=main_menu] run summon item_display 64 -56.5 18 {Glowing:1b,Tags:["classes"],Rotation:[0f,0f],item:{id:"minecraft:warped_fungus_on_a_stick",count:1,components:{item_model:"minecraft:weapons/archer/archer"}}}
team join purple_color @e[type=minecraft:item_display]

execute at @s run playsound minecraft:entity.illusioner.cast_spell master @a ~ ~ ~ 3 1
execute at @s run playsound block.azalea_leaves.break master @a ~ ~ ~ 3 1

#start
kill @e[type=interaction,tag=start]
kill @e[type=text_display,tag=start]