scoreboard players remove @s generic_timer2 1
execute at @s run tp @s ^ ^ ^0.2
execute at @s unless block ~ ~ ~ #pctf:projectile_pass run function pctf:logic/items/scrolls/illusory_bridge/detonate
execute at @s run function pctf:logic/items/scrolls/illusory_bridge/fx

execute at @s positioned ~ ~-2 ~ if block ~ ~ ~ air align xz run function pctf:logic/items/scrolls/illusory_bridge/place_block

function pctf:logic/items/scrolls/collide_check

execute if score @s generic_timer2 matches 1.. run function pctf:logic/items/scrolls/illusory_bridge/loop