scoreboard players remove @s generic_timer 1

scoreboard players set @s generic_timer2 20
execute if score @s generic_timer matches 1.. run function pctf:logic/items/scrolls/silence_beam/loop

scoreboard players add @s generic_timer3 1
execute if score @s generic_timer3 matches 2 run function pctf:logic/items/scrolls/silence_beam/ring
execute if score @s generic_timer3 matches 2.. run scoreboard players set @s generic_timer3 0

execute if score @s generic_timer matches ..0 run function pctf:logic/items/scrolls/silence_beam/detonate