# Other Features

Beyond the core systems, EdTools includes several other powerful, configurable features to enhance gameplay.

### Lucky Blocks

Lucky Blocks are special items that players can find while performing actions (like farming in a Regen Zone). To open them, players must first meet a requirement, such as breaking a certain number of blocks.

Create new lucky block types by adding `.yml` files to the `plugins/EdTools/luckyblocks/` folder.

**Example: `luckyblocks/common.yml`**

```yaml
# The tool that can contribute progress to unlocking this block.
tool: crop-tool
# The number of blocks that must be broken to unlock it.
blocks: 100
# Actions to execute when the block is opened.
default-actions:
  - "[message] &aYou opened a Common Lucky Block!"
  - "[sound] ENTITY_EXPERIENCE_ORB_PICKUP"
# A weighted list of potential rewards.
rewards:
  rewards-to-give: 1 # How many rewards from the list to grant.
  rewards:
    1:
      chance: 0.5 # 50% chance
      actions:
        - "[console] crate givekey {player} common 1"
    2:
      chance: 0.4 # 40% chance
      actions:
        - "[console] eco give {player} 1000"
# Define the appearance of the item when it's locked and unlocked.
locked-item:
  material: "texture-..."
  name: "&dLucky Block: &a&lCommon &c(Locked)"
  # ... lore
unlocked-item:
  material: "texture-..."
  name: "&dLucky Block: &a&lCommon &a(Ready!)"
  # ... lore
```

### Boosters

Boosters are consumable items that grant players temporary multipliers on currency gains or enchant proc chances. Configure them in `plugins/EdTools/boosters.yml`.

### Sell System

Define the value of items by creating `item-prices.yml`. This allows the `sell-item` enchant action to function and is required for Regen Zone drops to work.

**Example: `item-prices.yml`**

```yaml
# Configuration for the periodic sell summary message.
summary:
  enabled: true
  interval: 60 # in seconds
  message:
    - '&e&lReward Summary: &6(60s)'
    - ' &e&l+ %edtools_summary_farm-coins_formatted_single% &6Farm Coins'

# Define item prices. The key 'wheat-tier1' is the item ID.
wheat-tier1:
  prices:
    farm-coins: 5   # This item is worth 5 farm-coins.
    crop-blocks: 1  # and 1 crop-block.
```

### Action Bar & XP Bar

Configure `actionbar.yml` and `xpbar.yml` to display dynamic, zone-specific information to players directly on their screen. This is perfect for showing level progress, currency balances, or other important data without cluttering chat.

**Example: `xpbar.yml`**

```yaml
enabled: true
zones:
  # When a player is in the 'main-crops' zone, their XP bar will show
  # the progress for the 'crop-level' leveling system.
  main-crops: 'crop-level'
```
