# Translations

All plugin messages (except console messages) can be translated.

To add a translation:

1. Duplicate the `messages_en.yml` file in the language folder
2. Rename it keeping the `messages_xx.yml` format
3. Translate the messages
4. In [config.yml](/headblocks/headblocks3/configuration-config.yml/global-settings.md), set the `xx` code in the `language` section

## Color Support

HeadBlocks supports multiple color formats thanks to [IridiumColorAPI](https://github.com/Iridium-Development/IridiumColorAPI):

**Minecraft native colors:**

```
&6&lH&e&lead&6&lB&e&llocks
```

**Hexadecimal colors:**

```
<SOLID:FFFF00>HeadBlocks
```

**Gradient:**

```
<GRADIENT:ff0000>HeadBlocks</GRADIENT:ffff00>
```

**Rainbow:**

```
<RAINBOW1>HeadBlocks</RAINBOW>
```

**Gradient saturation:**

```
<RAINBOW100>HeadBlocks</RAINBOW>
```


---

# 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://aerwyn81.gitbook.io/headblocks/headblocks3/other-files/translations.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.
