-
-
Notifications
You must be signed in to change notification settings - Fork 2
Format
Version 2.0
[color:<color name>] examples:
[color:red][color:aquamarine]
[color:<hex>] examples:
[color:00ff00][color:#00ff00][color:0f0][color:#0f0]
Or without the color: prefix, examples:
[red][aquamarine][00ff00][#00ff00][0f0][#0f0]
To reset the color use [color] example: [color:red]red[color] normal
If you would like to specify which color namespace you would like to use, use the [color:<namespace>:<name>] format, examples:
[color:minecraft:red][color:css:aquamarine][color:hex:#0f0]
Surrounded by { and }, seperated by ,
Examples:
{[red],[blue],[red]}{[color:red],[color:blue],[color:red]}{[red],[#00f00],[color:css:red]}
If legacy/adventure hex is enabled:
{&a,&2,&3}-
{&a,�aa00,[red]}(mix & match permitted) {7ff55,�aa00,�aaaa}
Values: bold, underlined (or underline), italics (or italic), strikethrough, obfuscated
[<decoration name>:<true/on/false/off>] examples:
[bold:true][underline:on][italic:on][bold:off][underline:false][italic:off]
If no value is specified after a : the decoration will be removed, example: [bold:on]bold[bold] normal
Full examples:
[bold:on]bold[bold] normal[bold:true]bold[bold] normal[bold:on]bold[bold:off] normal[bold:true]bold[bold:false] normal[bold:true]bold[bold:off] normal
Valid types: open_url, run_command, suggest_command, change_page, copy_to_clipboard
Examples:
[click:open_url:https://github.com/Vankka/EnhancedLegacyText][click:run_command:say hello][click:suggest_command:/help][click:change_page:2][click:copy_to_clipboard:Secret]
To reset the click event use [click] example: [click:run_command:say hi]click to say hi[click] normal text
Valid type: show_text
Examples:
[hover:show_text:Hello][hover:show_text:�aa00Hello]
To reset the hover event use [hover] example: [hover:show_text:Hello]hover me![hover] normal text
Text to insert into chat when Shift Clicked
Examples:
[insert:Hello]
To reset the insertion use [insert] example: [insert:Hello]Shift Click for "hello"[insert] this does nothing
&#hex example: �f00
Can be disabled via EnhancedLegacyText.Builder#adventureHex
Normally when a color code is used formatting (bold, italics, etc.) is removed, this is configurable in EnhancedLegacyText and is disabled by default
- Use
EnhancedLegacyText.Builder#colorResetsto return to the Vanilla behaviour of resetting after color changes
Reset also resets click and hover events.
Can be disabled via EnhancedLegacyText.Builder#legacy