scoreboard players operation @s untwo.proj.bounce.hitstop.now = @s untwo.proj.bounce.hitstop

scoreboard players operation @s untwo.proj.bounce.hittime.now = @s untwo.proj.bounce.hittime
scoreboard players add @s untwo.proj.bounce.count 1

execute if score @s untwo.proj.bounce.count >= @s untwo.proj.bounce.limit run tag @s add untwo.proj.hit.limit
execute if score @s untwo.proj.bounce.count < @s untwo.proj.bounce.limit run tag @s add untwo.proj.hit.notlimit

function untwo:proj_sys/component/bounce/direction/
function untwo:proj_sys/component/bounce/pos_check/
execute if entity @s[tag=!untwo.bounce.hit.y] run function untwo:proj_sys/component/bounce_gravity/magnitude/x
execute if entity @s[tag=untwo.bounce.hit.y] run function untwo:proj_sys/component/bounce_gravity/magnitude/y
function untwo:proj_sys/component/bounce/vector/

