Style Type
Type Table
| Category | Type |
|---|---|
| Color | COLOR_HEX, COLOR_RAINBOW, COLOR_GRADIENT, COLOR_PRESET, COLOR_SHADOW, COLOR_TEAM |
| Formatting | BOLD, ITALIC, UNDERLINE, STRIKETHROUGH, OBFUSCATED, FONT, CLEAR |
| Interaction | CLICK_COMMAND_RUN, CLICK_COMMAND_SUGGEST, CLICK_COPY, HOVER_TEXT, HOVER_ITEM, URL, METADATA |
| Modification | UPPER, LOWER, CAPITALIZE, REPLACE, MASK, PREFIX, SUFFIX |
| Advanced | SHOW_ITEM,SHOW_INVENTORY,JSON, DISCORD_JSON, COMMAND_RUN, LOG |
Color Styles
COLOR_HEX- Applies the color specified by the HEX code.
- Option:
Hex Code
COLOR_RAINBOW- Cycles through rainbow colors.
- Option:
Saturation
COLOR_GRADIENT- Applies a color gradient using the provided HEX codes. Supports two or more colors.
- Option:
Hex Codes
COLOR_PRESET- Uses a predefined color name from the
colorPresetsection. - Option:
Preset Name
- Uses a predefined color name from the
COLOR_SHADOW- Applies the HEX code color provided as an option to the shadow. (Available in 1.21.2+).
- Option:
Hex Code
COLOR_TEAM- Colors the text using the player’s team color.
- Option:
None
Formatting Styles
BOLD- Makes the text bold.
- Option:
None
ITALIC- Makes the text italic.
- Option:
None
UNDERLINE- Underlines the text.
- Option:
None
STRIKETHROUGH- Applies a strikethrough style to the text.
- Option:
None
OBFUSCATED- Applies Minecraft-style obfuscation (magic text) to make the text unreadable.
- Option:
None
FONT- Changes the font style to the specified font ID.
- Option:
Font ID
CLEAR- Removes all applied styles.
- Option:
None
Interaction
CLICK_COMMAND_RUN- Immediately executes the supplied command when the text is clicked.
- Option:
Command
CLICK_COMMAND_SUGGEST- Places the supplied command into the chat input field when clicked (does not execute automatically).
- Option:
Command
CLICK_COPY- Copies the supplied text to the clipboard when the text is clicked.
- Option:
Text
HOVER_TEXT- Displays the supplied text when the mouse hovers over it.
- Option:
Text
HOVER_ITEM- Displays the item description for a specified inventory slot when hovered over. (e.g.,
-1for main-hand,40for off-hand). - Option:
Slot ID
- Displays the item description for a specified inventory slot when hovered over. (e.g.,
URL- Opens the provided URL in a browser when clicked.
- Option:
URL
METADATA- Displays the server receipt time on hover and copies it to the clipboard on click.
- Option:
None
Modification
UPPER- Transforms every matched substring into uppercase characters.
- Option:
None
LOWER- Transforms every matched substring into lowercase characters.
- Option:
None
CAPITALIZE- Converts only the first character of the string to uppercase.
- Option:
None
REPLACE- Replaces the matched text with the provided string while preserving the original style.
- Option:
Text
MASK- Replaces the original string with the provided character(s), adjusting to match the original length.
- Option:
Character
PREFIX- Attaches the provided text before the original text.
- Option:
Text
SUFFIX- Attaches the provided text after the original text.
- Option:
Text
Advanced
SHOW_ITEM- Displays the description and texture of the item/block held by the player.
- Option:
Altas Path(atlas;sprite)
SHOW_INVENTORY- Displays the user’s face. Clicking it shows the user’s inventory snapshot.
- Option:
None
JSON- Parses the provided JSON string and displays it as a text component.
- Option:
JSON Data
DISCORD_JSON- Sends the provided JSON options to Discord via a registered webhook.
- Option:
JSON Data
COMMAND_RUN- Immediately executes the supplied command when the text is processed (server-side trigger).
- Option:
Command
LOG- Logs the text and sender information to the server console.
- Option:
None