scoreboard players add @s[nbt={OnGround:1b},scores={laserdance.onground=..10}] laserdance.onground 1
execute as @s[scores={laserdance.didjump=1..}] run function ws:item/laserdance/generatedata with entity @s
scoreboard players set @s laserdance.didjump 0
execute as @s[scores={laserdance.onground=10..}] run function ws:item/laserdance/reset