# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pretti.gitbook.io/prtminetreasures/plugin/configs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
