> For the complete documentation index, see [llms.txt](https://pretti.gitbook.io/prtminetreasures/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pretti.gitbook.io/prtminetreasures/plugin/configs.md).

# Configs

### Default plugin configuration file.

{% code lineNumbers="true" fullWidth="false" %}

```yaml
options:
  treasures-limit: 1
  remove-vanilla-drops: false
  drop-to-inventory: true
  discard-excess: true
```

{% endcode %}

***

### **`treasures-limit:`**

Defines the number of treasures that will be executed. For example, if you have configured 5 treasures (not rewards/sections) and the limit is set to 2, up to 2 rewards can be triggered when breaking a block.

**Example**:

```yaml
treasures-limit: 2
```

***

### **`remove-vanilla-drops:`**

Specifies whether the plugin will remove/cancel the block-breaking event after a treasure is executed and the reward is given to the player.

* **`true`**: Always removed; this will cancel the event, which may prevent other plugins from detecting that the block was broken.
* **`false`**: Never removed; no special handling will be applied.

**Example**:

```yaml
remove-vanilla-drops: true
```

***

### **`drop-to-inventory:`**

Specifies whether the reward will be added directly to the player's inventory instead of spawning at the block's location.

* **`true`**: Items will be added to the player's inventory.
* **`false`**: Items will spawn at the block's location.

**Example**:

```yaml
drop-to-inventory: true
```

***

### **`discard-excess:`**

Specifies whether excess rewards should be removed instead of being dropped at the block's location when the player's inventory is full.

* **`true`**: Excess items will be discarded.
* **`false`**: Excess items will spawn in the world.

**Example**:

```yaml
discard-excess: true
```
