Jump to content

Recommended Posts

Posted

I've seen since 1.5.2 that IArmorTextureProvider was going to be deprecated, taking away getArmorTextureFile with it, and it finally has in the 1.6.1 release.  Now I have no idea what to use in its place in this new version.  Can anybody help me figure out what I can put so that my armor textures show up in-game.

Don't tell me to learn the basics of java, I already know.

Posted

BTW, I get no errors if I just changed the name and params of the getArmorTextureFile to getArmorTexture. Is there something I'm missing?

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information
Posted

Do you have an example of a new armor file that I can look at.

The vanilla armor is a pretty good example IMO.

Where is the code for the vanilla armor?

Don't tell me to learn the basics of java, I already know.

Posted

Don't call me stupid, first of all, I was just asking a question.  Second, why don't my textures show up, was the texture directory changed?

Don't tell me to learn the basics of java, I already know.

Posted

Vanilla armor textures don't render either so we wait for forge to get the changes right. Be patient and all will be good. None of my textures work as of right now. Still early development of forge for 1.6.1 all will be worked out soon.

 

Armor_1 and _2.pngs also moved to assets/textures/models

Posted

Do you have an example of a new armor file that I can look at.

 

This is what worked for my mod.

 

      public String getArmorTexture(ItemStack par1, Entity entity, int slot, int layer){

if (par1.itemID == Diamerald.Diameraldhelmet.itemID

|| par1.itemID == Diamerald.Diameraldplate.itemID

|| par1.itemID == Diamerald.Diameraldboots.itemID){

return

 

"diamerald:textures/models/armor/diamerald_layer_1.png";

}

if (par1.itemID == Diamerald.Diameraldlegs.itemID){

return

 

"diamerald:textures/models/armor/diamerald_layer_2.png";

}

return "diamerald:textures/models/armor/diamerald_layer_2.png";

}

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.