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?
This tutorial may be helpful: http://forums.bukkit.org/threads/tu...-trails-for-wands-spells.215162/#post-2251343
MoeMix PHP: public static final void playBlockBreakParticles(final Location loc, final Material m) { playBlockBreakParticles(loc, m, Bukkit.getOnlinePlayers()); } public static final void playBlockBreakParticles(final Location loc, final Material m, final Player... players) { PacketPlayOutWorldEvent packet = new PacketPlayOutWorldEvent(2001, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), m.getId(), false); for(final Player p : players) { ((CraftPlayer)p).getHandle().playerConnection.sendPacket(packet); } }