Started by
DutchAT
on
Topic category: Help with Minecraft modding (Java Edition)
How can I set custom color (like blue, red, gold etc.) to a Item's Name or description?
Thanks
Topic category: Help with Minecraft modding (Java Edition)
How can I set custom color (like blue, red, gold etc.) to a Item's Name or description?
Thanks
Use addInformation method. This method have these fields:
(ItemStack stack, EntityPlayer player, List list, boolean par4)
For adding tooltip you need addInformation an entry to the list variable.Color in older versions was set using EnumChatFormatting, in 1.9+ it is TextFormatting. (Exemplář: EnumChatFormatting.RED+"I am an item" )
The name setting is just changing "displayName" variable of the stack variable ( I am not fully sure about name of the var) Also I recommend translating from .lang file
@#1 Ok, my mind just blow up
@#1 Ok, my mind just blow up
Can you give me an example of the code and where must i place it? xd
Can you give me an example of the code and where must i place it? xd