How To Play Particle Effect ?

Discussion in 'Plugin Development' started by PePsiGam3r, Oct 16, 2013.

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

    PePsiGam3r

    I make a bukkit plugin and i want to add a particle effect!
    Like the hearts particle
    what is code of that ?

    Sorry, I'm noob in java :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  2. Offline

    TheUpdater

    for hearts particle you need have packets i have coded for 1 and a half year have not really looked in to package coding
    if want to learn better and remember dont copy the code type it instead

    sy bad english

    PHP:
    p.getWorld().playEffect(LOCATIONEFFECTINT);
     
  3. Offline

    PePsiGam3r

    Thank You, Can you Send to me an Example ?
     
  4. Offline

    TheUpdater

    sure here you go

    the 1 stands for different sound so 1 might be 1 sound and 2 might be same but sounds different

    Code:java
    1. Location Locas = e.getPlayer().getLocation();
    2. p.getWorld().playEffect(Locas, Effect.ENDER_SIGNAL, 1);
     
  5. Offline

    drtshock

    This isn't a place where you get people to write your code for you (unless they are super nice and don't want you to learn).

    TheUpdater gave you a small example, why don't you try something from that and see what you can come up with? If you have troubles after trying something then people will be more than happy to help you :)

    EDIT: TheUpdater spoon feeding code... :(
     
  6. Offline

    TheUpdater

    if want to learn better and remember don't copy the code type it instead
    by that i mean try by you self kus when type it, you can use ctrl+space then read about it
     
  7. Offline

    PePsiGam3r

    TheUpdater Thank you, It's working!

    drtshock I tried to understand the code but i can't, That's why I asked him an example ,and it's works with me

    Thank you Again :) !

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  8. Offline

    TheUpdater

    mark this as solved
     
Thread Status:
Not open for further replies.

Share This Page