Jump to content

Recommended Posts

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!

Posted

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

Posted

So what would I put? This?

 

@SideOnly(Side.CLIENT)

@Override

public void registerIcons(IconRegister iconRegister)

{

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

}

Posted

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

Posted

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.

Posted

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

Posted

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

Posted

:-\ 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

Posted

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

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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