Jump to content

Boots Rendering on Legs


tuogex

Recommended Posts

When I wear boots, it renders leggings over the leggings I already have. Here's a picture of the problem.

2e87ffed324b453799ee817.png

The leggings are purple while the boots are blue, but as you can see, the boots are rendering over the leggings as leggings.

Here's my declaration of the item

public final static Item crystalBoots = new ItemCustomBoots(5064, CRYSTALARMOR, RenderingRegistry.addNewArmourRendererPrefix("Crystal"), 3, "crystalArmor2").setItemName("crystalBoots").setIconIndex(22);

The declaration of the CRYSTALARMOR EnumArmorMaterial

static EnumArmorMaterial CRYSTALARMOR = EnumHelper.addArmorMaterial("CRYSTAL", 4, new int[]{4,8,6,4}, 15);

ItemCustomBoots

package com.strikepointdev.oam;
import net.minecraft.src.EnumArmorMaterial;
import net.minecraft.src.ItemArmor;
import net.minecraft.src.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;
public class ItemCustomBoots extends ItemArmor implements IArmorTextureProvider{
public String textureName;
public ItemCustomBoots(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4, String itemName) {
super(par1, par2EnumArmorMaterial, par3, par4);
this.textureName = itemName;
}
public String getTextureFile(){
return "/spd/oam/items.png";

}
public String getArmorTextureFile(ItemStack par1){
return "/spd/oam/" + textureName + ".png";
}
}

Thanks in advance.

Link to comment
Share on other sites

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.