Jump to content

Recommended Posts

Posted

Hello, I've been creating a mod with a custom furnace, but when I try to give it a texture, it comes up as white with texture missing. I have already created other blocks/items that DO have the good textures, but this one doesn't want to work. Oh and the GUI doesn't work as well :(

Class:

 

  Reveal hidden contents

 

GUICombiner class

 

  Reveal hidden contents

 

And my armor works PERFECTLY, but it doesn't render on the player, how do I do this? Tutorials on youtube didn't work for me, so I've just let it rest for a minute but I want to know it now :P

Main mod class (if that's needed)

 

  Reveal hidden contents

 

Thanks already :)

Posted

#13

http://s22.postimg.org/yx3yzq3td/Capture.png[/url]

You would think that no one SEARCHES for this problem before posting.

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
  On 5/18/2013 at 9:16 PM, Nieue said:

  Quote

#13

width=800 height=646http://s22.postimg.org/yx3yzq3td/Capture.png[/url]

You would think that no one SEARCHES for this problem before posting.

And that didn't work, I think because it has 3 sides (front, top and side)

 

Really?  You can't figure the rest out on your own?

Capture.png

The only unusual thing there is that I'm saving the result back to a location accessible from everywhere (that block exists solely to register a bunch of debug textures for general use).

 

  Quote

The problem might be that none of my blocks have a texture without a .unlocalizedName thingy behind it in the main class :/

 

No, because it's all set in the Block class, along with hardness, resistance, and several other things.

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
  On 5/19/2013 at 5:53 PM, Nieue said:

Okay so I got the textures working for the blocks, but not for the armor and gui :/

 

Armor I haven't messed with.  I believe they work differently from everything else

 

GUIs don't do the registerIcon stuff.  They use mc.renderEngine.bindTexture("full/path/to/texture.png") where the full path starts after "src/minecraft/" so if you want to put those textures in a gui folder next to your blocks and items, then you'd use:

 

mc.renderEngine.bindTexture("/mods/MODNAME/textures/gui/GUI.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
  On 5/19/2013 at 10:25 PM, Draco18s said:

  Quote

Okay so I got the textures working for the blocks, but not for the armor and gui :/

 

Armor I haven't messed with.  I believe they work differently from everything else

 

GUIs don't do the registerIcon stuff.  They use mc.renderEngine.bindTexture("full/path/to/texture.png") where the full path starts after "src/minecraft/" so if you want to put those textures in a gui folder next to your blocks and items, then you'd use:

 

mc.renderEngine.bindTexture("/mods/MODNAME/textures/gui/GUI.png");

Thanks dude, you're a great help :)

Posted

For armor, did your armor class implement IArmorTextureProvider. It says that it's deprecated but it still works.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
  On 5/20/2013 at 1:06 PM, larsgerrits said:

For armor, did your armor class implement IArmorTextureProvider. It says that it's deprecated but it still works.

Yeah I did that, but it didn't work for me. And I it gave me errors, so I deleted the armor class because I wanted to do something else without errors. So I don't have the armor class anymore, can you show me how to set up a good armor class?

Posted
  On 5/20/2013 at 1:08 PM, Nieue said:

Ow, I've got 1 more problem with the GUI:

 

Just looks like your "active" textury bit is just sitting in the wrong place.

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
  On 5/20/2013 at 2:13 PM, Nieue said:

where should I put it?

 

In your GUI code there's some X and Y coordinates.  THAT'S what's offset.

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
  On 5/20/2013 at 2:32 PM, Draco18s said:

  Quote

where should I put it?

 

In your GUI code there's some X and Y coordinates.  THAT'S what's offset.

Okay, thanks :)

Posted
  On 5/20/2013 at 1:10 PM, Nieue said:

  Quote

For armor, did your armor class implement IArmorTextureProvider. It says that it's deprecated but it still works.

Yeah I did that, but it didn't work for me. And I it gave me errors, so I deleted the armor class because I wanted to do something else without errors. So I don't have the armor class anymore, can you show me how to set up a good armor class?

Yeah, this is my SapphireArmor class:

 

  Reveal hidden contents

 

Note the last method getIsRepairable: you only want to have this if you want your armor to be repairable.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

[quote name="larsgerrits" post="43862" timestamp="1369060732"]
[quote author=Nieue link=topic=8650.msg43838#msg43838 date=1369055430]
[quote author=larsgerrits link=topic=8650.msg43836#msg43836 date=1369055194]
For armor, did your armor class implement IArmorTextureProvider. It says that it's deprecated but it still works.
[/quote]
Yeah I did that, but it didn't work for me. And I it gave me errors, so I deleted the armor class because I wanted to do something else without errors. So I don't have the armor class anymore, can you show me how to set up a good armor class?
[/quote]
Yeah, this is my SapphireArmor class:
[spoiler]
    public void registerIcons(IconRegister iconRegister)
    {
        this.itemIcon = iconRegister.registerIcon(UCReferences.MOD_ID + ":" + this.getUnlocalizedName());
    }

 

What should I replace UCReferences.MOD_ID with?

Posted
  On 5/20/2013 at 2:56 PM, Nieue said:

[quote author=larsgerrits link=topic=8650.msg43862#msg43862 date=1369060732]
[quote author=Nieue link=topic=8650.msg43838#msg43838 date=1369055430]
[quote author=larsgerrits link=topic=8650.msg43836#msg43836 date=1369055194]
For armor, did your armor class implement IArmorTextureProvider. It says that it's deprecated but it still works.
[/quote]
Yeah I did that, but it didn't work for me. And I it gave me errors, so I deleted the armor class because I wanted to do something else without errors. So I don't have the armor class anymore, can you show me how to set up a good armor class?
[/quote]
Yeah, this is my SapphireArmor class:
[spoiler]
    public void registerIcons(IconRegister iconRegister)
    {
        this.itemIcon = iconRegister.registerIcon(UCReferences.MOD_ID + ":" + this.getUnlocalizedName());
    }

 

What should I replace UCReferences.MOD_ID with?

Your modid that you used in your @Mod annotation in your main class

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
  On 5/20/2013 at 3:00 PM, larsgerrits said:

  Quote

[quote author=larsgerrits link=topic=8650.msg43862#msg43862 date=1369060732]
[quote author=Nieue link=topic=8650.msg43838#msg43838 date=1369055430]
[quote author=larsgerrits link=topic=8650.msg43836#msg43836 date=1369055194]
For armor, did your armor class implement IArmorTextureProvider. It says that it's deprecated but it still works.
[/quote]
Yeah I did that, but it didn't work for me. And I it gave me errors, so I deleted the armor class because I wanted to do something else without errors. So I don't have the armor class anymore, can you show me how to set up a good armor class?
[/quote]
Yeah, this is my SapphireArmor class:
[spoiler]
    public void registerIcons(IconRegister iconRegister)
    {
        this.itemIcon = iconRegister.registerIcon(UCReferences.MOD_ID + ":" + this.getUnlocalizedName());
    }

 

What should I replace UCReferences.MOD_ID with?

Your modid that you used in your @Mod annotation in your main class

That didn't work, it gives me an error under the MODID name and 4 fix options:

Create constant 'MYMODID' <- not the name by the way :P

Create local variable 'MYMODID'

Create field 'MYMODID'

Create parameter 'MYMODID'

Posted
  On 5/20/2013 at 4:59 PM, Nieue said:

That didn't work, it gives me an error under the MODID name and 4 fix options:

Create constant 'MYMODID' <- not the name by the way :P

Create local variable 'MYMODID'

Create field 'MYMODID'

Create parameter 'MYMODID'

 

Jesus christ.  Use a freaking string.  Don't try to reference the @Mod annotation.

He said use what's IN the annotation.

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
  On 5/20/2013 at 5:03 PM, Draco18s said:

  Quote

That didn't work, it gives me an error under the MODID name and 4 fix options:

Create constant 'MYMODID' <- not the name by the way :P

Create local variable 'MYMODID'

Create field 'MYMODID'

Create parameter 'MYMODID'

 

Jesus christ.  Use a freaking string.  Don't try to reference the @Mod annotation.

He said use what's IN the annotation.

So if I have this:

@Mod(modid = "MoGems",name = "Mo' Gems and Ingots", version = "0.4.0")

I should put Mo' Gems and Ingots?

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.