> For the complete documentation index, see [llms.txt](https://anikosr.gitbook.io/mmoblock-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://anikosr.gitbook.io/mmoblock-docs/basics/drops.md).

# Drops

Configure rewards with **chances**, **amount ranges**, and **multi-plugin support**.

```yaml
drops:
  # Nexo Item Drop
  example_nexo_drop: #drop_id is customizeable
    item:
      material: enchanted_obsidian # Nexo item ID
      total: [1-2] # 1-2 items
      chances: 0.4 # 40% chance
      target: both_click #left_click or both_click
      drop_type: inventory #inventory, minepacks, front_ground(front of player), and center_ground(center of entity).

  # MMOItems Drop
  steel_drop:
    item:
      material: TOOL:STEEL_PICKAXE
      total: [1-1]
      chances: 0.1
      target: both_click #left_click or both_click
      drop_type: inventory #inventory, minepacks, front_ground(front of player), and center_ground(center of entity).

  # ItemsAdder Drop
  custom_drop:
    item:
      material: _iainternal:iron_pickaxe_custom
      total: [1-1]
      chances: 1.0
      target: both_click #left_click or both_click
      drop_type: center_ground #inventory, minepacks, front_ground(front of player), and center_ground(center of entity).

  # Vanilla EXP
  example_vanilla_exp:
    exp:
      value: [1-50]
      chances: 0.6
      target: right_click #left_click or both_click
      drop_type: front_ground #front_ground(front of player), and center_ground(center of entity).
  
  # Profession EXP (MMOCore)
  mining_exp:
    profession:
      value: mining
      total: [1-30]
      chances: 0.6
      target: left_click #left_click or both_click
      drop_type: front_ground #front_ground(front of player), and center_ground(center of entity).

  # Command Drop
  reward_command:
    command:
      value: "eco give %player% %amount%"
      amount: [10-50] # Random 10-50 currency
      chances: 0.3
      target: left_click #left_click or both_click
```

**🔄 Cross-Plugin Compatibility:**

| Plugin     | Syntax             | Example                    |
| ---------- | ------------------ | -------------------------- |
| **Nexo**   | Direct item ID     | `enchanted_obsidian`       |
| MMOItems   | `TOOL:<ID>`        | `TOOL:STEEL_PICKAXE`       |
| ItemsAdder | `_iainternal:<ID>` | `_iainternal:custom_sword` |
| Vanilla    | Material name      | `DIAMOND`                  |

#### ✨ Drop Visual Settings

Add effects to drops via `drop-options`:

```yaml
drop-options:
  ClientSideDrop: true # Reduce server lag
  Lootsplosion: true # Explosion effect
  PerPlayerDrop: true
  ItemBeam:
    enable: true
    color: BLUE # Beam color
  ItemGlowByDefault:
    enable: true
    color: RAINBOW # Glowing effect
```

<br>
