scoreboard players remove @s generic_timer2 1
execute if entity @s[tag=right] at @s run tp @s ^ ^-0.01 ^0.0625 ~-1.25 ~
execute if entity @s[tag=left] at @s run tp @s ^ ^-0.01 ^0.0625 ~1.25 ~

tag @s add collide_temp
execute at @s positioned ~ ~-1 ~ as @e[type=!#pctf:cannot_be_hit,tag=!spectator,tag=!raycast_hit,distance=..1.25] unless score @s ctf_ID = @n[type=marker,tag=collide_temp] ctf_ID as @n[type=marker,tag=collide_temp] at @s run function pctf:logic/items/scrolls/ethereal_blade/detonate
tag @s remove collide_temp
execute at @s run function pctf:logic/items/scrolls/ethereal_blade/fx

execute at @s run function pctf:logic/items/scrolls/collide_check

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