# Text Formation

NightCore features MiniMessage like tags for text formation.

# Color Schemes

NightCore features custom color definition via the color_schemes.yml config file. It allows you to define your own colors with custom names that you can use in all NightCore based plugins.

By default it uses the custom color scheme with default colors changed and a few additional colors. You can switch back to the "classic" colors by setting Selected: default in the color schemes config.

# Tags

Here is a list of all tags currently supported by nightcore.

# Color

Color the next parts

Format: <color_name> where color_name is any color from the color_schemes.yml or a HEX value #ff0000.

Examples:

  • <red>Hello <blue>world</blue>!</red>
  • <green>Hello world!</green>
  • <#00ff00>R G B!

# Color (verbose)

A more verbose way of defining colors

Format: <color:value> where value is any color from the color_schemes.yml or a HEX value #ff0000.

Aliases: colour, c

Examples:

  • <color:#ff0000>Hello world!</color>
  • <c:#ff00ff>Hello world!</c>

# Decoration

Decorate the next parts

Format: <decoration> where decoration is decoration name.

Allowed Values:

  • Bold: bold, b
  • Italic: italic, i, em
  • Underlined: underlined, u
  • Strikethrough: strikethrough, st, s
  • Obfuscated: obfuscated, obf, o

Examples:

  • <underlined>This is <bold>important</bold>!

# Reset

Close all currently open tags, resetting color/decoration/etc.

Format: <reset>

Aliases: r

Examples:

  • <yellow><bold>Hello <reset>world!

# Click

Allows doing multiple things when clicking on the component.

Format: <click:action:"value"> where action is action name, value is the argument for that particular event.

Examples:

  • <click:run_command:"/seed">Click</click> to show the world seed!
  • Click <click:copy_to_clipboard:"Haha you suck"> this </click>to copy your score!

# Hover

Allows doing multiple things when hovering on the component.

Format: <hover:action:"value"> where action is action name, value is the argument for that particular event.

Supported Actions:

  • show_text - A nightcore formatted text.
  • show_item - Item material name or NBT string.

Examples:

  • <hover:show_text:"<red>test">TEST

# Translatable

Allows displaying minecraft messages using the player locale.

Format: <lang:key> where key is the translation key.

Aliases: translation, translate, tr

Examples:

  • You got a <lang:block.minecraft.diamond_block>!

# Fallback

Allows displaying minecraft messages using the player locale, or a fallback if no text is available

Format: <lang_or:key:fallback>, where key is the translation key, fallback, the fallback text to display.

Aliases: tr_or, translate_or

Examples:

  • You should get a <lang_or:block.minecraft.diamond_block:'Dirt Block'>!

# Gradient

Gradient colored text

Format: <gradient:from:to> where from and to are colors from the color_schemes.yml or a HEX value #ff0000.

Examples:

  • <gradient:#00ff00:#00ffff>Hello world!</gradient>

# Font

Allows to change the font of the text.

Format: <font:key> where key is the namespaced key of the font, defaulting to minecraft.

Examples:

  • Nothing <font:uniform>Uniform <font:alt>Alt </font> Uniform
  • <font:myfont:custom_font>Uses a custom font from a resource pack</font>

# Newline

Insert a newline character.

Format: <newline>

Aliases: br

Examples:

  • Let me insert a <newline>line break here.
  • <hover:show_text:"<red>Hover with a<br><green>line break">Text with<br>line break</hover>