mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Added double helix options to artifacts
This commit is contained in:
parent
7a444e4d87
commit
b6fec985e0
@ -160,6 +160,8 @@ public abstract class Artifact extends EcoEnchant {
|
||||
double radiusMultiplier = this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "radius-multiplier");
|
||||
double offset = NumberUtils.randFloat(0, 0.75);
|
||||
|
||||
boolean doubleHelix = this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "use-double-helix");
|
||||
|
||||
this.getPlugin().getRunnableFactory().create(bukkitRunnable -> {
|
||||
for (int i = 0; i < 3; i++) {
|
||||
if (yAtomic.get() > entity.getHeight()) {
|
||||
@ -172,6 +174,11 @@ public abstract class Artifact extends EcoEnchant {
|
||||
Location particleLocation = entity.getLocation();
|
||||
particleLocation.add(x, y, z);
|
||||
entity.getWorld().spawnParticle(particle, particleLocation, 1, 0, 0, 0, 0, extra, false);
|
||||
if (doubleHelix) {
|
||||
Location particleLocation2 = entity.getLocation();
|
||||
particleLocation2.add(-x, y, -z);
|
||||
entity.getWorld().spawnParticle(particle, particleLocation2, 1, 0, 0, 0, 0, extra, false);
|
||||
}
|
||||
}
|
||||
}).runTaskTimer(0, 1);
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false|
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
@ -30,6 +30,7 @@ config:
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
use-double-helix: false
|
||||
|
||||
# For Arrows + Tridents
|
||||
particle-tick-delay: 2
|
||||
|
Loading…
Reference in New Issue
Block a user