execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s run playsound entity.ghast.shoot hostile @a[distance=..200] ~ ~1 ~ 2 1
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^2 ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^2 ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^2 ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^2 ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^-2 ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^-2 ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^-2 ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^-2 ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^ ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^ ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^ ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^ ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^ ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^ ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^ ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^ ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^2 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^-2 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^2 ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^2 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^2 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^2 ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^-2 ^2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^-2 ^-2 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^2 ^-2 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}
# execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s positioned ~ ~-3.5 ~ run summon small_fireball ^ ^-2 ^-2 {Fire:10000s,NoGravity:1b,acceleration_power:0.01d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_nov"]}]}

execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] 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=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s run tp @s ~ ~ ~ ~30 ~
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s run tp @s ~ ~ ~ ~ ~15
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..},predicate=colosseum_of_fools:random/0.5] at @s as @n[distance=..200,type=marker,tag=jjc_oblb1] at @s run tp @s ~ ~ ~ ~ ~-30
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result score @s jjc_y1 run data get entity @s Pos[1] 1000
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s store result score @s jjc_x1 run data get entity @s Pos[0] 1000
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s store result score @s jjc_y1 run data get entity @s Pos[1] 1000
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] at @s store result score @s jjc_z1 run data get entity @s Pos[2] 1000
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[0] double 0.00025 run scoreboard players operation @s jjc_x1 -= @n[distance=..200,type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] jjc_x1
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[1] double 0.00025 run scoreboard players operation @s jjc_y1 -= @n[distance=..200,type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] jjc_y1
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[2] double 0.00025 run scoreboard players operation @s jjc_z1 -= @n[distance=..200,type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] jjc_z1
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..},tag=jjc_oblb_rage] at @s as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[0] double 0.0005 run scoreboard players get @s jjc_x1
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..},tag=jjc_oblb_rage] at @s as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[1] double 0.0005 run scoreboard players get @s jjc_y1
execute as @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..},tag=jjc_oblb_rage] at @s as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[2] double 0.0005 run scoreboard players get @s jjc_z1
scoreboard players reset @e[type=ghast,tag=jjc_oblb,scores={jjc_404=10..}] jjc_404
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s run data modify entity @s Owner set from entity @n[distance=..200,type=ghast,tag=jjc_oblb]
tag @e[type=small_fireball,tag=jjc_oblb_j0] remove jjc_oblb_j0