data merge entity @s {Glowing:0b,Invulnerable:0b}

tag @s remove stellarity.dragon.invulnerable

playsound minecraft:block.conduit.deactivate hostile @a[distance=0..] ~ ~ ~ 100 1
playsound minecraft:block.beacon.deactivate hostile @a[distance=0..] ~ ~ ~ 100 1

bossbar set stellarity:ender_dragon color pink
