execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.05d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.05d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.05d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.05d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.05d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1,tag=jjc_oblb_rage] at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.1d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1,tag=jjc_oblb_rage] at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.1d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1,tag=jjc_oblb_rage] at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.1d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1,tag=jjc_oblb_rage] at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.1d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1,tag=jjc_oblb_rage] at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s run summon small_fireball ^ ^-1 ^ {Fire:10000s,NoGravity:1b,acceleration_power:0.1d,LeftOwner:0b,Tags:["jjc","jjc_ob_j","jjc_oblb_j0","jjc_oblb_j_dectected"],Passengers:[{id:"marker",Tags:["jjc_ob_j_m","jjc_ob_j_m0","jjc_nov"]}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s at @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] run scoreboard players operation @e[type=marker,tag=jjc_ob_j_m0,distance=..2] jjc_damage = @s jjc_damage

execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s store result score @e[type=small_fireball,tag=jjc_oblb_j0,distance=..1] jjc_x1 run data get entity @s Motion[0] 1000
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s store result score @e[type=small_fireball,tag=jjc_oblb_j0,distance=..1] jjc_y1 run data get entity @s Motion[1] 1000
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s as @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected] at @s store result score @e[type=small_fireball,tag=jjc_oblb_j0,distance=..1] jjc_z1 run data get entity @s Motion[2] 1000

execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result score @s jjc_random run random value -20..20
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[0] double 0.005 run scoreboard players operation @s jjc_x1 += @s jjc_random
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result score @s jjc_random run random value -20..20
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[1] double 0.005 run scoreboard players operation @s jjc_y1 += @s jjc_random
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result score @s jjc_random run random value -20..20
execute as @e[type=small_fireball,tag=jjc_oblb_j0] at @s store result entity @s Motion[2] double 0.005 run scoreboard players operation @s jjc_z1 += @s jjc_random

execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s run data merge entity @s {active_effects:[{id:"resistance",amplifier:6,duration:5,show_particles:0b,show_icon:0b}]}
execute as @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] anchored eyes positioned ^ ^ ^ at @s run kill @n[distance=..200,type=fireball,tag=!jjc_oblb_j_dectected]

tag @e[type=ghast,tag=jjc_oblb,tag=jjc_oblb_shoot1] remove jjc_oblb_shoot1
tag @e[type=small_fireball,tag=jjc_oblb_j0] remove jjc_oblb_j0
tag @e[type=marker,tag=jjc_ob_j_m0] remove jjc_ob_j_m0