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, SHOW_ENDER_CHEST, ATLAS_PRESET, JSON, DISCORD_JSON, COMMAND_RUN, LOG, BUBBLE, BLOCK |
Color Styles
COLOR_HEX: Applies the color specified by the HEX code. Option:Hex CodeCOLOR_RAINBOW: Cycles through rainbow colors. Option:SaturationCOLOR_GRADIENT: Applies a color gradient using the provided HEX codes. Supports two or more colors. Option:Hex CodesCOLOR_PRESET: Uses a predefined color name from thepresets.json/colorsection. Option:Preset NameCOLOR_SHADOW: Applies the HEX code color provided as an option to the shadow. Available in 1.21.2+. Option:Hex CodeCOLOR_TEAM: Colors the text using the player's team color. Option:None
Formatting Styles
BOLD: Makes the text bold. Option:NoneITALIC: Makes the text italic. Option:NoneUNDERLINE: Underlines the text. Option:NoneSTRIKETHROUGH: Applies a strikethrough style to the text. Option:NoneOBFUSCATED: Applies Minecraft-style obfuscation to make the text unreadable. Option:NoneFONT: Changes the font to the specified font ID. Option:Font IDCLEAR: Removes all currently applied styles. Option:None
Interaction
CLICK_COMMAND_RUN: Immediately executes the supplied command when the text is clicked. Option:CommandCLICK_COMMAND_SUGGEST: Places the supplied command into the chat input field when clicked. Option:CommandCLICK_COPY: Copies the supplied text to the clipboard when the text is clicked. Option:TextHOVER_TEXT: Displays the supplied text when the mouse hovers over it. Option:TextHOVER_ITEM: Displays the item description for a specified inventory slot when hovered over. For example,-1is the main hand and40is the off hand. Option:Slot IDURL: Opens the provided URL in a browser when clicked. The domain or subdomain must be included inpresets.json/whitelist. If the list is empty, all URLs are allowed. Option:URLMETADATA: 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:NoneLOWER: Transforms every matched substring into lowercase characters. Option:NoneCAPITALIZE: Converts only the first character of the string to uppercase. Option:NoneREPLACE: Replaces the matched text with the provided string while preserving the original style. Option:TextMASK: Replaces the original string with the provided character or string, adjusting to match the original length. Option:CharacterPREFIX: Attaches the provided text before the original text. Option:TextSUFFIX: Attaches the provided text after the original text. Option:Text
Advanced
SHOW_ITEM: Displays the description and texture of the item or block held by the player. This style type must be placed at the very bottom. Option:Atlas Path (atlas;sprite)SHOW_INVENTORY: Displays the user's face. Clicking it shows the user's inventory snapshot. This style type must be placed at the very bottom, and the inventory snapshot is cleared when the player leaves the server. Option:NoneSHOW_ENDER_CHEST: Displays the user's face. Clicking it shows the user's ender chest snapshot. This style type must be placed at the very bottom, and the inventory snapshot is cleared when the player leaves the server. Option:NoneATLAS_PRESET: Uses a predefined atlas name from thepresets.json/atlassection. This style type cannot be used in versions below 1.21.8 and must be placed at the very bottom. Option:Preset NameJSON: Parses the provided JSON string and displays it as a text component. Option:JSON DataDISCORD_JSON: Sends the provided JSON payload to Discord through the specified webhook. Option:webhook;JSON DataCOMMAND_RUN: Immediately executes the supplied command when the text is processed. Option:CommandLOG: Logs the text and sender information to the server console. Option:NoneBUBBLE: Displays a speech bubble above the user's head. This type must be placed aboveSHOW_ITEMandSHOW_INVENTORY. Option:NoneBLOCK: Stops the message from being sent. Option:None