summon area_effect_cloud ^ ^ ^0.25 {Tags:[AnimSacP],Particle:"block air"}
scoreboard players add @s TempDepth 1
execute store result score Y Temp run data get entity @e[tag=AnimSacP,limit=1] Pos[1] 10
particle dust 1 1 0 1 ~ ~ ~ 0 0 0 0 1
kill @e[tag=AnimSacP]
execute if score Y Temp <= 116 Integer if entity @e[tag=SacTarget,sort=nearest,limit=1,distance=..0.51] if score @s TempDepth < 3 Integer positioned ^ ^ ^0.26 run function main:animatesacrifice
execute if score Y Temp <= 116 Integer unless entity @e[tag=SacTarget,sort=nearest,limit=1,distance=..0.51] unless score @s TempDepth > 500 Integer positioned ^ ^ ^0.25 run function main:animatesacrifice