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 comment
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.

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.