> For the complete documentation index, see [llms.txt](https://itemsadder.devs.beer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://itemsadder.devs.beer/plugin-usage/beginners/text-formatting.md).

# Text Formatting

{% hint style="warning" %}
Doesn't work in [Minecraft language files](/plugin-usage/plugin-configuration/languages.md) due to a Minecraft limitation.
{% endhint %}

## How to use colored texts

You can change color of text and specify a custom hex color using the special notation.

### Minimessage

{% embed url="<https://webui.advntr.dev/>" %}

{% embed url="<https://docs.advntr.dev/minimessage/format.html>" %}

```yaml
info:
  namespace: git_2224
  dictionary-lang: en
dictionary:
  display-name-test_gradient_dictionary: <#57ff5c><bold>test</bold><gradient:#ff00ee:#f79459>Amogus
items:
  test_gradient_dictionary:
    display_name: display-name-test_gradient_dictionary
    lore:
      - "<gold>yo0"
      - "<dark_green>yo1"
    resource:
      generate: false
      model_path: minecraft:item/emerald
      material: PAPER
  test_font:
    display_name: <gradient:#ff00ee:#f79459><font:alt>Alt font used for this item
    lore:
      - "<gradient:#ff00ee:#f79459><font:alt>Alt font used for this item"
      - "<gradient:#ff00ee:#f79459><font:alt>Alt font used for this item<"
    resource:
      generate: false
      model_path: minecraft:item/emerald
      material: PAPER
```

```
<#FE5A00>Magic Fuel
<red>Magic <green>Fuel
<gradient:#ff00ee:#f79459>Here is a gradient example text!
```

<div><figure><img src="/files/QgDFCKhIO7u7qxN0ULKN" alt=""><figcaption></figcaption></figure> <figure><img src="/files/WOxOGTM1ujejtvExlSJy" alt=""><figcaption></figcaption></figure> <figure><img src="/files/qpNAzed8aGjaXGBJLdLk" alt=""><figcaption></figcaption></figure></div>

<div><figure><img src="/files/tLCcG4IE6V3lqrcI6FfO" alt=""><figcaption></figcaption></figure> <figure><img src="/files/HXFo7OpRNMH3BkO1TA7u" alt=""><figcaption></figcaption></figure></div>

### Component

{% embed url="<https://minecraft.tools/en/json_text.php>" %}

{% embed url="<https://www.gamergeeks.net/apps/minecraft/raw-json-text-format-generator>" %}

```yaml
items:
  test_emerald:
    display_name: '{"text\":"TEST", "font": "alt"}'
    resource:
      generate: false
      model_path: minecraft:item/emerald
      material: PAPER
```

### Legacy

`display_name: '&6TEST'`

```yaml
items:
  test_emerald:
    enabled: true
    display_name: '&6TEST'
    resource:
      generate: false
      model_path: minecraft:item/emerald
      material: PAPER
```


---

# 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://itemsadder.devs.beer/plugin-usage/beginners/text-formatting.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.
