Jump to content

Texture issues


himan54

Recommended Posts

Hello all!

Its me again, but this time, I have something new. In picking up making my mod again, I had decided that I would like to make armor. I got it done (mostly, and that's why I'm here), but I cant get the texture to load. I was following a wuppy29 tutorial and came up with this main armor file.

package ryansmod.common.armor;

import ryansmod.RyansMod;
import net.minecraft.item.ItemArmor;
import net.minecraft.entity.Entity;
import net.minecraft.item.ItemStack;

public class RefinedDiamondArmor extends ItemArmor {
public RefinedDiamondArmor(ArmorMaterial material, int armortype, String name, String textureName)
{
	super(material, 0, armortype);
	setUnlocalizedName(name);
	setCreativeTab(RyansMod.RyansTab);
	setTextureName("ryansmod:"+textureName);
}

@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type)
{
	if(stack.getItem() == RyansMod.RefinedDiamondHelmet || stack.getItem() == RyansMod.RefinedDiamondChest || stack.getItem() == RyansMod.RefinedDiamondBoots)
	{
		return "ryansmod:models/armor/refined_diamond1.png";
	}
	else if(stack.getItem() == RyansMod.RefinedDiamondLeggings)
	{
		return "ryansmod:models/armor/refined_diamond2.png";

	}
	else
	{
		System.out.println("GG fool, you screwed it up!");
		return null;
	}
}
}

The problem though, is upon looking at myself in F5 the console screams about not being able to find "ryansmod:models/armor/refined_diamond1.png" and I get the purple and black squares of death. I am baffled, but perhapes someone can help me.

Thanks!

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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.