[PLUG-375] particle effects glitch (maybe?) Created: 04/Mar/20  Updated: 04/Mar/20  Resolved: 04/Mar/20

Status: Resolved
Project: SpigotPlugins
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Zachary Cohen Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: 1.8.8, protocollib, spigot

Attachments: File Minecraft 1.8.8 2020-03-03 19-59-05.mp4    
Version:  CraftBukkit version git-Spigot-21fe707-e1ebe52 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
Plugin: My plugin
Guidelines Read: Yes

 Description   

I recently started making minecraft plugins and was just trying to make a beam weapon, however, the particles that i use dont fade, they just get deleted.

and as you can see in the video, they "explode" and disperse very fast. is there any way to fix these two problems?

this is in 1.8.8,

and am using the ProtocolLib library for creating the particle effect.

here is my code:

 

new BukkitRunnable(){                                                                          double t = 0;                                                                 Location loc = p.getLocation();                                                   Vector direction = loc.getDirection().normalize();                               double x = direction.getX();                         
double y = direction.getY();                         
double z = direction.getZ();                                                                           public void run(){                          
t = t + 0.5;                                                                       double x1 = x * t;                                                              double y1 = y * t;                                                                double z1 = z * t;                                                   loc.add(x1,y1,z1);                             ParticleEffect.FIREWORKS_SPARK.display(0, 0, 0, 10, 10, loc, 100);                                                                                                         if (t > Math.PI*10){                                                      this.cancel();                         
}
}     
}.runTaskTimer(plugin, 0, 1);

 


Generated at Sat Dec 13 02:37:13 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.