Get some Particles

Discussion in 'Plugin Development' started by MoeMix, Feb 10, 2014.

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

    MoeMix

    Hi guys. I was just wondering if it was possible to get block particles for example, water particles, and have them show in an iterator.

    If that is possible can someone please help me make the code for that?
     
  2. Offline

    xTrollxDudex

    MoeMix
    What do you mean "in an iterator"?
     
  3. Offline

    Tirelessly

  4. Offline

    MoeMix

    xTrollxDudex
    I mean like have those particles show in a line to the target block.
     
  5. Offline

    xTrollxDudex

    MoeMix
    BlockIterator. Play particles for each location.
     
  6. Offline

    MoeMix

  7. Offline

    xTrollxDudex

    MoeMix
    PHP:
    public static final void playBlockBreakParticles(final Location loc, final Material m) {
            
    playBlockBreakParticles(locmBukkit.getOnlinePlayers());
        }
     
        public static final 
    void playBlockBreakParticles(final Location loc, final Material m, final Player... players) {     
            
    PacketPlayOutWorldEvent packet = new PacketPlayOutWorldEvent(2001loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), m.getId(), false);
            for(final 
    Player p players) {
                ((
    CraftPlayer)p).getHandle().playerConnection.sendPacket(packet);
            }
        }
     
Thread Status:
Not open for further replies.

Share This Page