# 🪄 Charges

## About

**Charges** is a unique feature of **ExcellentEnchants**!

With charges, custom enchantments can have limited **amount of uses** before you have to recharge them using certain item (<mark style="color:purple;">Lapis Lazuli</mark> by default).&#x20;

Max. amount of charges that enchantment can have is **scalable** with enchantment level and can be different for all enchantments.

You can also set how many charges are restored per charge item for each enchantment, as well as amount of consumed charges per use.

Every enchantment can have a different charge item with display name, lore and model data support.

## Setup

1. Enable the feature in the **config.yml**: `Enchantments` -> `Charges`  -> `Enabled: true`
2. Reboot the server or reload the plugin to update enchantment configs with new settings.
3. Enable charges for desired enchantments in their configs located in `/enchants/` directory.

## Recharging

To recharge an enchantment, you have to combine enchanted item with a charge item on anvil.

Repair cost is **1 XP level** per each charged enchantment.
