Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Rarity Color Expended


Recommended Posts

39 minutes ago, TokyoSU said:

i want different color for my item but minecraft have just 4 color and getRarity can only return EnumRarity and not other.

You can use whatever TextFormatting color you want by overriding addInformation in your item class. The passed in list can be changed, the first element of it will be your item name as shown in the tooltip.

If you want even more colors, you can use the RenderTooltipEvent family.

Link to post
Share on other sites
9 minutes ago, TokyoSU said:

Dont want to use addInformation for Item name because anvil cannot rewrite it !

Please clarify what you are talking about. Do you mean that the item name cannot be changed in the anvil when you use the method I described above? Because that is not true.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.