I am using same Math for both particleEffect: Heart: But when I am using same Math and other particles Like Flame,Crit,Enchantment Its go very weird Anyone know why? Example: I hope you know what i mean
@nverdier Code: heart = Bukkit.getServer().getScheduler() .scheduleSyncRepeatingTask(main, new Runnable() { private int time = 12; public void run() { final Location l = p.getLocation(); l.setY(l.getY() + 2); final Location loc1 = new Location(w, l.getX() + 0.5D, l.getY(), l.getZ()); final Location loc2 = new Location(w, l.getX() + 0.43D, l.getY(), l.getZ() + 0.25D); final Location loc3 = new Location(w, l.getX() + 0.25D, l.getY(), l.getZ() + 0.43D); final Location loc4 = new Location(w, l.getX(), l.getY(), l.getZ() + 0.5D); final Location loc5 = new Location(w, l.getX() - 0.25D, l.getY(), l.getZ() + 0.43D); final Location loc6 = new Location(w, l.getX() - 0.43D, l.getY(), l.getZ() + 0.25D); final Location loc7 = new Location(w, l.getX() - 0.5D, l.getY(), l.getZ()); final Location loc8 = new Location(w, l.getX() - 0.43D, l.getY(), l.getZ() - 0.25D); final Location loc9 = new Location(w, l.getX() - 0.25D, l.getY(), l.getZ() - 0.43D); final Location loc10 = new Location(w, l.getX(), l.getY(), l.getZ() - 0.5D); final Location loc11 = new Location(w, l.getX() + 0.25D, l.getY(), l.getZ() - 0.43D); final Location loc12 = new Location(w, l.getX() + 0.43D, l.getY(), l.getZ() - 0.25D); if (time == 12) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc1, 15); } if (time == 11) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc2, 15); } if (time == 10) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc3, 15); } if (time == 9) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc4, 15); } if (time == 8) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc5, 15); } if (time == 7) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc6, 15); } if (time == 6) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc7, 15); } if (time == 5) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc8, 15); } if (time == 4) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc9, 15); } if (time == 3) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc10, 15); } if (time == 2) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc11, 15); } if (time == 1) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc12, 15); } if (time == 0) { ParticleEffect.HEART.display(0, 0, 0, 4, 5, loc1, 15); time = time + 12; } time--; } }, 1, 1); } When i put Flame or something else insatnt off Heart. particles in game are very weird Its just weird Code for Note: Code: note = Bukkit.getServer().getScheduler() .scheduleSyncRepeatingTask(main, new Runnable() { private int time = 1; public void run() { final Location l = p.getLocation(); l.setY(l.getY() + 2.125); if (time == 1) { ParticleEffect.NOTE.display(0, 0, 0, 2, 3, l, 15); time = time + 1; } time--; } }, 1, 2); Code for flame: Code: flame = Bukkit.getServer().getScheduler() .scheduleSyncRepeatingTask(main, new Runnable() { private int time = 1; public void run() { final Location l = p.getLocation(); l.setY(l.getY() + 2.125); if (time == 1) { ParticleEffect.FLAME.display(0, 0, 0, 2, 3, l, 15); time = time + 1; } time--; } }, 1, 2); Its same code but when i am using flame , flame fly around like crazy I cant control flame with math and idk why. I made gifs: I just dont know what to do This work normally: Same code but its weird: EDIT by Moderator: merged posts, please use the edit button instead of double posting.