Jump to content

[1.6.4] Displaying Custom Status Effects


Recommended Posts

I made several 16x16 status icons and combined them with the regular player inventory picture like this:




Then, I overide the setIconIndex method of my custom potion to coordinates as if the series of status icons in the inventory picture were a 2D array which means that setIconIndex(0,0) would return the speed icon and setIconIndex(2,1) would return the jump boost icon.


However, when I try to set the icon to an icon that is to the right of the fire resistance icon, then, in game, it looks as if the icon was too far so the game looked for the leftmost icon on the next row. Here's an example of when I try setIconIndex(8,1) which is the brick-textured apple




So my question is, how would I display my custom status icons?


Thanks for taking the time to read this =)

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.

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.


  • Create New...

Important Information

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