Skip to content

Formatting

All text options, with exception of Conditions, allow the usage of formatting options using MiniMessage.

Online Tool

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/

Before starting

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).

Wrong formatting
motd:
  - <red>This will cause
  - <red>Errors
Right formatting
motd:
  - '<green>This will be formatted'
  - '<green>properly.'

Unsupported options

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)

Colors

Default colors

Default colors such as <red>, <green>, <aqua>, etc. may be used in all text options.

Hex Colors

Hexadecimal colors may be used in the motd option using the <#RRGGBB> format.

Gradients

Gradients can be created by using <gradient:<color1>:<color2>>, replacing <color1> with a starting color name or hex color value and <color2> with an ending color name or hex color value.
Only the motd option may support hex color gradients and in all other options will it be downsampled.

Formatting

Formatting options (<bold>, <italic>, etc.) are available for all text options.