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