
execute as @s[type=fireball,tag=!GotIt] run execute store result entity @s power[0] double .00001 run data get entity @e[type=arrow,sort=nearest,limit=1] Motion[0] 10000
execute as @s[type=fireball,tag=!GotIt] run execute store result score @s PowerYFireball run data get entity @e[type=arrow,sort=nearest,limit=1] Motion[1] 10000
execute as @s[type=fireball,tag=!GotIt] run execute store result entity @s power[2] double .00001 run data get entity @e[type=arrow,sort=nearest,limit=1] Motion[2] 10000
execute as @s[type=fireball,tag=!GotIt] run execute store result entity @s direction[0] double .00001 run data get entity @e[type=arrow,sort=nearest,limit=1] Motion[0] 10000
execute as @s[type=fireball,tag=!GotIt] run execute store result score @s PowerYFireball run data get entity @e[type=arrow,sort=nearest,limit=1] Motion[1] 10000
execute as @s[type=fireball,tag=!GotIt] run execute store result entity @s direction[2] double .00001 run data get entity @e[type=arrow,sort=nearest,limit=1] Motion[2] 10000
tag @s add GotIt
execute as @s run execute store result entity @s power[1] double .00001 run scoreboard players get @s PowerYFireball
scoreboard players remove @s PowerYFireball 1000
scoreboard players remove @s[type=fireball,scores={PowerYFireball=16000..}] PowerYFireball 1000
