# execute if score .rc_charge archer matches 1.. run data modify storage archer indicator.step set value '{"translate":"space.-24","font":"default"},'
execute if score .rc_charge archer matches ..0 run data modify storage archer indicator.step set value ''
execute if score .arrow archer matches 0 run data modify storage archer indicator.step_1 set value '{"translate":"space.5","font":"default"}'
execute if score .arrow archer matches 1 run data modify storage archer indicator.step_1 set value '{"translate":"space.21","font":"default"}'
execute if score .arrow archer matches 2 run data modify storage archer indicator.step_1 set value '{"translate":"space.19","font":"default"}'
execute if score .arrow archer matches 3 run data modify storage archer indicator.step_1 set value '{"translate":"space.11","font":"default"}'

#rc charge
execute if score .rc_charge archer matches ..0 run data modify storage archer indicator.rc set value ''
# execute if score .rc_charge archer matches 1..5 run data modify storage archer indicator.rc set value ',{"text":"\\uE065\\uE065\\uE065\\uE066\\uE065","color":"#4e5c24","bold":false,"font":"minecraft:ui"}'
execute if score .rc_charge archer matches 2 run playsound item.crossbow.loading_start master @a ~ ~ ~ 10 1
execute if score .rc_charge archer matches 4 run playsound item.crossbow.loading_middle master @a ~ ~ ~ 10 1
# execute if score .rc_charge archer matches 6..10 run data modify storage archer indicator.rc set value ',{"text":"\\uE067\\uE065\\uE065\\uE066\\uE065","color":"#4e5c24","bold":false,"font":"minecraft:ui"}'
# execute if score .rc_charge archer matches 11..15 run data modify storage archer indicator.rc set value ',{"text":"\\uE067\\uE067\\uE065\\uE066\\uE065","color":"#4e5c24","bold":false,"font":"minecraft:ui"}'
# execute if score .rc_charge archer matches 16..20 run data modify storage archer indicator.rc set value ',{"text":"\\uE067\\uE067\\uE067\\uE066\\uE065","color":"#4e5c24","bold":false,"font":"minecraft:ui"}'
# execute if score .rc_charge archer matches 21..25 run data modify storage archer indicator.rc set value ',{"text":"\\uE067\\uE067\\uE067\\uE068\\uE065","color":"#4e5c24","bold":false,"font":"minecraft:ui"}'
# execute if score .rc_charge archer matches 26.. run data modify storage archer indicator.rc set value ',{"text":"\\uE067\\uE067\\uE067\\uE068\\uE069","color":"#4e5c24","bold":false,"font":"minecraft:ui"}'
execute if score .rc_charge archer matches 9 run playsound item.crossbow.loading_end master @a ~ ~ ~ 10 1
execute if score .rc_charge archer matches 9 run playsound entity.experience_orb.pickup master @a ~ ~ ~ 10 1

execute if score @s level matches ..-1 run data modify storage archer indicator.arrow set value ''

execute if score .arrow archer matches ..0 run data modify storage archer indicator.arrow set value ',{"translate":"space.-21","font":"default"},{"text":"\\uE000","color":"#4e5c24","bold":false,"font":"minecraft:archer"},{"translate":"space.-21","font":"default"},{"text":"\\uE023\\uE010\\uE021","color":"#4e5c24","bold":false,"font":"minecraft:archer"}'
execute if score .arrow archer matches 1 run data modify storage archer indicator.arrow set value ',{"translate":"space.-22","font":"default"},{"text":"\\uE000","color":"#4e5c24","bold":false,"font":"minecraft:archer"},{"translate":"space.-23","font":"default"},{"text":"\\uE020\\uE011\\uE022","color":"#4e5c24","bold":false,"font":"minecraft:archer"}'
execute if score .arrow archer matches 2 run data modify storage archer indicator.arrow set value ',{"translate":"space.-23","font":"default"},{"text":"\\uE000","color":"#4e5c24","bold":false,"font":"minecraft:archer"},{"translate":"space.-23","font":"default"},{"text":"\\uE021\\uE012\\uE023","color":"#4e5c24","bold":false,"font":"minecraft:archer"}'
execute if score .arrow archer matches 3 run data modify storage archer indicator.arrow set value ',{"translate":"space.-22","font":"default"},{"text":"\\uE000","color":"#4e5c24","bold":false,"font":"minecraft:archer"},{"translate":"space.-22","font":"default"},{"text":"\\uE022\\uE013\\uE020","color":"#4e5c24","bold":false,"font":"minecraft:archer"}'

execute if score @s level matches ..-1 run data modify storage archer indicator.cooldowns set value ''

execute if score .arrow archer matches 0 run data modify storage archer indicator.cooldowns set value ',{"translate":"space.-8"},{"score":{"name":".storm_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"},{"translate":"space.-20"},{"score":{"name":".thundering_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"}'
execute if score .arrow archer matches 1 run data modify storage archer indicator.cooldowns set value ',{"translate":"space.-16"},{"score":{"name":".storm_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"},{"translate":"space.5"},{"score":{"name":".gale_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"}'
execute if score .arrow archer matches 2 run data modify storage archer indicator.cooldowns set value ',{"translate":"space.-28"},{"score":{"name":".storm_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"},{"translate":"space.5"},{"score":{"name":".gale_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"},{"translate":"space.5"},{"score":{"name":".thundering_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"}'
execute if score .arrow archer matches 3 run data modify storage archer indicator.cooldowns set value ',{"translate":"space.-28"},{"score":{"name":".gale_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"},{"translate":"space.5"},{"score":{"name":".thundering_cooldown_s","objective":"archer"},"color":"white","bold":false,"font":"minecraft:archer"}'


function main:characters/archer/indicator_1 with storage archer indicator