summon ghast ~ ~3 ~ {Tags:["jjc_mob","jjc_primal_aspid","jjc_ghast"],attributes:[{id:"generic.scale",base:0.5},{id:"generic.max_health",base:6}],Health:6,Motion:[0d,-0.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_primal_aspid_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false"}},teleport_duration:1,transformation:{translation:[1.25f,-2.5f,1.25f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[2.5f,2.5f,2.5f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false",vault_state:"ejecting"}},teleport_duration:1,transformation:{translation:[-1.25f,-1.75f,-0.625f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.75f,0.75f,0.75f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false",vault_state:"ejecting"}},teleport_duration:1,transformation:{translation:[-2f,-1.75f,-0.625f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.75f,0.75f,0.75f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false",vault_state:"ejecting"}},teleport_duration:1,transformation:{translation:[2f,-1.75f,-0.625f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.75f,0.75f,0.75f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:vault",Properties:{ominous:"false",vault_state:"ejecting"}},teleport_duration:1,transformation:{translation:[2.75f,-1.75f,-0.625f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.75f,0.75f,0.75f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:nether_bricks"},teleport_duration:1,transformation:{translation:[-1.225f,-1.725f,-0.6f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.7f,0.7f,0.7f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:nether_bricks"},teleport_duration:1,transformation:{translation:[-1.975f,-1.725f,-0.6f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.7f,0.7f,0.7f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:nether_bricks"},teleport_duration:1,transformation:{translation:[1.975f,-1.725f,-0.6f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.7f,0.7f,0.7f]}},{id:"block_display",Tags:["jjc","jjc_nov","jjc_primal_aspid_zs0"],block_state:{Name:"minecraft:nether_bricks"},teleport_duration:1,transformation:{translation:[2.725f,-1.725f,-0.6f],left_rotation:[1f,0f,0f,1f],right_rotation:[0f,1f,0f,0f],scale:[0.7f,0.7f,0.7f]}}]}
execute positioned ~ ~3 ~ run scoreboard players add @n[distance=..200,type=ghast,tag=primal_aspid] jjc_damage 3
execute positioned ~ ~3 ~ as @n[distance=..200,type=ghast ,tag=primal_aspid,tag=!jjc_spawn] at @s run scoreboard players operation @s jjc_damage += @n[distance=..200,tag=jjc_jjc] jjc_ominous