Tweak particles

This commit is contained in:
Daniel Mills 2021-08-06 21:01:11 -04:00
parent ef5897969f
commit d1e8d52f5c
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ public class WandManager implements Listener {
for (Player i : Bukkit.getOnlinePlayers()) { for (Player i : Bukkit.getOnlinePlayers()) {
tick(i); tick(i);
} }
}, 5); }, 0);
} }
public void tick(Player p) { public void tick(Player p) {

View File

@ -85,7 +85,7 @@ public class WandSelection {
accuracy = M.lerpInverse(0, 64 * 64, p.getLocation().distanceSquared(a)); accuracy = M.lerpInverse(0, 64 * 64, p.getLocation().distanceSquared(a));
dist = M.lerp(0.125, 3.5, accuracy); dist = M.lerp(0.125, 3.5, accuracy);
if(M.r(M.min(dist, 1D) * 0.99)) if(M.r(M.min(dist*5, 0.9D) * 0.995))
{ {
continue; continue;
} }
@ -115,7 +115,7 @@ public class WandSelection {
p.spawnParticle(Particle.REDSTONE, a.getX(), a.getY(), a.getZ(), p.spawnParticle(Particle.REDSTONE, a.getX(), a.getY(), a.getZ(),
1, 0, 0, 0, 0, 1, 0, 0, 0, 0,
new Particle.DustOptions(org.bukkit.Color.fromRGB(r, g, b), new Particle.DustOptions(org.bukkit.Color.fromRGB(r, g, b),
(float) dist*2f)); (float) dist*3f));
} }
} }
} }