Added double helix options to artifacts

This commit is contained in:
Auxilor 2021-02-01 15:56:23 +00:00
parent 7a444e4d87
commit b6fec985e0
32 changed files with 38 additions and 0 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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