> For the complete documentation index, see [llms.txt](https://wiki.staffplusplus.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.staffplusplus.org/features/alerts/x-ray.md).

# X-Ray

The x-ray is used to notify staff members when players mine a certain block. The alerts can be configured to run after a specific threshold has been reached.

```yaml
xray-alerts:
    # Whether or not this module is enabled.
    enabled: true

    # Block type that, when mined, will invoke an alert.
    blocks: SPAWNER, EMERALD_ORE:10, DIAMOND_ORE:10:1m, GOLD_ORE, IRON_ORE, COAL_ORE, LAPIS_ORE, REDSTONE_ORE
```

Blocks can be configured in three different ways.

#### Trigger every time \[blocktype]

Example: `SPAWNER` \
The above configuration will trigger an alert every time a player mines a spawner.

#### Trigger after amount \[blocktype:amount]

Example: `EMERALD_ORE:10` \
The above configuration will trigger an alert every time a player mines a total of 10 emeralds.

#### Trigger after amount/time \[blocktype:amount:time]

Example: `DIAMOND_ORE:10:1m` \
The above configuration will trigger an alert whenever a player mines 10 diamond block within the time span of 1 minute.

**Possible time values:**

* s = second
* m = minute
* h = hour
* d = day
* w = week
* M = month
* y = year

*Time values cannot be combined. For example this is invalid: "1m30s" instead type "90s"*


---

# 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.staffplusplus.org/features/alerts/x-ray.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.
