Jump to content

Recommended Posts

Posted

To make adding tooltips to items that already exist easier, adding a hook or event that is called whenever the items addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) method is called so that mods like mine can add tooltips to the vanilla minecraft items, or other mod items.

 

Thanks in advance, EJ.

 

Example of an event for this that could be added:

 

  Reveal hidden contents

 

  • 3 months later...
Posted

"so that mods like mine can add tooltips to the vanilla minecraft items, or other mod items.", well actualy u can add that using tick handlers with ticktype player, getting the current equiped item and adding information

 

  • 4 months later...
Posted

And for items in inventory? Man, I've been trying several ways of adding tooltips to vanilla items. I can get it done, but not in a handy way.

Is'nt there really a hook for this?

Posted

Last time I checked, there is no way to modify the tooltip, because the list containg info is being created inside a method. But if you use NEI, it gives such possibility.

  • 1 month later...
Posted

This looks great! How do I implement this now? Is it ok to just copy and paste all the green code? (and remove the red code I guess)

Will this work when I reobuscate and export the code? Will it work on a server?

 

As you might have guessed, I'm not so familiar with this ForgeHookFactory. Can I make additions like this in there?

 

 

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.