Jump to content

[1.7.10] Using text symbols in tooltips?


Ms_Raven

Recommended Posts

I want to use symbols in some items' tooltips to represent the elements and special effects of weapons I'm adding but they appear significantly smaller than they do in out-of-Minecraft text.

All extra symbols (stars, hearts, music notes, etc) appear in a significantly smaller font size and are slightly superscript in tooltips. Even when running Minecraft on a large TV I have trouble seeing what the symbols are.

 

For example, I want the enchantability of items to be displayed with a star next to them (like "☆10" on a Diamond Sword).

However, what shows up is more like "10".

 

This is what I'm using (in the ItemTooltipEvent so I can add to Vanilla items):

event.toolTip.add(EnumChatFormatting.BLUE + "☆ " + item.getItemEnchantability());

 

 

Is there any way to fix this?

Link to comment
Share on other sites

I tried to use some special characters like those a while ago, and I figured it is because it is because of the unicode font Minecraft uses is smaller than the 'normal' font for Minecraft. I couldn't figure out a solution, so I just gave up on using them.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.