I'm trying to get particles to trail a snowball thrown from a custom event.
This code makes flame particles spawn at the snowball, but they quickly move away from the snowball in the direction of +x, +y, +z.
How can I fix the code to make the particles stay at the spot they were spawned?
In addition, is it possible to get it all into the "on left-click" event? That way, I can use multiple different items to shoot snowballs with different particle trails.
Thanks in advance.
*Edit 1: Edited for clarity and formatting.
[doublepost=1609618314,1609606916][/doublepost]Ended up using SkQuery.
This code makes flame particles spawn at the snowball, but they quickly move away from the snowball in the direction of +x, +y, +z.
Code:
on left-click using gunpowder:
shoot snowball at speed 2
on shoot:
projectile is a snowball:
loop 20 times:
show flame on projectile
wait 1 tick
In addition, is it possible to get it all into the "on left-click" event? That way, I can use multiple different items to shoot snowballs with different particle trails.
Thanks in advance.
*Edit 1: Edited for clarity and formatting.
[doublepost=1609618314,1609606916][/doublepost]Ended up using SkQuery.