#function untwo:proj_sys/example/bounce_1/per
#exampleが毎tick実行するfunction
execute if entity @s[tag=untwo.kill.599t.run] run tag @s remove untwo.kill.599t.run
function untwo:proj_sys/preset/bounce_5/
execute if entity @s[tag=untwo.proj.hit_stop] at @s run particle minecraft:flame ~ ~ ~ 0.1 0.1 0.1 0.05 2
execute if entity @s[tag=!untwo.proj.hit_stop] at @s run particle flame ~ ~ ~ 0 0 0 0 0 force
#execute if score @s untwo.proj.age >= @s untwo.proj.duration run tag @s add untwo.proj.hit
execute if score @s untwo.proj.age >= @s untwo.proj.life_time run kill @s
execute if entity @s[tag=untwo.proj.hit.limit] at @s run function untwo:proj_sys/example/bounce_5/per_hit/
