MiniMessage Renderer
The helpers module includes a MiniMessage renderer that parses Adventure MiniMessage format strings into Kore ChatComponents. This lets you write human-readable styled text that compiles into Minecraft's JSON text component format.
MiniMessage is part of the Adventure library, widely used by Paper, Velocity, and other Minecraft server platforms. You can preview MiniMessage text in the MiniMessage Web Viewer without starting a Minecraft instance.
Basic Usage
The function returns a ChatComponents instance that can be used anywhere Kore expects text components.
Configuration
Pass a configuration lambda to customize defaults:
Colors
Named Colors
All vanilla formatting colors are supported:
Aliases <color:name> and <c:name> are also supported:
Hexadecimal Colors
Gradients
Gradient tags are recognized and apply the first color in the gradient:
Rainbow & Transition
Rainbow and transition tags are recognized as style tags:
Decorations
| Tag | Aliases | Effect |
|---|---|---|
<bold> |
<b> |
Bold |
<italic> |
<i>, <em> |
Italic |
<underlined> |
<u> |
Underlined |
<strikethrough> |
<st> |
Strikethrough |
<obfuscated> |
<obf> |
Obfuscated |
All decorations support closing tags to limit their scope:
Reset
The <reset> (or <r>) tag clears all active styles and returns to defaults:
Click Events
Hover Events
The show_text value is itself parsed as MiniMessage, so you can use tags inside hover text.
Fonts
Insertion
Shift-clicking the rendered component inserts the specified text into the chat prompt:
Newlines
Advanced Components
Translatable (I18n)
Keybinds
Selectors
Scoreboards
NBT Data
Escaping & Preformatted Text
Backslash Escaping
Prefix a tag with \ to render it as literal text:
Preformatted Blocks
Everything inside <pre>...</pre> is treated as raw text:
Tag Resolvers
Custom placeholder tags can be resolved dynamically at render time:
The resolved component inherits the current style context (color, bold, italic, font) unless it defines its own.
Strict Mode
Enable strict mode to throw a MiniMessageParseException on parse errors:
Strict mode catches:
- Unclosed tags
- Unknown/unrecognized tags
- Closing tags with no matching opening tag
References
- MiniMessage Format Specification - full tag reference from the Adventure docs.
- MiniMessage Web Viewer - interactive playground to preview MiniMessage text.
- Adventure GitHub Repository - the library that defines the MiniMessage format.
- Minecraft Wiki - Raw JSON Text - the underlying component format MiniMessage compiles to.
