> 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/placeholders/variables.md).

# Variables

**Plugin Internal Variables:**

PrtMineTreasures has default internal variables that are more optimized and start with '@' to differentiate them from the placeholders used by the PlaceholderAPI plugin.

## Block Event:

Variables that store values related to the block-breaking event.

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>VARIABLE</strong></td><td><strong>RETURN</strong></td></tr><tr><td><pre><code>@event_x
</code></pre></td><td>X location of the broken block.</td></tr><tr><td><pre><code>@event_y
</code></pre></td><td>Y location of the broken block.</td></tr><tr><td><pre><code>@event_z
</code></pre></td><td>Z location of the broken block.</td></tr><tr><td><pre><code>@event_w
</code></pre></td><td>Name of the world where the block was broken.</td></tr></tbody></table>

## Player Event:

Variables that store values related to the player's location and information.

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>VARIABLE</strong></td><td><strong>RETURN</strong></td></tr><tr><td><pre><code>@player_x
</code></pre></td><td>X location of the player.</td></tr><tr><td><pre><code>@player_y
</code></pre></td><td>Y location of the player.</td></tr><tr><td><pre><code>@player_z
</code></pre></td><td>Z location of the player.</td></tr><tr><td><pre><code>@player_w
</code></pre></td><td>Name of the world where the player is located.</td></tr><tr><td><pre><code>@player
</code></pre></td><td>Player's name.</td></tr></tbody></table>

## Reward Event:

Variables that store values related to rewards.\
These variables are populated during the delivery of the reward to the player.

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>VARIABLE</strong></td><td><strong>RETURN</strong></td></tr><tr><td><pre><code>@item_amount
</code></pre></td><td>Quantity of the item to be delivered to the player.</td></tr><tr><td><pre><code>@item_name
</code></pre></td><td>Name of the item to be delivered to the player.</td></tr><tr><td><pre><code>@item_material
</code></pre></td><td>Material of the item to be delivered to the player.</td></tr><tr><td><pre><code>@item_data
</code></pre></td><td>Data of the item to be delivered to the player.</td></tr><tr><td><pre><code>@money
</code></pre></td><td>Amount of money to be given to the player.</td></tr><tr><td><pre><code>@exp
</code></pre></td><td>Amount of experience to be given to the player.</td></tr></tbody></table>

## Crate:

Variables that store values ​​related to the generated crate.

<table data-header-hidden><thead><tr><th></th><th></th></tr></thead><tbody><tr><td><strong>VARIABLE</strong></td><td><strong>RETURN</strong></td></tr><tr><td><pre><code>@crate_left
</code></pre></td><td>Time in seconds until disappearance</td></tr><tr><td><pre><code>@crate_left_hour
</code></pre></td><td>Remaining hours format "00", "01"</td></tr><tr><td><pre><code>@crate_left_min
</code></pre></td><td>Remaining minutes format "00", "01"</td></tr><tr><td><pre><code>@crate_left_sec
</code></pre></td><td>Remaining seconds format "00", "01"</td></tr></tbody></table>


---

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

```
GET https://pretti.gitbook.io/prtminetreasures/placeholders/variables.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.
