Text Formatting
Text formatting codes are used to create fancy colorized text, they are prefixed with a grave symbol `
. After using a formatting code such as `o
(italic) it has to be reset, otherwise it will continue until the end of the text.
Some older maps may use the depreciated § section symbol to specify formatting codes. This symbol should not be used in new map files.
Examples
<item name="`iFrozen `rWater" material="snowball"/>
<line>This is one of three of `9Blue Team`r's victory monuments.</line>
<item name="`1Blue `4Red `rNone" material="book"/>
Chat Colors

ID | Color Name | ID | Color Name |
---|---|---|---|
BLACK | DARK_GRAY | ||
DARK_BLUE | BLUE | ||
DARK_GREEN | GREEN | ||
DARK_AQUA | AQUA | ||
DARK_RED | RED | ||
DARK_PURPLE | LIGHT_PURPLE | ||
GOLD | YELLOW | ||
GRAY | WHITE |
Text
ID | Function |
---|---|
MAGIC | |
BOLD | |
STRIKETHROUGH | |
UNDERLINE | |
ITALIC | |
RESET |
The magic formatter will convert all the text after it into a scrambled, constantly changing mess of letters.
NOTE:
Reset resets all color and text styles.
To have a line all italic and one word red you will have to to do the following.
<!-- Everything is italic and the word "italic" is also red -->
<line>`oThis is a `citalic `r`otext with a single red word.</line>
Copied from: bukkit docs - Chat Color