# execute as @s[scores={in_air=..99},nbt=!{OnGround:1b}] at @s run scoreboard players add @s in_air 1
execute as @s[tag=!classless,tag=!camera_spectate,scores={in_air=..600},predicate=main:movement/in_air_2] at @s run scoreboard players add @s in_air 1
execute as @s[scores={in_air=1..},predicate=!main:movement/in_air_2] at @s run scoreboard players set @s in_air 0
execute as @s[scores={in_air=1..}] at @s positioned ~ ~-0.5 ~ if entity @e[type=shulker,dx=0] run scoreboard players set @s in_air 0

execute as @s[scores={walking=1..}] run tag @s add moving
execute as @s[scores={running=1..}] run tag @s add moving
execute as @s[scores={walking=..0,running=..0}] run tag @s remove moving
execute as @s[scores={walking=1..}] run scoreboard players set @s walking 0
execute as @s[scores={running=1..}] run scoreboard players set @s running 0