team join stellarity.purple_glow @s
data merge entity @s {Glowing:1b,Invulnerable:1b}

tag @s add stellarity.dragon.invulnerable

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

bossbar set stellarity:ender_dragon color white
