Posted May 21, 20169 yr Does anyone know how to change my items name color? https://scontent-lhr3-1.xx.fbcdn.net/v/t34.0-12/13281794_1002224119827471_1806548740_n.png?oh=de359f1333a656eb220ab0f410035bb2&oe=574387FE[/img] So like where it says "Obsidian Ingot" in plain color how would I change just this item to a Red color?
May 21, 20169 yr Add one of the formatting codes to the beginning of the localized name in your localization file. Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
May 21, 20169 yr Author Okay so I did what you said, and I put the color change here: GameRegistry.registerItem(ObsidianStick = new MAItem("§4ObsidianStick"), "ObsidianStick"); And this happens: https://scontent-lhr3-1.xx.fbcdn.net/v/t34.0-12/13277907_1002269206489629_433977824_n.png?oh=80cfcfe2aa321bb150445d8995a18a6b&oe=57438F9A[/img] It makes the name go from "Obsidian Stick" with no colour to "item.ObsidianStick.name" with most of it red, can you tell me what I did wrong please?
May 21, 20169 yr You should put that in your language file. Sorry, I was under wrong impression. I mean since registered name points at name in lang, why not return colorized name from lang file. I was wrong 1.7.10 is no longer supported by forge, you are on your own.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.