execute as @s[nbt={OnGround:1b}] run tag @s add Grounded
scoreboard players add @s KyuDummy 1
execute as @s[scores={KyuDummy=1}] run execute at @s run tp @s ~ ~ ~ facing entity @p[gamemode=!spectator]
execute as @s[scores={KyuDummy=1}] run execute at @s run tp @s ~ ~ ~ ~ 40
#execute as @s[scores={KyuDummy=31..},tag=!Grounded] run execute at @s run tp @s ~ ~ ~ ~3 40
execute as @s[scores={KyuDummy=31..},tag=!Grounded] run execute store result score @s KyuDummy2 run data get entity @s Rotation[0]
execute as @s[scores={KyuDummy=31..},tag=!Grounded] run scoreboard players add @s KyuDummy2 3
execute as @s[scores={KyuDummy=31..},tag=!Grounded] run execute store result entity @s Rotation[0] float 1 run scoreboard players get @s KyuDummy2