cannons working amazingly

This commit is contained in:
TheCrunchy committed 2023-07-02 14:17:24 +01:00
1 parent 261b42e8a8
commit e4350c7452
8 files changed
+9 -7

No files matched your search

+2 -2
View File
@@ -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);
@@ -156,7 +156,7 @@ public class CrunchSiegeCore extends JavaPlugin {
stand.addEquipmentLock(EquipmentSlot.CHEST, LockType.ADDING_OR_CHANGING);
stand.addEquipmentLock(EquipmentSlot.FEET, LockType.ADDING_OR_CHANGING);
ent.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 2000000, 1));
stand.setSmall(true);
// stand.setSmall(true);
stand.setVisible(true);
//stand.setSmall(true);
ent.getEquipment().setHelmet(item);