execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run playsound entity.ghast.shoot hostile @a[distance=..200] ~ ~1 ~ 2 1
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s positioned ~ ~1.4 ~ run data merge entity @n[distance=..200,type=block_display,tag=jjc_ob0] {block_state:{Properties:{vault_state:"inactive"}}}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s positioned ~ ~1.4 ~ run data remove entity @n[distance=..200,type=block_display,tag=jjc_ob0] brightness
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..},predicate=colosseum_of_fools:random/0.5] at @s facing entity @p[predicate=colosseum_of_fools:survive,tag=jjc_p,distance=..60] feet run tp @s ~ ~ ~ ~45 0
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^0.5 ^0.5 ^0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^-0.5 ^0.5 ^0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^0.5 ^0.5 ^-0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^-0.5 ^0.5 ^-0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^0.5 ^-0.5 ^0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^-0.5 ^-0.5 ^0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^0.5 ^-0.5 ^-0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run summon small_fireball ^-0.5 ^-0.5 ^-0.5 {Fire:10000s,NoGravity:1b,acceleration_power:0.04d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_ob_j0","jjc_obhoot0"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s run scoreboard players operation @e[distance=..200,type=marker,tag=jjc_ob_j_m,sort=nearest,limit=8] jjc_damage = @s jjc_damage
execute as @e[type=small_fireball,tag=jjc_ob_j0] store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=small_fireball,tag=jjc_ob_j0] store result score @s jjc_y1 run data get entity @s Pos[1] 1000
execute as @e[type=small_fireball,tag=jjc_ob_j0] store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] store result score @s jjc_x2 run data get entity @s Pos[0] 1000
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] store result score @s jjc_y2 run data get entity @s Pos[1] 1000
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] store result score @s jjc_z2 run data get entity @s Pos[2] 1000
execute as @e[type=small_fireball,tag=jjc_ob_j0] at @s store result entity @s Motion[0] double 0.001 run scoreboard players operation @s jjc_x1 -= @n[distance=..200,type=ghast,tag=jjc_ob,scores={jjc_303=60..}] jjc_x2
execute as @e[type=small_fireball,tag=jjc_ob_j0] at @s store result entity @s Motion[1] double 0.001 run scoreboard players operation @s jjc_y1 -= @n[distance=..200,type=ghast,tag=jjc_ob,scores={jjc_303=60..}] jjc_y2
execute as @e[type=small_fireball,tag=jjc_ob_j0] at @s store result entity @s Motion[2] double 0.001 run scoreboard players operation @s jjc_z1 -= @n[distance=..200,type=ghast,tag=jjc_ob,scores={jjc_303=60..}] jjc_z2

execute as @e[type=small_fireball,tag=jjc_ob_j0] at @s run data modify entity @s Owner set from entity @n[distance=..200,type=ghast,tag=jjc_ob]
tag @e[type=small_fireball,tag=jjc_ob_j0] remove jjc_ob_j0
execute as @e[type=ghast,tag=jjc_ob,scores={jjc_303=60..}] at @s store result score @s jjc_303 run random value -20..20