execute if entity @e[family=mob, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run execute as @e[type=cc_alien:ufo_normal,c=1] run event entity @s cc:stop_movement
execute if entity @e[family=mob, r=3] run execute as @e[type=cc_alien:ufo_normal,c=1] run event entity @s cc:restore_movement
execute if entity @e[family=mob, r=3] run execute as @e[type=cc_alien:ufo_normal,c=1] run event entity @s cc:clear_beam
tp @e[family=mob,r=3] ~ ~-500 ~
execute at @e[family=mob, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run tp @e[family=mob, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] ^ ^0.2 ^0.5 facing @e[type=cc_alien:ufo_normal,c=1]
execute if entity @e[family=mob, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run event entity @s cc:beam
execute if entity @e[family=mob, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run execute as @e[type=cc_alien:ufo_normal,c=1] run effect @s slowness 1 1 true


execute if entity @e[family=goat, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run execute as @e[type=cc_alien:ufo_normal,c=1] run event entity @s cc:stop_movement
execute if entity @e[family=goat, r=3] run execute as @e[type=cc_alien:ufo_normal,c=1] run event entity @s cc:restore_movement
execute if entity @e[family=goat, r=3] run execute as @e[type=cc_alien:ufo_normal,c=1] run event entity @s cc:clear_beam
tp @e[family=goat,r=3] ~ ~-500 ~
execute at @e[family=goat, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run tp @e[family=goat, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] ^ ^0.2 ^0.5 facing @e[type=cc_alien:ufo_normal,c=1]
execute if entity @e[family=goat, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run event entity @s cc:beam
execute if entity @e[family=goat, c=1, y=~-20, dy=20, x=~-2,dx=4, z=~-2,dz=4] run execute as @e[type=cc_alien:ufo_normal,c=1] run effect @s slowness 1 1 true