execute store result score @s x1 run data get entity @s Pos[0] 2
execute store result score @s y1 run data get entity @s Pos[1] 2
execute store result score @s z1 run data get entity @s Pos[2] 2

tag @s remove moved
execute unless score @s x1 = @s x2 run tag @s add moved
execute unless score @s y1 = @s y2 run tag @s add moved
execute unless score @s z1 = @s z2 run tag @s add moved

scoreboard players operation @s x2 = @s x1
scoreboard players operation @s y2 = @s y1
scoreboard players operation @s z2 = @s z1

execute if entity @n[type=marker,tag=rlgl,tag=stop] if entity @s[tag=moved] run function pctf:logic/items/lucky_block/outcomes/global/redlight_greenlight/player/moved