scoreboard players remove @s generic_timer 1

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

playsound minecraft:block.amethyst_cluster.break block @a ~ ~ ~ 2 2

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