Solved Circle particle problem!

Discussion in 'Spigot Plugin Development' started by magas8, May 21, 2017.

Thread Status:
Not open for further replies.
  1. Guys i want to make some particles like that in the direction of player looking but i am so confused ...... can anyone help me with the code ??? [​IMG]
     
  2. show us what you've done so far, "code pls???" isn't the way we like to reply.
     
    • Like Like x 2
  3. Also, Please change your title to what your problem is, not just "Particles !!!!!". Please read the rules before you post!

    Note: Don't just ask for code from people!
     
    • Like Like x 1
  4. thanks i will try to make it and i will post if i have problem again
     
    • Like Like x 1
  5. no, it will iterate through blocks for a given distance.

    to have the particle 'move' i would just add the player's direction (returns vector) to their location. and play the particle at the location.
    Code (Java):

    int i = 0;
    Vector direction = player.getDirection();
    new BukkitRunnable() {
          @Override
          public void run() {
              if (i == 20) {
                   cancel();
                   return;
              }
              location.add(direction);
              spawnParticle(location, Particle.FLAME, 1); //don't know the params at the top of my head
    }
     
    #10 ChefJava, May 22, 2017
    Last edited: May 22, 2017
Thread Status:
Not open for further replies.