Added Explosion instead of firework on hit.
This commit is contained in:
parent
15deac3207
commit
976ad66371
BIN
src/build/Quake.jar
Normal file
BIN
src/build/Quake.jar
Normal file
Binary file not shown.
@ -75,7 +75,9 @@ public class FireworkEffectPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void playFirework(Location loc) {
|
public static void playFirework(Location loc) {
|
||||||
|
Random r = new Random();
|
||||||
loc.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, loc, 1);
|
loc.getWorld().spawnParticle(Particle.EXPLOSION_HUGE, loc, 1);
|
||||||
|
loc.getWorld().spawnParticle(Particle.FLAME, loc, r.nextInt(51) + r.nextInt(51), 0.02d, 0.02d, 0.02d, 0.08d);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void playFirework(Player p) {
|
public static void playFirework(Player p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user