#function untwo:proj_sys/motion/
#毎tick起動、motion loop起動

#1tick内で起動する処理
scoreboard players add @s untwo.proj.age 1
scoreboard players add @s untwo.proj.gravity.falling_time 1

tag @s remove untwo.proj.hit.notlimit
execute if score @s untwo.proj.bounce.hittime.now matches 1.. run scoreboard players remove @s untwo.proj.bounce.hittime.now 1

#hitstop
execute if entity @s[tag=untwo.proj.hit_stop] run tag @s remove untwo.proj.hit_stop
execute if score @s untwo.proj.bounce.hitstop.now matches 1.. run return run function untwo:proj_sys/component/hitstop/

#drag

#gravity

#homming
#execute at @s run function function untwo:proj_sys/component/homming/ homming.{target: ,strength:, weakness}


#motion(-bounce)
function untwo:proj_sys/motion/bounce_1/