Hey guys. This is a question that has come up before I know, but I have scoured the forums and applied every tip I can find, but my custom mob is still rendering with no texture.
Using the current 1.6.4 recommended Forge version.
I'm getting the dreaded error:
14:41:14 - 2014-02-28 14:41:14 [WARNING] [Minecraft-Client] Failed to load texture: ellitopiabears:textures/mobs/pig_bear.png
14:41:14 - java.io.FileNotFoundException: ellitopiabears:textures/mobs/pig_bear.png
My mod is a modified PigZombie that looks like a bear. Here's the code:
package net.ellitopia.ellitopiabears.renderer.entity;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.ellitopia.ellitopiabears.EllitopiaBears;
import net.ellitopia.ellitopiabears.client.model.ModelPigBear;
import net.minecraft.client.renderer.entity.RenderBiped;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.monster.EntityPigZombie;
import net.minecraft.util.ResourceLocation;
@SideOnly(Side.CLIENT)
public class RenderPigBear extends RenderBiped {
private static final ResourceLocation zombiePigmanTextures = new ResourceLocation(EllitopiaBears.MODID, "textures/mobs/pig_bear.png");
public RenderPigBear()
{
super(new ModelPigBear(), 0.5F, 1.0F);
}
@Override
protected void func_82421_b()
{
this.field_82423_g = new ModelPigBear(1.0F, true);
this.field_82425_h = new ModelPigBear(0.5F, true);
}
protected ResourceLocation func_110863_a(EntityPigZombie par1EntityZombie)
{
return zombiePigmanTextures;
}
@Override
protected ResourceLocation func_110856_a(EntityLiving par1EntityLiving)
{
return this.func_110863_a((EntityPigZombie)par1EntityLiving);
}
@Override
protected ResourceLocation getEntityTexture(Entity par1Entity)
{
return this.func_110863_a((EntityPigZombie)par1Entity);
}
}
Texture image is stored at mcp\src\minecraft\assets\ellitopiabears\textures\mobs\pig_bear.png
What am I missing?