# Batteries

Batteries is an item made to power up items such as sprinklers and robots. There are 3 types of batteries - Small battery, Normal Battery, Ultra Battery, each having a different capacity it can store.

Batteries can be charged up using [solar-panels](https://pm2plugins.gitbook.io/infinitecrops/features/solar-panels "mention") and [combustion-generators](https://pm2plugins.gitbook.io/infinitecrops/features/combustion-generators "mention")

<div data-full-width="true"><figure><img src="https://43358839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1ifdxZDjYYdaFezGOVfx%2Fuploads%2FVVCFE6Ob2wpCVMFPhmTl%2F2024-12-18_20.36.25.png?alt=media&#x26;token=752e39e0-5bee-4716-840a-b322d743fca0" alt=""><figcaption></figcaption></figure></div>

### **Battery Configuration**

To add or edit batteries, modify the `batteries` section in the configuration file.\
Each battery configuration includes:

* `batteryId`: Unique identifier for the battery.
* `item`: Defines the battery's appearance and metadata.
* `capacity`: Maximum energy storage capacity.

Example configuration:

```yaml
batteries:
  custom_battery:
    item:
      displayName: '&eCustom Battery'
      lore:
      - '&fCapacity: &e%points% &7/&a%max-capacity%'
      materialType: IRON_INGOT
      itemId: battery_custom
      modelData: 645
    capacity: 300.0
```
