$tp @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] $(x) $(y) $(z)
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] run playsound minecraft:block.wet_grass.break master @a[distance=..40] ~ ~ ~ 2 0.1
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] run playsound minecraft:block.wet_grass.break master @a[distance=..40] ~ ~ ~ 2 2
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] run playsound minecraft:entity.arrow.hit master @a[distance=..40] ~ ~ ~ 2 2
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] run particle dripping_obsidian_tear ~ ~5 ~ 0.8 2 0.8 1 60
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] run particle explosion ~ ~2 ~ 0 0 0 0.5 5
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] if predicate kiwi2:chance_random_20 run summon phantom ~ ~ ~ {Tags:["wave_mob"]}
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] if predicate kiwi2:chance_random_20 if entity @a[distance=..20] run effect give @a[distance=..20] levitation 1 5 true
execute if entity @s[nbt={HurtTime:10s}] as @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] at @e[tag=phantom_sovereign_damage_marker,limit=1,sort=nearest] if predicate kiwi2:chance_random_10 run function kiwi2:custom_mobs_fx/phantom_sovereign_hurt