Jump to content

Recommended Posts

Posted

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?

Posted

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.

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.