Jump to content

Recommended Posts

Posted

I am having trouble getting my armor textures to render, for whatever reason, minecraft is saying that the file is not found, when the file is in the folder it is saying it's missing from :/ I have tried putting it in many different folders, made sure it is all lowercase, and made sure it's in assets/modID/textures/models/armor/. I have absolutely no idea why it's not finding the textures! If anyone knows what i'm doing wrong, please, any help would be greatly appreciated!

Here's my main class:

 

  Reveal hidden contents

 

And my armor file:

 

  Reveal hidden contents

 

And my client and common proxies:

 

  Reveal hidden contents

 

 

  Reveal hidden contents

 

 

 

 

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

Posted

Here's my armor class:

@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer)
{
	if(itemID == ModItems.quartzHelm.itemID || itemID == ModItems.quartzChest.itemID || itemID == ModItems.quartzBoots.itemID) {
		return "quartz:textures/models/armor/quartz_layer_1.png";
	}
	if(itemID == ModItems.quartzLegs.itemID) {
		return "quartz:textures/models/armor/quartz_layer_2.png";
	}
	return null;
}

Make sure your armor is in textures/models/armor/[armorname]_layer_1/2.png. Also, check in the console to see where your client is looking for textures.

If you really want help, give that modder a thank you.

 

Modders LOVE thank yous.

Posted

I think you don't need the <modid>:...

Try it the following way:

  Reveal hidden contents

 

 

You create this Item with this code:

  Reveal hidden contents

 

 

Client Proxy: (The common Proxy is Emty, rendering is only client stuff)

  Reveal hidden contents

 

 

I hope this will work at 1.6.2 too, I tried it only with 1.5.2

Hope I could help you.

Posted

You should remove this lines of code from your common Proxy.

Neither rendering nor Armordeclarations are needed from server side.

   public void registerRenderer() {

   }
   public int addArmor(String string){
      return 0;
      
   }

 

You can leave your commonProxy blank. Everything important (rendering, Armor-Renderer) is in the client proxy.

Posted
  On 7/18/2013 at 9:04 PM, chimera27 said:

All removing those lines from my common proxy did was give me a huge amount of errors, apparently alot has changed from 1.5 to 1.6 :/

As I stated above, just check that thread. It worked for me :)

Posted

Just finished trying it, didn't change anything at all... i'm pretty sure that my textures are in the right place, but some code is making minecraft not find them

 

Edit: FML (not the mod loader). Apparently, I needed to make the path

chimera27metroid:textures/armor/powersuit_1.png; instead of

chimera27metroid/textures/armor/powersuit_1.png; even though both were correct. -_____________________________

Creator of Metroid Cubed! Power Suits, Beams, Hypermode and more!

width=174 height=100http://i.imgur.com/ghgWmA3.jpg[/img]

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.