mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Merge pull request #80 from OmniCypher-/master
Added color RED_DUST particle functionality and Lightning particle change
This commit is contained in:
commit
d20e8d50e7
3 changed files with 30 additions and 20 deletions
30
.classpath
30
.classpath
|
@ -1,19 +1,23 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/LocalServer/BukkitForPlugins1.8.jar"/>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/Factions.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/bukkit-1.8-R0.1-SNAPSHOT.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/GriefPrevention.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/CombatTag.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/LWC.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/Factions.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/MassiveCore.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/GriefPrevention.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/NoCheatPlus.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/LogBlock.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/PreciousStones.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/LWC.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/TagAPI.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/MassiveCore.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/Towny.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/mcore.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/WorldEdit.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/NoCheatPlus.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/Bending Plugins/WorldGuard.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/PreciousStones.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/LocalServer/plugins/KorraRPG.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/ProjectKorraRPG.jar"/>
|
||||||
<classpathentry kind="lib" path="C:/Users/Shawn/Documents/LocalServer/Spigot.jar"/>
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/TagAPI.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/Towny.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/Vault.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/WGRegionEvents.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/WorldEdit.jar"/>
|
||||||
|
<classpathentry kind="lib" path="C:/Users/Chris/Desktop/Plugins/Files/KorraDependables/WorldGuard.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1000,9 +1000,6 @@ public enum ParticleEffect {
|
||||||
if (speed < 0) {
|
if (speed < 0) {
|
||||||
throw new IllegalArgumentException("The speed is lower than 0");
|
throw new IllegalArgumentException("The speed is lower than 0");
|
||||||
}
|
}
|
||||||
if (amount < 1) {
|
|
||||||
throw new IllegalArgumentException("The amount is lower than 1");
|
|
||||||
}
|
|
||||||
this.effect = effect;
|
this.effect = effect;
|
||||||
this.offsetX = offsetX;
|
this.offsetX = offsetX;
|
||||||
this.offsetY = offsetY;
|
this.offsetY = offsetY;
|
||||||
|
|
|
@ -96,6 +96,15 @@ public class Lightning {
|
||||||
instances.add(this);
|
instances.add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void displayChargedParticles(){
|
||||||
|
Location l = player.getEyeLocation().add(player.getEyeLocation().getDirection().normalize().multiply(1));
|
||||||
|
l.setX(l.getX() + Math.random() * (0.1 - -0.1));
|
||||||
|
l.setY(l.getY() + Math.random() * (0.1 - -0.1));
|
||||||
|
l.setZ(l.getZ() + Math.random() * (0.1 - -0.1));
|
||||||
|
|
||||||
|
ParticleEffect.RED_DUST.display((float) 0, (float) 255, (float) 255, 0.1F, 0, l, 256D);
|
||||||
|
}
|
||||||
|
|
||||||
private void progress() {
|
private void progress() {
|
||||||
if (player.isDead() || !player.isOnline()) {
|
if (player.isDead() || !player.isOnline()) {
|
||||||
removeWithTasks();
|
removeWithTasks();
|
||||||
|
@ -117,7 +126,7 @@ public class Lightning {
|
||||||
Location loc = player.getEyeLocation().add(player.getEyeLocation()
|
Location loc = player.getEyeLocation().add(player.getEyeLocation()
|
||||||
.getDirection().normalize().multiply(1.2));
|
.getDirection().normalize().multiply(1.2));
|
||||||
loc.add(0, 0.3, 0);
|
loc.add(0, 0.3, 0);
|
||||||
ParticleEffect.MAGIC_CRIT.display(loc, 0.3F, 0.1F, 0.3F, 0, 4);
|
displayChargedParticles();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
state = State.MAINBOLT;
|
state = State.MAINBOLT;
|
||||||
|
@ -403,9 +412,9 @@ public class Lightning {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
ParticleEffect.MAGIC_CRIT.display(loc, 0, 0, 0, 0, 1);
|
ParticleEffect.RED_DUST.display((float) 0, (float) 255, (float) 255, 0.1F, 0, loc, 256D);
|
||||||
count++;
|
count++;
|
||||||
if(count > 10)
|
if(count > 5)
|
||||||
this.cancel();
|
this.cancel();
|
||||||
else if(count == 1) {
|
else if(count == 1) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue