Change color of particle

Discussion in 'Plugin Development' started by VENTO, Jun 14, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    VENTO

    Hello, I'm making a plugin for guns and I spawn a Particle at the bullet's location every tick.
    I use this code:
    Code:
    new BukkitRunnable() {
                            public void run() {
                                if (bullet == null || bullet.isOnGround() || bullet.isDead()) {
                                    this.cancel();
                                    return;
                                }
                                bullet.getWorld().spawnParticle(Particle.END_ROD, bullet.getLocation(), 1, null);
                            }
                        }.runTaskTimer(Main.instance, 0, 1);
    This particle is white and i need to change it's color (i need yellow color).
    Can anybody help me with changing the particle's color. Thanks in advance.
     
  2. Since your using Particle.END_ROD, the color is white. Experiment by changing the particle type.
     
  3. Offline

    VENTO

    If I change the type - it would be another particle. I need only this particle. Maybe there is an opportunity to change the color using packets?
     
  4. Offline

    YoloSanta

Thread Status:
Not open for further replies.

Share This Page