scoreboard players set @s laserdance.onground 0
scoreboard players operation @s laserdance.result = @s stat.laserdance
scoreboard players operation @s laserdance.result -= @s laserdance.jump
execute if score @s laserdance.result = @s stat.laserdancemax at @s run playsound minecraft:custom.hup player @s ~ ~ ~ 0.75
execute if score @s laserdance.result <= @s stat.laserdancemax run scoreboard players operation @s laserdance.result = @s stat.laserdancemax
execute if score @s laserdance.result matches -99 at @s run playsound minecraft:music.thealamente player @s ~ ~ ~ 0.25
$execute store result storage ws:laserdance stats[{UUID:$(UUID)}].amount float -0.02 run scoreboard players get @s laserdance.result
$function ws:misc/stats/updatelaserdance with storage ws:laserdance stats[{UUID:$(UUID)}]