execute if score @s timer matches 0 run playsound minecraft:item.crossbow.loading_start neutral @a ~ ~ ~ 2 .8
execute if score @s timer matches 20 run playsound minecraft:item.crossbow.loading_middle neutral @a ~ ~ ~ 2 .8
execute if score @s timer matches 40 run playsound minecraft:item.crossbow.loading_end neutral @a ~ ~ ~ 2 .8
execute if score @s timer matches 40 positioned ~ ~1.55 ~ run item replace entity @n[tag=ballista] container.0 with crossbow[minecraft:charged_projectiles=[{count:1,id:arrow}]]
#execute if score @s timer matches 40 positioned ~ ~1.7 ~ run item replace entity @n[tag=balarrow] container.0 with arrow
execute if score @s timer matches 70 run tag @s remove reloading