Basically, this is being run every tick:
scoreboard players add @a[tag=travelling,tag=teleported] grounded_for 1
execute as @a[tag=travelling,tag=teleported] if score @s grounded_for >= .const groundedconst run function testing:priv/teleport/landed```
this checks for how long the player has been grounded for. once this score reached above "groundedconst" which is an arbitrary value, it is meant to run the function "landed"
title @a title "GROUNDED"
$title @a[tag=travelling,tag=teleported] title ["",{"text":"$(title)","color":"dark_red"}]
scoreboard players set @a[tag=travelling,tag=teleported] grounded_for 0
tag @a[tag=travelling,tag=teleported] remove teleported
tag @a[tag=travelling] remove travelling```
which looks like this. however, the function landed is never run, why is this?