public static void spawnPigChest (Location loc, int amount) {
        int i = 0;
        while (i < amount) {
            LivingEntity pig = (LivingEntity) loc.getWorld().spawnEntity(loc, EntityType.PIG);
            pig.getEquipment().setChestplate(new ItemStack(Material.LEATHER_CHESTPLATE, 1));
            Entity minecart = (Entity) loc.getWorld().spawn(loc, StorageMinecart.class);
            pig.setPassenger(minecart);
            i++;
        }
    }