summon ghast ~ ~30 ~ {Tags:["jjc_mob","jjc_ghast_bomber","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}],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:"block_display",Tags:["jjc","jjc_nov","jjc_ghast_bomber_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false"}},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:"block_display",Tags:["jjc","jjc_nov","jjc_ghast_bomber_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false",vault_state:"ejecting"}},teleport_duration:1,transformation:{translation:[-2.5f,-4f,-1.25f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[2.5f,2.5f,2.5f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_ghast_bomber_zs0"],block_state:{Name:"minecraft:nether_bricks"},teleport_duration:1,transformation:{translation:[-2.5f,-3.95f,-1.24f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[2.4f,2.4f,2.4f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_ghast_bomber_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false",vault_state:"ejecting"}},teleport_duration:1,transformation:{translation:[5f,-4f,-1.25f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[2.5f,2.5f,2.5f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_ghast_bomber_zs0"],block_state:{Name:"minecraft:nether_bricks"},teleport_duration:1,transformation:{translation:[4.9f,-3.95f,-1.24f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[2.4f,2.4f,2.4f]}}]}
execute positioned ~ ~30 ~ run scoreboard players add @n[distance=..200,type=ghast,tag=jjc_ghast_bomber] jjc_damage 5
execute positioned ~ ~30 ~ as @n[distance=..200,type=ghast,tag=jjc_ghast_bomber,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 ~ 3
particle flame ~ ~20 ~ 2 0.5 2 0.05 100 force