Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 =)

  • Author

I fixed it by making a different image with my icons in the exact same coordinates of the image as the regular status effect icons, then I binded that image to the render engine.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.