
# -> Decrease animal stamina
scoreboard players remove @s OverlyRealistic.Animal.Stamina 1

# -> Apply invulnerability
data modify entity @s Invulnerable set value 1b

# -> Move entity
tp ~ ~-9999 ~

# -> Apply velocity
execute positioned ~ ~-9999 ~ \
    positioned ^ ^ ^-11.8 \
    summon end_crystal run \
        damage @s 0

# -> Move entity back
tp ~ ~ ~

data modify entity @s Motion[1] set value -0.02

# -> Remove invulnerability
data modify entity @s Invulnerable set value 0b
