The devs of the Adventure library provide a handy online tool to create the right formatting codes to display the text properly.
You can find the tool at https://webui.advntr.dev/
Please make sure to surround your text with either single quotes (
') or double quotes (
This avoids possible issues where the YAML parser would treat lines starting with specific characters as special options (i.e.
< would be treated as a scolar value).
motd: - <red>This will cause - <red>Errors
motd: - '<green>This will be formatted' - '<green>properly.'
The following options are not supported, no matter what option they are used in:
- Hover Actions (Show text, Show Advancement, etc)
- Click Actions (Run command, Suggest command, etc.)
- Custom Fonts (May work if player already has the resource pack loaded)
Color options (
<gray>, etc.) are available for all text options.
24-Bit HEX colors (
<#123abc>, etc.) are only available for the
Motd option for a 1.16+ Server/Proxy.
Formatting options (
<italic>, etc.) are available for all text options.