mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
cool af
This commit is contained in:
1 parent
39c32c4266
commit
261b42e8a8
4 files changed
+2
-2
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -130,7 +130,7 @@ public class CrunchSiegeCore extends JavaPlugin {
|
||||
|
||||
public static void CreateTrebuchet(Player player) {
|
||||
Location l = player.getLocation();
|
||||
l.setY(l.getY() - 1);
|
||||
//l.setY(l.getY() - 1);
|
||||
Entity entity2 = player.getWorld().spawnEntity(l, EntityType.ARMOR_STAND);
|
||||
SiegeEquipment equip = new SiegeEquipment(entity2.getUniqueId());
|
||||
ItemStack item = new ItemStack(Material.CARVED_PUMPKIN);
|
||||
|
||||
@@ -143,7 +143,7 @@ public class SiegeEquipment implements Cloneable {
|
||||
ClickHandler.projectiles.put(tnt.getUniqueId(), this.projectile);
|
||||
tnt.setVelocity(loc.getDirection().multiply(this.Velocity));
|
||||
Bukkit.getServer().getWorld(this.WorldName).playSound(this.location, Sound.ENTITY_GENERIC_EXPLODE, 20, 2);
|
||||
Bukkit.getServer().getWorld(this.WorldName).spawnParticle(Particle.SMOKE_LARGE, loc.getX(), loc.getY(), loc.getZ(), 0);
|
||||
Bukkit.getServer().getWorld(this.WorldName).spawnParticle(Particle.EXPLOSION_NORMAL, loc.getX(), loc.getY(), loc.getZ(), 0);
|
||||
}, delay);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user