Description: I must get this question every other time I'm on the server, "What is the color code for this or that?" Well I am thinking why don't they just look it up themselves on the wiki, but on the other hand it does make sense to have a command that lists all the available chat colors, so that is what this script does. Player just needs to type /chatcolors to get the list.
I also find the script useful when I am writing a script to help decide which chat colors to use.
Tried to get denizen to print the symbol "ยง" as well as the "&" symbol but the minecraft client kept interpreting the symbol instead of printing it. I could not figure out a way to properly escape the character. If anyone else can figure it out post it in the notes below and I'll update the script.
# I must get this question every other time I'm on the server, "What is# the color code for this or that?" Well I am thinking why don't they # just look it up themselves on the wiki, but it does make sense to have# a command that lists all the available chat colors, so that is what # this script does. Player just needs to type /chatcolors to get the list.## @version 1.0.0# @author PrimerBlock# @last-updated May 11 2013
chat_color_command:
type: world
events:
on chatcolors command:
- narrate "<white>&0 black = <black>black"
- narrate "<white>&1 dark_blue = <dark_blue>dark_blue"
- narrate "<white>&2 dark_green = <dark_green>dark_green"
- narrate "<white>&3 dark_aqua = <dark_aqua>dark_aqua"
- narrate "<white>&4 dark_red = <dark_red>dark_red"
- narrate "<white>&5 dark_purple = <dark_purple>dark_purple"
- narrate "<white>&6 gold = <gold>gold"
- narrate "<white>&7 gray = <gray>gray"
- narrate "<white>&8 dark_gray = <dark_gray>dark_gray"
- narrate "<white>&9 blue = <blue>blue"
- narrate "<white>&a green = <green>green"
- narrate "<white>&b aqua = <aqua>aqua"
- narrate "<white>&c red = <red>red"
- narrate "<white>&d light_purple = <light_purple>light_purple"
- narrate "<white>&e yellow = <yellow>yellow"
- narrate "<white>&f white = <white>white"
- determine fulfilled