Skip to content

Instantly share code, notes, and snippets.

@matshou
Last active November 14, 2016 04:29
Show Gist options
  • Save matshou/ecaaca077960718269a7409a431577b8 to your computer and use it in GitHub Desktop.
Save matshou/ecaaca077960718269a7409a431577b8 to your computer and use it in GitHub Desktop.
How to add colour to item description text.
@SideOnly(Side.CLIENT)
@Override
public void addInformation(ItemStack stack, EntityPlayer player, java.util.List<String> info, boolean par4)
{
info.add(com.mojang.realmsclient.gui.ChatFormatting.RED + "This item " +
com.mojang.realmsclient.gui.ChatFormatting.GREEN + "has a " +
com.mojang.realmsclient.gui.ChatFormatting.BLUE + "colourful " +
com.mojang.realmsclient.gui.ChatFormatting.GOLD + "description.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment