scoreboard players add @s jjc_303 1
scoreboard players add @s jjc_404 1
execute at @s[scores={jjc_404=1}] run playsound entity.blaze.shoot hostile @a[distance=..200] ~ ~ ~ 2 1
execute at @s[scores={jjc_404=1}] anchored eyes run summon small_fireball ^ ^ ^ {Tags:["jjc_wildfire_j_detected","jjc_wildfire_j0","jjc_wildfire_j"],Passengers:[{id:"marker",Tags:["jjc_wildfire_j_m","jjc_nov"]}]}
scoreboard players reset @s[scores={jjc_404=4..}] jjc_404
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s run data modify entity @s Owner set from entity @n[distance=..200,type=blaze] UUID
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result score @s jjc_x1 run scoreboard players get @n[distance=..200,type=blaze] jjc_x1
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result score @s jjc_y1 run scoreboard players get @n[distance=..200,type=blaze] jjc_y1
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result score @s jjc_z1 run scoreboard players get @n[distance=..200,type=blaze] jjc_z1
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result score @s jjc_random run random value -20..20
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result entity @s Motion[0] double 0.001 run scoreboard players operation @s jjc_x1 += @s jjc_random
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result score @s jjc_random run random value -20..20
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result entity @s Motion[1] double 0.001 run scoreboard players operation @s jjc_y1 += @s jjc_random
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result score @s jjc_random run random value -20..20
execute as @e[type=small_fireball,tag=jjc_wildfire_j0] at @s store result entity @s Motion[2] double 0.001 run scoreboard players operation @s jjc_z1 += @s jjc_random
tag @e[type=small_fireball,tag=jjc_wildfire_j0] remove jjc_wildfire_j0
execute at @s[scores={jjc_303=20..}] run function colosseum_of_fools:ss/wildfire/1/end