My fireball projectile shoots in polar opposite direction
here is the function i have activated by this in a tick.mcfunction:
execute as @'e[type=minecraft:snowball,tag=!spawned] at @'e run function namespace:fireball
then activates fireball.mcfunction:
execute positioned 0.0 0 0.0 run summon marker ^ ^ ^1 {Tags:["direction"]}
summon fireball ~ ~ ~ {Tags:["projectile"]}
data modify entity @'n[type=fireball,tag=projectile] Motion set from entity @'e[type=marker,tag=direction,limit=1] Pos
tag @'e[tag=projectile] remove projectile
kill @'e[tag=direction]
kill
why does it shoot in polar opposite direction?
(changing the marker to be at ^ ^ ^-1 makes it invert only one axis.)