# 🧊 AutoBlock

The **AutoBlock System** allows players to automatically convert certain materials into their block form. This feature helps in inventory management and makes storage more efficient.

Players with the permission `vortexprisoncore.autoblock` can use `/autoblock on/off` to automatically compress mined resources into block form.

<figure><img src="/files/8hDoIeOD8WREzjlCo5o1" alt=""><figcaption></figcaption></figure>

#### Configuration

```yaml
AutoBlocks:
  - "COAL:COAL_BLOCK:9"
  - "RAW_COPPER:RAW_COPPER_BLOCK:9"
  - "RAW_IRON:RAW_IRON_BLOCK:9"
  - "RAW_GOLD:RAW_GOLD_BLOCK:9"
  - "COPPER_INGOT:COPPER_BLOCK:9"
  - "IRON_INGOT:IRON_BLOCK:9"
  - "GOLD_INGOT:GOLD_BLOCK:9"
  - "DIAMOND:DIAMOND_BLOCK:9"
  - "EMERALD:EMERALD_BLOCK:9"
  - "REDSTONE:REDSTONE_BLOCK:9"
  - "LAPIS_LAZULI:LAPIS_BLOCK:9"
```

#### Explanation

Each entry follows the format:\
`MATERIAL_FROM:MATERIAL_TO:AMOUNT`

* **MATERIAL\_FROM**: The item that will be converted.
* **MATERIAL\_TO**: The block it will be converted into.
* **AMOUNT**: The number of `MATERIAL_FROM` items required to create one `MATERIAL_TO` block.

#### Example

```yaml
- "DIAMOND:DIAMOND_BLOCK:9"
```

This means **9 Diamonds** will automatically convert into **1 Diamond Block**.

#### Customization

You can add more materials following the same format to allow additional conversions.


---

# 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.vortexdevelopment.net/projects/vortexprisoncore/autoblock.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.
