summon ghast ~ ~30 ~ {Tags:["jjc_mob","jjc_ghast"],attributes:[{id:"generic.max_health",base:10}],Health:10,Motion:[0d,-2d,0d],active_effects:[{id:"minecraft:unluck",amplifier:97b,duration:40,show_particles:0b}]}
execute positioned ~ ~30 ~ run scoreboard players add @n[distance=..200,type=ghast,tag=jjc_ghast] jjc_damage 5
execute positioned ~ ~30 ~ as @n[distance=..200,type=ghast,tag=jjc_ghast,tag=!jjc_spawn] at @s run scoreboard players operation @s jjc_damage += @n[distance=..200,tag=jjc_jjc] jjc_ominous
playsound entity.ghast.scream hostile @a[distance=..200] ~ ~20 ~ 2
particle flame ~ ~20 ~ 2 0.5 2 0.05 100 force