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

# -> Move entity
tp ~ ~-9999 ~

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

# -> Move entity back
tp ~ ~ ~

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