Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by Bolt, May 18, 2015.
I'm kinda new to working with particles. How would you shoot particles in a stream?
Iterate through the player's line of sight and send particle packets, or if you actually want them to shoot set the amount to 0 and the offset values will turn into a vector.
@Skionz How do you shoot it exactly?
player.spigot().playeffect() I believe you should be able to figure it out from there.
@Skionz @nikmanG I'm already using player.spigot().playeffect() with all the parameters but I don't know how to manipulate the vectors to shoot it in a stream.
You could Potentially make the shooter shoot a projectile making it invisible with packets. TheN in a runnable while the projectile is flying play the effect at its location.
You don't. You have to simulate that yourself.
@DarkSeraphim how do you hide it? I asked you on another thread and I reached a point where I used the PacketWrapper library but I'm still at a loss on what to do as when I run it, it still returns errors.
Why is it that when I google something I tend to find the answer?
I mean am I just lucky or are people too lazy to look through the first page of the results...
@nikmanG I think you might just be lucky. I googled for quite a bit before posting here and couldn't find any relevant answer.
I would only play it for the players that I want to play it for. Player.Spigot#playEffect(...) is player specific .
I'll throw out there that EffectLib makes this kind of thing much easier (use LineEffect or a stretched ConeEffect), if you're willing to use a lib.
and this: https://bukkit.org/threads/tutorial-particle-effects-for-arrows.251835/