Version 0.7.5

Added Mounting, Fixed Releasing from distance
This commit is contained in:
C_Corp2002 authored and GitHub committed 2024-01-27 13:39:52 -05:00
1 parent 7e1a4a6269
commit 9b30e0749f
11 files changed
+148 -56

No files matched your search

@@ -24,7 +24,7 @@ public class EntityProjectile extends SiegeEngineProjectile {
public int delayTime = 6;
public EntityType entityType = EntityType.ARROW;
public float inaccuracy = 0.2f;
public Particle particleType = Particle.EXPLOSION_LARGE;
public Particle particleType = Particle.CAMPFIRE_SIGNAL_SMOKE;
public Sound soundType = Sound.ENTITY_GENERIC_EXPLODE;
private boolean playSound = true;
@@ -62,7 +62,6 @@ public class EntityProjectile extends SiegeEngineProjectile {
arrow.setVelocity(loc.getDirection().multiply(velocity));
}
arrow.setMetadata("isEntityProj", SiegeEnginesUtil.addMetaDataValue("true"));
Bukkit.getServer().getPluginManager().callEvent(new org.bukkit.event.entity.ProjectileLaunchEvent(arrow));
if (arrow instanceof org.bukkit.entity.Projectile) {
if (player instanceof org.bukkit.projectiles.ProjectileSource)
@@ -75,6 +74,8 @@ public class EntityProjectile extends SiegeEngineProjectile {
arr.setShooter((org.bukkit.projectiles.ProjectileSource) player);
arr.setPickupStatus(org.bukkit.entity.AbstractArrow.PickupStatus.CREATIVE_ONLY);
}
} else {
Bukkit.getServer().getPluginManager().callEvent(new org.bukkit.event.entity.ProjectileLaunchEvent(arrow));
}
if (playSound) {
world.playSound(loc, this.soundType, 20, 2);
@@ -23,7 +23,7 @@ public class FireworkProjectile extends SiegeEngineProjectile {
public int delayTime = 6;
public EntityType entityType = EntityType.FIREWORK;
public float inaccuracy = 0.125f;
public Particle particleType = Particle.EXPLOSION_NORMAL;
public Particle particleType = Particle.FLASH;
public Sound soundType = Sound.ENTITY_FIREWORK_ROCKET_BLAST_FAR;
public float velocityFactor = 0.5f;
@@ -57,7 +57,7 @@ public class PotionProjectile extends SiegeEngineProjectile {
} else {
arrow.setVelocity(loc.getDirection().multiply(velocity));
}
arrow.setMetadata("isExplosiveProj", SiegeEnginesUtil.addMetaDataValue("true"));
arrow.setMetadata("isPotionProj", SiegeEnginesUtil.addMetaDataValue("true"));
Bukkit.getServer().getPluginManager().callEvent(new org.bukkit.event.entity.ProjectileLaunchEvent(arrow));
ItemStack itemStack = new ItemStack(Material.SPLASH_POTION);
PotionMeta potionMeta = (PotionMeta) itemStack.getItemMeta();