summon ghast ~ ~ ~ {Tags:["jjc_mob","jjc_ghast","jjc_oblb","jjc_boss"],attributes:[{id:"generic.scale",base:1},{id:"generic.max_health",base:26}],Health:26,ArmorItems:[{id:"iron_boots",components:{enchantments:{"projectile_protection":1}}},{id:"iron_leggings",components:{enchantments:{"projectile_protection":1}}},{id:"iron_chestplate",components:{enchantments:{"projectile_protection":1}}},{id:"iron_helmet",components:{enchantments:{"projectile_protection":1}}}],Passengers:[{id:"marker",Tags:["jjc","jjc_bossbar"],data:{name:"Oblobble"}},{id:"block_display",Tags:["jjc","jjc_oblb","jjc_oblb0","jjc_nov","jjc_ghast"],block_state:{Name:"minecraft:trial_spawner",Properties:{ominous:"true",trial_spawner_state:"active"}},teleport_duration:1,transformation:{translation:[2.5f,-5f,2.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[5f,5f,5f]}},{id:"marker",Tags:["jjc_oblb","jjc_oblb1","jjc_nov"]}],Motion:[0d,-1d,0d],active_effects:[{id:"minecraft:unluck",amplifier:97b,duration:40,show_particles:0b}]}
scoreboard players add @n[distance=..200,type=ghast,tag=jjc_oblb] jjc_damage 3
execute as @n[distance=..200,type=ghast,tag=jjc_oblb,tag=!jjc_spawn] at @s run scoreboard players operation @s jjc_damage += @n[distance=..200,tag=jjc_jjc] jjc_ominous
playsound entity.ghast.ambient hostile @a[distance=..200] ~ ~ ~ 2 0