Skip to content

Text Formation

nulli0n edited this page Jun 6, 2024 · 7 revisions

Overview

nightcore advices you to use new style for your text colors and tags, similar to HTML ones: <tag>Text</tag>.

This makes your configuration files more clear and handy.

It's recommended to always close your tags when it's supposed to to avoid any possible issues due to tag clashes. However, this is not strict requirement and you should be fine anyway.

Support for legacy color codes (&1&l) will be dropped in near future.

Examples

Legacy Text: &aHello, &e&l%player_name%!

Modern Text: <green>Hello, <yellow><b>%player_name%</b>

It became a bit longer, but it's a way easy to read and maintain.

πŸ”– Tags

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

πŸ’‘ Generic

  • <br> - Line break.
  • <r>Text</r> - Resets all text colors, formation, font and hover/click events.

🎨 Default Colors

nightcore provides a bunch of default ready to use color tags. You can override them with your own HEX codes in the config.

  • <white>Text</white> - White color. Close to &f.
  • <gray>Text</gray> - Gray color. Close to &7.
  • <green>Text</green> - Green color. Close to &2.
  • <yellow>Text</yellow> - Yellow color. Close to &e.
  • <orange>Text</orange> - Orange color.
  • <red>Text</red> - Red color. Close to &4.
  • <blue>Text</blue> - Blue color.
  • <cyan>Text</cyan> - Cyan color.
  • <purple>Text</purple> - Purple color.
  • <pink>Text</pink> - Pink color.
  • <dark_gray>Text</dark_gray> - Dark Gray color. Close to &8.
  • <light_gray>Text</light_gray> - Light Gray color.
  • <light_green>Text</light_green> - Light Green color.
  • <light_yellow>Text</light_yellow> - Light Yellow color.
  • <light_orange>Text</light_orange> - Light Orange color.
  • <light_red>Text</light_red> - Light Red color.
  • <light_blue>Text</light_blue> - Light Blue color.
  • <light_cyan>Text</light_cyan> - Light Cyan color.
  • <light_purple>Text</light_purple> - Light Purple color.
  • <light_pink>Text</light_pink> - Light Pink color.

πŸ–Œ HEX Color

  • <color:#ff0000>Text</color> - Colors the text in #ff0000 hex color.

🌈 Gradient

  • <gradient:#ff0000:#00ff00>Gradiented Text</gradient> - Creates a gradient with #ff0000 to #00ff00 colors for a text.

πŸ”€ Font

  • <font:"font_name">Custom Font Text</font> - Sets font_name as a text font.

πŸͺ„ Font Style

  • <b>Text</b> - Bold. Similar to legacy &l.
  • <i>Text</i> - Italic. Similar to legacy &o.
  • <o>Text</o> - Obfuscated. Similar to legacy &k.
  • <s>Text</s> - Strikethrough. Similar to legacy &m.
  • <u>Text</u> - Underlined. Similar to legacy &n.

πŸ’¬ Hover Event

  • <hover:show_text:"<green>This is hoverable text!">Hover Me</hover> - Creates a hoverable text. You can use other tags inside.
  • <hover:show_item:"NBT or Material">Hover Me</hover> - Displays an item when hover the text. You need a string of the compressed item NBT data or item material name.

πŸ•Ή Click Event

  • <click:open_url:"https://google.com/">Click me!</click> - Opens URL when clicked.
  • <click:run_command:"/say Hello!">Click me!</click> - Runs a command when clicked.
  • <click:suggest_command:"/say Hello!">Click me!</click> - Suggests a command when clicked.
  • <click:copy_to_clipboard:"Copied Text">Click me!</click> - Copies text to clipboard when clicked.

🧭 Navigation Menu

🏠 General

🧩 Configuration

Clone this wiki locally