#cooldown
function main:settings/stats/cooldown/calculation {"cooldown":6,"type":q}
scoreboard players set @s[scores={rc_duration_t=1..}] rc_duration_t 5
scoreboard players set @s q_duration_t 120
item modify entity @s weapon main:archer/archer_1

#damage calculation
function main:mechanics/damage/enemy/calculation {"id":id1_1,"character":archer,"type":"q","damage":30,"stat":"attack","local_bonus":0,"indicator":2}

execute as @e[type=item_display,tag=archer_rc] run data modify entity @s item set value {id:"minecraft:warped_fungus_on_a_stick",count:1,components:{item_model:"minecraft:weapons/archer/archer_3"}}

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