Posted July 26, 201312 yr i have a ruby mod im working on (my first mod) and i got the 3d models working but not the texture for the item you hold in your hand. here is the code: (its the class for the leggings) tell me if i need to post the main class import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.renderer.texture.IconRegister; import net.minecraft.entity.Entity; import net.minecraft.item.EnumArmorMaterial; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class ItemRubyLeggings extends ItemArmor{ public ItemRubyLeggings(int par1, EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) { super(par1, par2EnumArmorMaterial, par3, par4); } @SideOnly(Side.CLIENT) public void registerIcon(IconRegister par1RegisterIcon) { this.itemIcon = par1RegisterIcon.registerIcon("RubyModMain:RubyLeggings"); } public String getArmorTexture(ItemStack stack, Entity entity, int slot, int layer) { return "RubyModMain:textures/models/armor/rubyarmorl2.png"; } } i know that isnt the best way to code that but what is messing up the textures?
July 26, 201312 yr is the item texture mcp/src/minecraft/assets/RubyModMain/items/RubyLeggings.png how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
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.