Minecraft can display text in 16 different colors. Two-letter codes are used to set colors in messages. A color code is am ampersand (
&) followed by a digit or a letter. Color codes can be used in chat messages, command parameters (e.g. kick reasons or world greetings),
greeting.txt, as well as in mods. Multiple color codes can be used in the same message.
Using colors in chat
Since Minecraft client does not allow typing in ampersands (
&) in chat, a percent mark (
%) is used instead. Although any player can call
/Colors to see this list, only players with UseColorCodes permission can use them. For example, typing in
%CHello%3! will produce
To use a percent mark (
%) normally, without producing a color code, add a backslash (
\) in front of it. For example, typing
%Applejack in chat, instead of
The backslash itself can be escaped! Typing in
\erpy in chat (%D becomes magenta color code).
To simplify customizing chat appearance, fCraft provides several symbolic color codes, which are replaced on the fly with configured colors.
Code Default Description
Color of normal system messages (e.g. command feedback).
Color of command usage examples in help.
Color of messages produced by
Color of announcements and rules. Default is dark-green. Note that this default color can be overridden by colorcodes in announcement and rule files.
Color of private and rank-wide messages.
Color of error and warning messages.
Color of IRC messages and event announcements, as seen on the server/in-game.
In addition to colors, players with UseColorCodes are able to use the newline keyword
%N to force a line break mid-message.
IRC also supports colors, and fCraft's IRC bot can translate colors between IRC and Minecraft colors on the fly. The following configuration keys control this functionality:
- IRCUseColor (default: true) controls whether IRC bots should use colors/formatting when writing messages TO IRC.
- IRCStripMinecraftColors (default: true) controls whether colors and color codes in IRC messages should be sent to the Minecraft server.
|Command Tips • Constants • Colors • Emotes • Private Messages|