scoreboard players add @e[type=fireball,name=!i] 66 1

execute at @e[type=armor_stand,name=hil] run tp @e[type=armor_stand,name=hil,limit=1,distance=..2] @e[type=fireball,distance=..3,limit=1]

scoreboard players add @e[type=armor_stand,name=hil] 66 1
execute at @e[type=fireball,name=!i] run scoreboard players set @e[type=armor_stand,name=hil,distance=..2] 66 0

execute at @e[type=armor_stand,name=hil,scores={66=1}] run summon creeper ~ ~.33 ~ {Motion:[0.0,.75,0.0],ArmorItems:[{},{id:leather_leggings,Count:1,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:5}]}},{},{id:blaze_powder,Count:1}],ArmorDropChances:[0.0F,0.0F,0.0F,0.01F],active_effects:[{id:"minecraft:speed",amplifier:0,duration:200},{id:"minecraft:resistance",amplifier:4,duration:20},{id:"minecraft:fire_resistance",amplifier:1,duration:300}]}
execute at @e[type=armor_stand,name=hil,scores={66=1}] run summon creeper ~ ~ ~ {Motion:[0.0,.62,0.0],ArmorItems:[{},{id:leather_leggings,Count:1,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:5}]}},{},{id:blaze_powder,Count:1}],ArmorDropChances:[0.0F,0.0F,0.0F,0.01F],active_effects:[{id:"minecraft:speed",amplifier:0,duration:200},{id:"minecraft:resistance",amplifier:4,duration:20},{id:"minecraft:fire_resistance",amplifier:1,duration:300}]}
execute at @e[type=armor_stand,name=hil,scores={66=1}] run summon creeper ~ ~.66 ~ {Motion:[0.0,.88,0.0],ArmorItems:[{},{id:leather_leggings,Count:1,tag:{Enchantments:[{id:"minecraft:blast_protection",lvl:5}]}},{},{id:blaze_powder,Count:1}],ArmorDropChances:[0.0F,0.0F,0.0F,0.01F],active_effects:[{id:"minecraft:speed",amplifier:0,duration:200},{id:"minecraft:resistance",amplifier:4,duration:20},{id:"minecraft:fire_resistance",amplifier:1,duration:300}]}
execute at @e[type=armor_stand,name=hil,scores={66=1..2}] run summon fireball ~ ~-.1 ~ {CustomName:"\"i\"",direction:[0.0,-5.0,0.0],power:[0.0,-5.0,0.0],ExplosionPower:1}
execute at @e[type=fireball,name=!i,scores={66=2}] run summon armor_stand ~ ~ ~ {CustomName:"\"hil\"",Invisible:1b,Silent:1b,NoGravity:1,Marker:1b}
kill @e[type=armor_stand,name=hil,scores={66=1..}]



execute unless entity @e[type=fireball] run execute unless entity @e[type=armor_stand,tag=hil] run data merge block ~ ~ ~ {auto:0b}