#function untwo:proj_sys/motion/loop


#次ブロックが空気ならテレポート、ヒットしたらTag追加
tp @s ^ ^ ^0.5

#Blockにあたったか
scoreboard players set #&proj.hit untwo.temp.0 0
execute unless score @s untwo.proj.bounce.hitstop.now matches 1.. store result score #&proj.hit untwo.temp.0 at @s run function untwo:proj_sys/pos_check/5
execute if score #&proj.hit untwo.temp.0 matches 1.. run tag @s add untwo.proj.hit

#テレポートを中止
execute if score #&proj.hit untwo.temp.0 matches 1.. run tp @s ~ ~ ~

particle dust_color_transition{from_color:[0.459,1.000,0.839],scale:1,to_color:[1.000,0.976,0.310]} ~ ~ ~ 0.1 0.1 0.1 1 1 normal

#EntityHit
execute at @s positioned ~-.75 ~-.75 ~-.75 if entity @e[dx=0,type=#untwo:item/shield/proj/smite] if function untwo:enchant/unique/stream/smite/proj/motion/entity_hit run tag @s add untwo.proj.entity_hit
