Advertisement
_GameDoctor_

Untitled

Aug 17th, 2023
792
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1.                     for (int i = 0; i < 2; ++i) {
  2.                         this.particleTick += 0.1D;
  3.  
  4.                         for (double ii = 0.0D; ii < 3.0D; ++ii) {
  5.                             double x = 2.0D * Math.cos(this.particleTick + (Math.PI * 2D) * ii / 3.0D);
  6.                             double y = 0.7D * (1.1D + Math.sin(this.particleTick * 1.5D));
  7.                             double z = 2.0D * Math.sin(this.particleTick + (Math.PI * 2D) * ii / 3.0D);
  8.                             for (Player p : Bukkit.getOnlinePlayers())
  9.                                 p.spawnParticle(Particle.SPELL_INSTANT, loc.clone().add(x, y, z), 0);
  10.                         }
  11.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement