Library [1.8] ParticleEffect v1.7

Discussion in 'Resources' started by DarkBladee12, Jun 20, 2013.

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

    DarkBladee12

    Jaaakee224 What speed are you currently using?
     
  2. Offline

    Jaaakee224

    DarkBladee12 Never mind :) I found out what to do.
    I used an if and else statement.

    DarkBladee12 I got another question, how can I spawn particles that move around the players head. Not just spawn all at one time.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
  3. Offline

    DarkBladee12

    Jaaakee224 Well you have to calculate the locations for the particles and play only one delayed with a scheduler at a location of the circle!
     
  4. Offline

    Masterofjumping

    Hey, I'm attempting to use you library class but running into some issues. Probably because this is my first time doing anything like this. :p

    I have put both ParticleEffect and ReflectionHandler into the same library and imported Bukkit but one error still persists, specifically "The constructer ParticleEffects(String) is undefined." I am aware that this is probably a silly little error of mine, but since this is my first time trying something like this I cannot seem to fix it.

    Any help would be really appreciated, thanks
     
  5. Offline

    Julian13loco

    DarkBladee12 is it possible to make a circle of particles above a player hat and with a repeating task?
     
  6. Offline

    DarkBladee12

  7. Offline

    Julian13loco

  8. Offline

    Julian13loco

    DarkBladee12 I'm so sorry I spam you'r thread but, I need some help! I have the code I send earlier but with 8 new commands. So I need to have one command that cancelled the running task from the 9. So if I do /disable and the task slime is running he checked all the tasked and if he found the running he cancelled it. Plz can you help me?
     
  9. Offline

    FerusGrim

    Hey, DarkBladee12 :)
    Having an issue with creating an explosion using this dependency.
    Code:java
    1. ParticleEffect.LARGE_EXPLODE.display(bloc, 0.5F, 0.5F, 0.5F, 0.5F, 1);

    Code:java
    1. ClassNotFoundException: net.minecraft.server.v1_7_R3.Packet63WorldParticles


    I know you get a bunch of messages all the time, so I apologize in advance if this is something you've touched on, before. The only thing I can think of is that this packet has been renamed.
     
  10. Offline

    DarkBladee12

    FerusGrim Which version of the ParticleEffect lib are you using? Because it seems like you're using the 1.6- Version where the packet name was still Packet63WorldParticles! Try using the 1.7+ version and it should be fine ;)
     
  11. Offline

    FerusGrim

    *facepalms*

    I cannot believe I downloaded the 1.6 version. xD Thanks for pointing that out. :)
     
  12. Offline

    beleg

    Really nice and useful :)
     
  13. Offline

    MrDplugins

    DarkBladee12 Is there a way to cancel the particles from playing for certian players?
     
  14. Offline

    DarkBladee12

    MrDplugins Yes, just use the display method with the Player varargs and add the players which should be able to see the effect! display(center, offsetX, offsetY, offsetZ, speed, amount, player1, player2, ...)
     
  15. Offline

    Dark_FX

    Is there a way that you can off center the particles by like 0.2 of a block, because the .add(0.2, 2, 0) doesn't work well with it all, if you could add it, or give me some tips of how to, that would be awesome. :)
     
  16. Offline

    DarkBladee12

    Dark_FX Just use 0.2 as offset values and use the original center ;)
     
  17. Offline

    Julian13loco

    DarkBladee12 Please can you help my with my last message?
     
  18. Offline

    DarkBladee12

    Julian13loco Could you please explain your problem to me?
     
  19. Offline

    Julian13loco

    DarkBladee12 yes, but a simple question how to make a so code:java thing or something

    DarkBladee12 found! but my question was i have now two commands and I need to if I do /disable hi canceled all the running tasks so I do /disable hi checked what is running and that canceled hi.
    Code:
    @Override
        public boolean onCommand(CommandSender sender, Command cmd, String CommandLabel,
                String[] args) {
           
           
            PluginManager pm = getServer().getPluginManager();
            pm.registerEvents(new listeners(), this);
       
          final  Map<String, Integer> lava = new HashMap<String, Integer>();
                if(sender instanceof Player) {
                if (cmd.getName().equalsIgnoreCase("lava")) {
                final Player p = (Player) sender;   
                if (p.hasPermission("dgm.lava")) {
               
                Bukkit.getScheduler().cancelTask(lava.get(p));
                lava.remove(p);
                               
                   
                p.sendMessage(ChatColor.GOLD + "Particle Lava volgt je nu!");
               
                int lavatask = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable()
               
                {
               
                @Override
                public void run() {
                ParticleEffect.LAVA.display(p.getLocation().add(0, 2, 0), 0.5f, 0.5f, 0.5f, 1, 2);
               
             
               
                }
               
               
                }, 0, 1L);
                lava.put(p.getName(), lavatask);
                }
                }
                }
               
               
              final Map<String, Integer> bigslime = new HashMap<String, Integer>();
                      if(sender instanceof Player) {
                      if (cmd.getName().equalsIgnoreCase("bigslime")) {
                      final Player p = (Player) sender;
                      if (p.hasPermission("dgm.slime")) {
                         
                       
                          p.sendMessage(ChatColor.GOLD + "Particle BigSlime volgt je nu!");
                     
                      int bigslimetask = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable()
                     
                      {
                     
                      @Override
                      public void run() {
                        ParticleEffect.SLIME.display(p.getLocation().add(0, 0.4, 0), 0.5f, 0.5f, 0.5f, 1, 40);
                        ParticleEffect.HAPPY_VILLAGER.display(p.getLocation().add(0, 0, 0), 0.5f, 0.5f, 0.5f, 1, 8);   
                        ParticleEffect.INSTANT_SPELL.display(p.getLocation().add(0, 0, 0), 0.5f, 0.5f, 0.5f, 1, 1);   
                       
                     
                     
                      }
                     
                      }, 0, 1L);
                        bigslime.put(p.getName(), bigslimetask);
                      }
                      }
                      }
                
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Oct 29, 2015
  20. Offline

    DarkBladee12

    Julian13loco It may sound pretty hard, but please learn how to code in Java first and then move on to the Bukkit API. Because it doesn't seem like you know what you're doing, the code you posted is totally wrong... I'm sorry but I can't help someone who doesn't understand me at all :/
     
  21. Offline

    YoloEnderman

    Thanks this helped me alot!
     
  22. Offline

    maved145

    DarkBladee12
    Sometimes the particles glitch out and they will stay at spawn or just freeze in a certain place.
    I got it so it does particles every second at the players location. sometimes the particles freeze.
    Any way to fix this?
     
  23. Offline

    DarkBladee12

    maved145 What version of Bukkit are you currently using and which particle effects did you test?
     
  24. Offline

    maved145

    DarkBladee12 Bukkit 1.7.9 and the rainbow one, mob_spell i think.
     
  25. Offline

    Bammerbom

    DarkBladee12
    I am using this code:
    ParticleUtil.displayBlockDust(p.getLocation().add(0.0, 1.0, 0.0), Material.REDSTONE_WIRE.getId(), Byte.parseByte("0"), 0.5F, 0.5F, 0.5F, 0, 50);
    It works fine but how can I make REDSTONE_WIRE get its red color and not gray?
     
  26. Offline

    DarkBladee12

    Bammerbom Just use 0 as the speed value and all particles will be colored red ;)
     
  27. Offline

    Bammerbom

    DarkBladee12
    As you see I use 0 as speed, but particles are gray
     
  28. Offline

    DarkBladee12

    Bammerbom Ah, sorry I misread your post and didn't see that you're using the block dust particle effect. The color of the redstone wire will unfortunately always be gray and can't be changed through data values. (I tried a couple of them out) Either you use another block like the redstone block or you use the effect RED_DUST with a speed value of 0 ;)
     
  29. Offline

    codex01

    Thanks, very nice for minigames :)
     
  30. Offline

    michael566

    How would you stop playing the current particle?
     
Thread Status:
Not open for further replies.

Share This Page