execute store result score @s pctf_gamemode run data get entity @s playerGameType
tp @s ~ ~1000 ~
gamemode creative

$scoreboard players set @s pctf_push $(power)
$function pctf:motion/power {"x":"$(x)", "y":"$(y)", "z":"$(z)"}

function pctf:motion/return_gamemode
tp @s ~ ~ ~