> For the complete documentation index, see [llms.txt](https://wiki.vortexdevelopment.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.vortexdevelopment.net/projects/vortexprisoncore/treasures.md).

# 💎Treasures

The **Treasures Module** allows server owners to configure loot rewards within mines. Players can receive treasures based on configurable probabilities, with optional daily limits to prevent excessive farming.

Admins can reset a player's daily limits using `/prisontreasures reset <player>`.

#### Global Configuration

The global settings define treasures that apply across all mines.

```
Global:
  Treasures:
    1:
      Chance: 0.99
      Daily: true
      Daily Limit: 10
      Commands:
        - "give <player> diamond 1"
```

* `Chance`: Probability of obtaining this treasure.
* `Daily`: Whether the loot has a daily limit. Resets midnight at local time.
* `Daily Limit`: The maximum number of times this treasure can be obtained per day.
* `Commands`: List of commands executed when a player finds the treasure.

#### Per-Mine Configuration

Each mine can have its own treasure settings.

```
Mines:
  Basic:
    Treasures:
      Diamonds:
        Chance: 100.0
        Daily: true
        Daily Limit: 100
        Commands:
          - "give <player> diamond 1"
```

* `Chance`: The probability of obtaining this treasure in the specific mine.
* `Daily`: Whether the loot has a daily restriction. Resets midnight at local time.
* `Daily Limit`: Maximum times a player can receive the treasure per day.
* `Commands`: The commands executed when a player receives the treasure.

#### Conclusion

The **Treasures Module** provides a structured way to reward players with items while ensuring balanced gameplay. By configuring drop rates and daily limits, you can prevent over-farming while keeping mining engaging for players.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://wiki.vortexdevelopment.net/projects/vortexprisoncore/treasures.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
