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

When I try and add this line to my item:

 

@SideOnly(Side.CLIENT)

@Override

public void updateIcons(IconRegister iconRegister)

{

    iconIndex = iconRegister.registerIcon("PrimalCraft"+":"+"knappingStone");

}

 

: I get an error that says 'the method updateIcon(IconRegister) of type ItemKnappingStone must override or implement a supertype method'

 

and

 

'iconIndex cannot be resolved to a variable'

 

This is my first time modding in Forge, so I'm sure it's just a little thing I've overlooked. I just can't seem to figure it out!

  • Author

Thanks for the response, that fixes the first error, but not the second one... Any ideas?

  • Author

Again, thanks for the response. It had me change that to 'this.itemIcon' and then I get the missing texture thing when I play...

what I have for the texture is ("mod/" + this.iconpath)

 

And I have public string iconpath

 

Then put the texture in jars = bin = minecraft.jar = textures = items or blocks = mod then put the texture in there

 

And this is for items

  • Author

So what would I put? This?

 

@SideOnly(Side.CLIENT)

@Override

public void registerIcons(IconRegister iconRegister)

{

    this.icon = iconRegister.registerIcon("PrimalCraft"+/"+iconpath);

}

So what would I put? This?

 

public String iconPath

 

@SideOnly(Side.CLIENT)

@Override

public void registerIcons(IconRegister iconRegister)

{

    this.Icon = iconRegister.registerIcon("mod/" + this.iconPath);

}

 

make it look like this and put the textures in the place I told you ok

Yikes!  No!

 

Capture.png

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author
:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

 

Are you, perchance, using 1.5.2 and not 1.5.1?

 

I have seen rumor that the "mods/" top-level folder is unneeded, so instead of:

 

/mods/%modname%/textures/blocks/%block.png%

 

it's:

 

/%modname%/textures/blocks/%block.png%

 

But I haven't verified that yet myself.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

 

I'll tell you how you can do it later ok

:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

 

I'll you how you can do it later ok

:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

 

I'll tell you how you can do it later ok

 

Says the guy with his own open thread asking how to do it.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author

:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

 

Are you, perchance, using 1.5.2 and not 1.5.1?

 

I have seen rumor that the "mods/" top-level folder is unneeded, so instead of:

 

/mods/%modname%/textures/blocks/%block.png%

 

it's:

 

/%modname%/textures/blocks/%block.png%

 

But I haven't verified that yet myself.

 

So the complete directory would be 'forge/mcp/jars/%MODNAME%/textures/items/%ITEMNAME%/'

Is the correct? And if so, it's still not working.

 

Oh, and yes, I'm using 1.5.2

:-\ Welp, still getting the missing texture. Put it where you said too... But at least the error are fixed!

 

Are you, perchance, using 1.5.2 and not 1.5.1?

 

I have seen rumor that the "mods/" top-level folder is unneeded, so instead of:

 

/mods/%modname%/textures/blocks/%block.png%

 

it's:

 

/%modname%/textures/blocks/%block.png%

 

But I haven't verified that yet myself.

 

So the complete directory would be 'forge/mcp/jars/%MODNAME%/textures/items/%ITEMNAME%/'

Is the correct? And if so, it's still not working.

 

Oh, and yes, I'm using 1.5.2

 

No, it's 'forge/mcp/src/minecraft/mods/%MODNAME%/textures/items/%ITEMNAME%/'

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

  • Author

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

:) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :) :)

Thank you! Got it working!

Guest
This topic is now closed to further replies.

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.