mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 14:21:33 +00:00
Tweak particles
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user