Posted August 2, 201411 yr I've coded some custom armor and added textures to them but when I run Minecraft all I get is the "Missing Texture" icon. Here is the code for my Armor Class: package com.nebblewerfer.interstellarexploration; import com.nebblewerfer.lib.Strings; import net.minecraft.entity.Entity; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class spaceSuit extends ItemArmor{ public spaceSuit(ArmorMaterial p_i45325_1_, int p_i45325_2_, int p_i45325_3_) { super(p_i45325_1_, p_i45325_2_, p_i45325_3_); // TODO Auto-generated constructor stub } public String getArmorModel(ItemStack stack, Entity entity, int slot, String type) { if(stack.getItem() == Aluminum.spaceHelmet || stack.getItem() == Aluminum.spaceTunic || stack.getItem() == Aluminum.spaceBoots){ return "interstellarexploration:SpaceLayer1"; }else if(stack.getItem() == Aluminum.spacePants){ return "interstellarexploration:SpaceLayer2"; }else{ return null; } } } Thank you for any help! If you have any questions about other info just ask me!
August 9, 201411 yr put @Override above your getArmorTexture method. If you have the correct method, you are already overriding it. @Override is just to check if you are using the correct method. In this case, you should override getArmorTexture(ItemStack, Entity, int, String). Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
August 10, 201411 yr No, just change getArmorModel to getArmorTexture. getArmorModel does not exist in any of the superclasses as far as I know. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
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.