mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
.
This commit is contained in:
1 parent
4093c5f509
commit
706e60187c
2 files changed
+4
-4
No files matched your search
Binary file not shown.
@@ -23,10 +23,10 @@ import org.bukkit.util.Vector;
|
||||
import siegeCore.CrunchSiegeCore;
|
||||
|
||||
public class PotionProjectile implements CrunchProjectile {
|
||||
public int EntityCount = 20;
|
||||
public int EntityCount = 3;
|
||||
public Boolean DelayedFire = false;
|
||||
public int DelayTime = 6;
|
||||
public float Inaccuracy = 0.4f;
|
||||
public float Inaccuracy = 0.1f;
|
||||
public Particle ParticleType = Particle.EXPLOSION_LARGE;
|
||||
public Sound SoundType = Sound.ENTITY_GENERIC_EXPLODE;
|
||||
|
||||
@@ -65,9 +65,9 @@ public class PotionProjectile implements CrunchProjectile {
|
||||
else {
|
||||
arrow.setVelocity(loc.getDirection().multiply(velocity));
|
||||
}
|
||||
ItemStack itemStack = new ItemStack(Material.LINGERING_POTION);
|
||||
ItemStack itemStack = new ItemStack(Material.SPLASH_POTION);
|
||||
PotionMeta potionMeta = (PotionMeta) itemStack.getItemMeta();
|
||||
potionMeta.addCustomEffect(new PotionEffect(PotionEffectType.POISON, 100, 0, true), true);
|
||||
potionMeta.addCustomEffect(new PotionEffect(PotionEffectType.HARM, 100, 3, true), true);
|
||||
itemStack.setItemMeta(potionMeta);
|
||||
ThrownPotion potion = (ThrownPotion) arrow;
|
||||
potion.setItem(itemStack);
|
||||
|
||||
Reference in new issue
Block a user