Jump to content

[1.6.4] Can't get entity to render.


Jerry99666

Recommended Posts

Hello I'm new to these forums and I found a bit of problem with my coding training. I have been using the tutorial to try and make a mod that will show a custom mob that I made in Techne. I can understand basic Java but I'm stuck on this. I can get it give me an egg in the Misc. Tab but it doesn't spawn my mob.

my render file

package jerry99666.skeith.mobs;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityCow;
import net.minecraft.util.ResourceLocation;

@SideOnly(Side.CLIENT)
public class RenderSkeith extends RenderLiving {
private static final ResourceLocation skin = new ResourceLocation("skeith", "textures/entity/Skeith.png");
public RenderSkeith(ModelBase modelbase, float shadowSize) {
	super(modelbase, shadowSize);
	}

	public void func_177_a(EntitySkeith entitySkeith, double d, double d1,
	double d2, float f, float f1) {
	super.doRenderLiving(entitySkeith, d, d1, d2, f, f1);
	}

	public void doRenderLiving(EntityLivingBase entityliving, double d, double d1,
	double d2, float f, float f1) {
	func_177_a((EntitySkeith) entityliving, d, d1, d2, f, f1);
	}

	@Override
	public void doRender(Entity entity, double d, double d1, double d2,
	float f, float f1) {
	func_177_a((EntitySkeith) entity, d, d1, d2, f, f1);
	}

	@Override
	protected ResourceLocation getEntityTexture(Entity entity) {
	return skin;
	}
	}  		

my entity file

package jerry99666.skeith.mobs;

import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAISwimming;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;

public class EntitySkeith extends EntityMob 
{
    
    private String texture;

public EntitySkeith(World par1World) {
            super(par1World);
            this.texture = "textures/mobs/skeith.png";
            this.getNavigator().setAvoidsWater(true);
            this.setSize(1.5F, 0.9F);
            this.isImmuneToFire = false;
            float var2 = 0.25F;
            this.tasks.addTask(0, new EntityAISwimming(this));
            this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
            this.tasks.addTask(7, new EntityAILookIdle(this));
    }
    public boolean isAIEnabled() 
    {
            return true;
    }
    protected void updateAITasks()
    {
    	super.updateAITasks();
    }
    public void setAIMoveSpeed(float par1)
    {
    	super.setAIMoveSpeed(7F);
    	this.setMoveForward(5F);
    }
    protected void applyEntityAttributes()
    {
    	super.applyEntityAttributes();
    	this.getAttributeMap().func_111150_b(SharedMonsterAttributes.maxHealth);
    }
    protected void entityInit()
    {
    	super.entityInit();
    	this.dataWatcher.addObject(16, Byte.valueOf((byte)0));
    }
    public boolean interact(EntityPlayer par1EntityPlayer)
    {
    	return false;
    }
    protected void fall(float par1)
    {
    	super.fall(par1);
    }
    public EntitySkeith spawnBabyAnimal(EntityAgeable par1EntityAgeable)
    {
    	return null;
    }
    public EntityAgeable createChild(EntityAgeable var1) 
    {
            return null;
    }
}

my model file

package jerry99666.skeith.mobs;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;

public class ModelSkeith extends ModelBase
{
  //fields
    ModelRenderer LLegB;
    ModelRenderer LLegMB;
    ModelRenderer LLegM;
    ModelRenderer LLegMT;
    ModelRenderer LLegT;
    ModelRenderer RLegB;
    ModelRenderer RLegMB;
    ModelRenderer RLegM;
    ModelRenderer RLegMT;
    ModelRenderer RLegT;
    ModelRenderer WaistB;
    ModelRenderer WaistM;
    ModelRenderer WaistT;
    ModelRenderer TorsoB;
    ModelRenderer TorsoM;
    ModelRenderer TorsoT;
    ModelRenderer Neck;
    ModelRenderer Head;
    ModelRenderer RShoulder;
    ModelRenderer RArmT;
    ModelRenderer RArmB;
    ModelRenderer RWrist;
    ModelRenderer RThumb;
    ModelRenderer RIndex;
    ModelRenderer RMiddle;
    ModelRenderer RRing;
    ModelRenderer RPinkie;
    ModelRenderer LShoulder;
    ModelRenderer LArmT;
    ModelRenderer LArmB;
    ModelRenderer LWrist;
    ModelRenderer LThumb;
    ModelRenderer LIndex;
    ModelRenderer LMiddle;
    ModelRenderer LRing;
    ModelRenderer LPinkie;
    ModelRenderer LHorn1;
    ModelRenderer LHorn2;
    ModelRenderer LHorn3;
    ModelRenderer LHorn4;
    ModelRenderer LHorn5;
    ModelRenderer LHorn6;
    ModelRenderer LHorn7;
    ModelRenderer RHorn1;
    ModelRenderer RHorn2;
    ModelRenderer RHorn3;
    ModelRenderer RHorn4;
    ModelRenderer RHorn5;
    ModelRenderer LHorn8;
  
  public ModelSkeith()
  {
    textureWidth = 128;
    textureHeight = 128;
    
      LLegB = new ModelRenderer(this, 56, 76);
      LLegB.addBox(0F, 0F, 0F, 2, 5, 2);
      LLegB.setRotationPoint(4F, 16F, 0F);
      LLegB.setTextureSize(128, 128);
      LLegB.mirror = true;
      setRotation(LLegB, 0F, 0F, 0F);
      LLegMB = new ModelRenderer(this, 44, 76);
      LLegMB.addBox(0F, 0F, 0F, 3, 5, 3);
      LLegMB.setRotationPoint(3.5F, 11F, -0.5F);
      LLegMB.setTextureSize(128, 128);
      LLegMB.mirror = true;
      setRotation(LLegMB, 0F, 0F, 0F);
      LLegM = new ModelRenderer(this, 28, 76);
      LLegM.addBox(0F, 0F, 0F, 4, 5, 4);
      LLegM.setRotationPoint(3F, 6F, -1F);
      LLegM.setTextureSize(128, 128);
      LLegM.mirror = true;
      setRotation(LLegM, 0F, 0F, 0F);
      LLegMT = new ModelRenderer(this, 16, 76);
      LLegMT.addBox(0F, 0F, 0F, 3, 2, 3);
      LLegMT.setRotationPoint(3.5F, 4F, -0.5F);
      LLegMT.setTextureSize(128, 128);
      LLegMT.mirror = true;
      setRotation(LLegMT, 0F, 0F, 0F);
      LLegT = new ModelRenderer(this, 0, 76);
      LLegT.addBox(0F, 0F, 0F, 4, 4, 4);
      LLegT.setRotationPoint(3F, 0F, -1F);
      LLegT.setTextureSize(128, 128);
      LLegT.mirror = true;
      setRotation(LLegT, 0F, 0F, 0F);
      RLegB = new ModelRenderer(this, 56, 67);
      RLegB.addBox(0F, 0F, 0F, 2, 5, 2);
      RLegB.setRotationPoint(-6F, 16F, 0F);
      RLegB.setTextureSize(128, 128);
      RLegB.mirror = true;
      setRotation(RLegB, 0F, 0F, 0F);
      RLegMB = new ModelRenderer(this, 44, 67);
      RLegMB.addBox(0F, 0F, 0F, 3, 5, 3);
      RLegMB.setRotationPoint(-6.5F, 11F, -0.5F);
      RLegMB.setTextureSize(128, 128);
      RLegMB.mirror = true;
      setRotation(RLegMB, 0F, 0F, 0F);
      RLegM = new ModelRenderer(this, 28, 67);
      RLegM.addBox(0F, 0F, 0F, 4, 5, 4);
      RLegM.setRotationPoint(-7F, 6F, -1F);
      RLegM.setTextureSize(128, 128);
      RLegM.mirror = true;
      setRotation(RLegM, 0F, 0F, 0F);
      RLegMT = new ModelRenderer(this, 16, 67);
      RLegMT.addBox(0F, 0F, 0F, 3, 2, 3);
      RLegMT.setRotationPoint(-6.5F, 4F, -0.5F);
      RLegMT.setTextureSize(128, 128);
      RLegMT.mirror = true;
      setRotation(RLegMT, 0F, 0F, 0F);
      RLegT = new ModelRenderer(this, 0, 67);
      RLegT.addBox(0F, 0F, 0F, 4, 4, 4);
      RLegT.setRotationPoint(-7F, 0F, -1F);
      RLegT.setTextureSize(128, 128);
      RLegT.mirror = true;
      setRotation(RLegT, 0F, 0F, 0F);
      WaistB = new ModelRenderer(this, 0, 58);
      WaistB.addBox(0F, 0F, 0F, 5, 4, 5);
      WaistB.setRotationPoint(-2.5F, -5F, -2F);
      WaistB.setTextureSize(128, 128);
      WaistB.mirror = true;
      setRotation(WaistB, 0F, 0F, 0F);
      WaistM = new ModelRenderer(this, 20, 51);
      WaistM.addBox(0F, 0F, 0F, 3, 4, 3);
      WaistM.setRotationPoint(-1.5F, -9F, -1F);
      WaistM.setTextureSize(128, 128);
      WaistM.mirror = true;
      setRotation(WaistM, 0F, 0F, 0F);
      WaistT = new ModelRenderer(this, 0, 50);
      WaistT.addBox(0F, 0F, 0F, 5, 3, 5);
      WaistT.setRotationPoint(-2.5F, -12F, -2F);
      WaistT.setTextureSize(128, 128);
      WaistT.mirror = true;
      setRotation(WaistT, 0F, 0F, 0F);
      TorsoB = new ModelRenderer(this, 0, 40);
      TorsoB.addBox(0F, 0F, 0F, 9, 3, 7);
      TorsoB.setRotationPoint(-4.5F, -15F, -3F);
      TorsoB.setTextureSize(128, 128);
      TorsoB.mirror = true;
      setRotation(TorsoB, 0F, 0F, 0F);
      TorsoM = new ModelRenderer(this, 0, 27);
      TorsoM.addBox(0F, 0F, 0F, 13, 5, ;
      TorsoM.setRotationPoint(-6.5F, -20F, -4F);
      TorsoM.setTextureSize(128, 128);
      TorsoM.mirror = true;
      setRotation(TorsoM, 0F, 0F, 0F);
      TorsoT = new ModelRenderer(this, 0, 18);
      TorsoT.addBox(0F, 0F, 0F, 9, 2, 7);
      TorsoT.setRotationPoint(-4.5F, -22F, -3F);
      TorsoT.setTextureSize(128, 128);
      TorsoT.mirror = true;
      setRotation(TorsoT, 0F, 0F, 0F);
      Neck = new ModelRenderer(this, 0, 10);
      Neck.addBox(0F, 0F, 0F, 7, 2, 6);
      Neck.setRotationPoint(-3.5F, -24F, -2F);
      Neck.setTextureSize(128, 128);
      Neck.mirror = true;
      setRotation(Neck, 0F, 0F, 0F);
      Head = new ModelRenderer(this, 0, 0);
      Head.addBox(0F, 0F, 0F, 5, 5, 5);
      Head.setRotationPoint(-2.5F, -28F, -3F);
      Head.setTextureSize(128, 128);
      Head.mirror = true;
      setRotation(Head, 0F, 0F, 0F);
      RShoulder = new ModelRenderer(this, 44, 0);
      RShoulder.addBox(0F, 0F, 0F, 7, 5, 5);
      RShoulder.setRotationPoint(-14.5F, -21F, -2F);
      RShoulder.setTextureSize(128, 128);
      RShoulder.mirror = true;
      setRotation(RShoulder, 0F, 0F, 0F);
      RArmT = new ModelRenderer(this, 44, 10);
      RArmT.addBox(0F, 0F, 0F, 4, 4, 4);
      RArmT.setRotationPoint(-13F, -15F, -1F);
      RArmT.setTextureSize(128, 128);
      RArmT.mirror = true;
      setRotation(RArmT, 0F, 0F, 0F);
      RArmB = new ModelRenderer(this, 43, 18);
      RArmB.addBox(0F, 0F, 0F, 4, 6, 5);
      RArmB.setRotationPoint(-13.5F, -10F, -2F);
      RArmB.setTextureSize(128, 128);
      RArmB.mirror = true;
      setRotation(RArmB, 0F, 0F, 0F);
      RWrist = new ModelRenderer(this, 44, 29);
      RWrist.addBox(0F, 0F, 0F, 3, 2, 5);
      RWrist.setRotationPoint(-13F, -4F, -2F);
      RWrist.setTextureSize(128, 128);
      RWrist.mirror = true;
      setRotation(RWrist, 0F, 0F, 0F);
      RThumb = new ModelRenderer(this, 42, 36);
      RThumb.addBox(-11F, -3F, -3F, 1, 5, 1);
      RThumb.setRotationPoint(0F, 0F, 0F);
      RThumb.setTextureSize(128, 128);
      RThumb.mirror = true;
      setRotation(RThumb, 0F, 0F, 0F);
      RIndex = new ModelRenderer(this, 46, 36);
      RIndex.addBox(0F, 0F, 0F, 1, 5, 1);
      RIndex.setRotationPoint(-13F, -2F, -2F);
      RIndex.setTextureSize(128, 128);
      RIndex.mirror = true;
      setRotation(RIndex, 0F, 0F, 0F);
      RMiddle = new ModelRenderer(this, 50, 36);
      RMiddle.addBox(0F, 0F, 0F, 1, 6, 1);
      RMiddle.setRotationPoint(-13F, -2F, -1F);
      RMiddle.setTextureSize(128, 128);
      RMiddle.mirror = true;
      setRotation(RMiddle, 0F, 0F, 0F);
      RRing = new ModelRenderer(this, 54, 36);
      RRing.addBox(0F, 0F, 0F, 1, 6, 1);
      RRing.setRotationPoint(-13F, -2F, 0F);
      RRing.setTextureSize(128, 128);
      RRing.mirror = true;
      setRotation(RRing, 0F, 0F, 0F);
      RPinkie = new ModelRenderer(this, 58, 36);
      RPinkie.addBox(-13F, -2F, 1F, 1, 5, 1);
      RPinkie.setRotationPoint(0F, 0F, 0F);
      RPinkie.setTextureSize(128, 128);
      RPinkie.mirror = true;
      setRotation(RPinkie, 0F, 0F, 0F);
      LShoulder = new ModelRenderer(this, 68, 0);
      LShoulder.addBox(0F, 0F, 0F, 7, 5, 5);
      LShoulder.setRotationPoint(7.5F, -21F, -2F);
      LShoulder.setTextureSize(128, 128);
      LShoulder.mirror = true;
      setRotation(LShoulder, 0F, 0F, 0F);
      LArmT = new ModelRenderer(this, 68, 10);
      LArmT.addBox(0F, 0F, 0F, 4, 4, 4);
      LArmT.setRotationPoint(9F, -15F, -1F);
      LArmT.setTextureSize(128, 128);
      LArmT.mirror = true;
      setRotation(LArmT, 0F, 0F, 0F);
      LArmB = new ModelRenderer(this, 67, 18);
      LArmB.addBox(0F, 0F, 0F, 4, 6, 5);
      LArmB.setRotationPoint(9.5F, -10F, -2F);
      LArmB.setTextureSize(128, 128);
      LArmB.mirror = true;
      setRotation(LArmB, 0F, 0F, 0F);
      LWrist = new ModelRenderer(this, 68, 29);
      LWrist.addBox(0F, 0F, 0F, 3, 2, 5);
      LWrist.setRotationPoint(10F, -4F, -2F);
      LWrist.setTextureSize(128, 128);
      LWrist.mirror = true;
      setRotation(LWrist, 0F, 0F, 0F);
      LThumb = new ModelRenderer(this, 66, 36);
      LThumb.addBox(10F, -3F, -3F, 1, 5, 1);
      LThumb.setRotationPoint(0F, 0F, 0F);
      LThumb.setTextureSize(128, 128);
      LThumb.mirror = true;
      setRotation(LThumb, 0F, 0F, 0F);
      LIndex = new ModelRenderer(this, 70, 36);
      LIndex.addBox(0F, 0F, 0F, 1, 5, 1);
      LIndex.setRotationPoint(12F, -2F, -2F);
      LIndex.setTextureSize(128, 128);
      LIndex.mirror = true;
      setRotation(LIndex, 0F, 0F, 0F);
      LMiddle = new ModelRenderer(this, 74, 36);
      LMiddle.addBox(0F, 0F, -1F, 1, 6, 1);
      LMiddle.setRotationPoint(12F, -2F, 0F);
      LMiddle.setTextureSize(128, 128);
      LMiddle.mirror = true;
      setRotation(LMiddle, 0F, 0F, 0F);
      LRing = new ModelRenderer(this, 78, 36);
      LRing.addBox(0F, 0F, 0F, 1, 6, 1);
      LRing.setRotationPoint(12F, -2F, 0F);
      LRing.setTextureSize(128, 128);
      LRing.mirror = true;
      setRotation(LRing, 0F, 0F, 0F);
      LPinkie = new ModelRenderer(this, 82, 36);
      LPinkie.addBox(12F, -2F, 1F, 1, 5, 1);
      LPinkie.setRotationPoint(0F, 0F, 0F);
      LPinkie.setTextureSize(128, 128);
      LPinkie.mirror = true;
      setRotation(LPinkie, 0F, 0F, 0F);
      LHorn1.mirror = true;
      LHorn1 = new ModelRenderer(this, 20, 4);
      LHorn1.addBox(0F, 0F, 0F, 3, 1, 1);
      LHorn1.setRotationPoint(2F, -28F, -1F);
      LHorn1.setTextureSize(128, 128);
      LHorn1.mirror = true;
      setRotation(LHorn1, 0F, -0.3926991F, -0.1963495F);
      LHorn1.mirror = false;
      LHorn2 = new ModelRenderer(this, 28, 4);
      LHorn2.addBox(0F, 0F, 0.2F, 3, 1, 1);
      LHorn2.setRotationPoint(5F, -28.5F, 0F);
      LHorn2.setTextureSize(128, 128);
      LHorn2.mirror = true;
      setRotation(LHorn2, 0F, -0.7853982F, -0.3926991F);
      LHorn3 = new ModelRenderer(this, 36, 4);
      LHorn3.addBox(0F, 0F, 0.1F, 3, 1, 1);
      LHorn3.setRotationPoint(7F, -29.6F, 2F);
      LHorn3.setTextureSize(128, 128);
      LHorn3.mirror = true;
      setRotation(LHorn3, 0F, -1.003564F, -0.5890486F);
      LHorn4 = new ModelRenderer(this, 20, 6);
      LHorn4.addBox(-1F, 0F, 0F, 3, 1, 1);
      LHorn4.setRotationPoint(8.5F, -32F, 5F);
      LHorn4.setTextureSize(128, 128);
      LHorn4.mirror = true;
      setRotation(LHorn4, 0F, -1.570796F, -0.7853982F);
      LHorn5 = new ModelRenderer(this, 28, 6);
      LHorn5.addBox(0F, -0.3333333F, 0F, 3, 1, 1);
      LHorn5.setRotationPoint(8.5F, -33.2F, 7F);
      LHorn5.setTextureSize(128, 128);
      LHorn5.mirror = true;
      setRotation(LHorn5, 0F, -1.963495F, -0.7853982F);
      LHorn6 = new ModelRenderer(this, 36, 6);
      LHorn6.addBox(0F, 0.5F, 0.1F, 3, 1, 1);
      LHorn6.setRotationPoint(8F, -36F, 9F);
      LHorn6.setTextureSize(128, 128);
      LHorn6.mirror = true;
      setRotation(LHorn6, 0F, -2.356194F, -0.5890486F);
      LHorn7 = new ModelRenderer(this, 20, ;
      LHorn7.addBox(0.2F, 0F, 0F, 3, 1, 1);
      LHorn7.setRotationPoint(6F, -37F, 11F);
      LHorn7.setTextureSize(128, 128);
      LHorn7.mirror = true;
      setRotation(LHorn7, 0F, -2.748893F, -0.3926991F);
      LHorn8 = new ModelRenderer(this, 28, ;
      LHorn8.addBox(0F, 0F, 0F, 3, 1, 1);
      LHorn8.setRotationPoint(3F, -38.2F, 12.2F);
      LHorn8.setTextureSize(128, 128);
      LHorn8.mirror = true;
      setRotation(LHorn8, 0F, -3.141593F, -0.1963495F);
      RHorn1 = new ModelRenderer(this, 20, 0);
      RHorn1.addBox(0F, 0F, 0F, 3, 1, 1);
      RHorn1.setRotationPoint(-5F, -28.5F, 0F);
      RHorn1.setTextureSize(128, 128);
      RHorn1.mirror = true;
      setRotation(RHorn1, 0F, 0.3926991F, 0.1963495F);
      RHorn2 = new ModelRenderer(this, 28, 0);
      RHorn2.addBox(0F, 0F, 0F, 3, 1, 1);
      RHorn2.setRotationPoint(-7F, -29.7F, 2F);
      RHorn2.setTextureSize(128, 128);
      RHorn2.mirror = true;
      setRotation(RHorn2, 0F, 0.7853982F, 0.3926991F);
      RHorn3 = new ModelRenderer(this, 36, 0);
      RHorn3.addBox(0F, 0F, 0F, 3, 1, 1);
      RHorn3.setRotationPoint(-8.3F, -31.2F, 4F);
      RHorn3.setTextureSize(128, 128);
      RHorn3.mirror = true;
      setRotation(RHorn3, 0F, 1.003564F, 0.5890486F);
      RHorn4 = new ModelRenderer(this, 20, 2);
      RHorn4.addBox(-0.4F, 0F, 0F, 3, 1, 1);
      RHorn4.setRotationPoint(-8.5F, -33F, 6F);
      RHorn4.setTextureSize(128, 128);
      RHorn4.mirror = true;
      setRotation(RHorn4, 0F, 1.570796F, 0.7853982F);
      RHorn5 = new ModelRenderer(this, 28, 2);
      RHorn5.addBox(-0.7F, 0.2F, 0F, 3, 1, 1);
      RHorn5.setRotationPoint(-8F, -35F, 8F);
      RHorn5.setTextureSize(128, 128);
      RHorn5.mirror = true;
      setRotation(RHorn5, 0F, 1.963495F, 0.7853982F);
      LHorn8 = new ModelRenderer(this, 36, ;
      LHorn8.addBox(0F, 0F, 0F, 3, 1, 1);
      LHorn8.setRotationPoint(-3F, -38.2F, 11.2F);
      LHorn8.setTextureSize(128, 128);
      LHorn8.mirror = true;
      setRotation(LHorn8, 0F, 0F, -0.1963495F);
  }
  
  public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  {
    super.render(entity, f, f1, f2, f3, f4, f5);
    setRotationAngles(f, f1, f2, f3, f4, f5, entity);
    LLegB.render(f5);
    LLegMB.render(f5);
    LLegM.render(f5);
    LLegMT.render(f5);
    LLegT.render(f5);
    RLegB.render(f5);
    RLegMB.render(f5);
    RLegM.render(f5);
    RLegMT.render(f5);
    RLegT.render(f5);
    WaistB.render(f5);
    WaistM.render(f5);
    WaistT.render(f5);
    TorsoB.render(f5);
    TorsoM.render(f5);
    TorsoT.render(f5);
    Neck.render(f5);
    Head.render(f5);
    RShoulder.render(f5);
    RArmT.render(f5);
    RArmB.render(f5);
    RWrist.render(f5);
    RThumb.render(f5);
    RIndex.render(f5);
    RMiddle.render(f5);
    RRing.render(f5);
    RPinkie.render(f5);
    LShoulder.render(f5);
    LArmT.render(f5);
    LArmB.render(f5);
    LWrist.render(f5);
    LThumb.render(f5);
    LIndex.render(f5);
    LMiddle.render(f5);
    LRing.render(f5);
    LPinkie.render(f5);
    LHorn1.render(f5);
    LHorn2.render(f5);
    LHorn3.render(f5);
    LHorn4.render(f5);
    LHorn5.render(f5);
    LHorn6.render(f5);
    LHorn7.render(f5);
    LHorn8.render(f5);
    RHorn1.render(f5);
    RHorn2.render(f5);
    RHorn3.render(f5);
    RHorn4.render(f5);
    RHorn5.render(f5);
    LHorn8.render(f5);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
  
  public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
  {
    super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  }

} 

What my model should show up as.

XCLpIxb.jpg

If anyone can help me, I would greatly value it. and Yes the model is custom, it was build without a template.

Link to comment
Share on other sites

Need a few more pieces to help you out.

 

Your main mod file (where you set up your egg and register your entity) and your client proxy (where you register the renderer)

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

MainMod File:

package jerry99666.skeith.common;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.SidedProxy;
import jerry99666.skeith.common.SkeithCommonProxy;
import jerry99666.skeith.common.handlers.SkeithServerPacketHandler;
import jerry99666.skeith.common.handlers.SkeithClientPacketHandler;
import jerry99666.skeith.mobs.EntitySkeith;
import jerry99666.skeith.mobs.RenderSkeith;
import jerry99666.skeith.mobs.ModelSkeith;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityEggInfo;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EnumCreatureType;
import net.minecraft.item.Item;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.SidedProxy;


@NetworkMod(clientSideRequired=true,serverSideRequired=false, //Whether client side and server side are needed
clientPacketHandlerSpec = @SidedPacketHandler(channels = {"Skeith"}, packetHandler = SkeithClientPacketHandler.class), //For clientside packet handling
serverPacketHandlerSpec = @SidedPacketHandler(channels = {"Skeith"}, packetHandler = SkeithServerPacketHandler.class)) //For serverside packet handling

//MOD BASICS
@Mod(modid="Skeith",name="Skeith Mod",version="Release")

public class skeith {

@Instance("Skeith") //The instance, this is very important later on
public static skeith instance = new skeith();

@SidedProxy(clientSide = "jerry99666.skeith.client.SkeithClientProxy", serverSide = "jerry99666.skeith.common.SkeithCommonProxy") //Tells Forge the location of your proxies
public static SkeithCommonProxy proxy;

@PreInit
public void PreInit(FMLPreInitializationEvent e){

}

@Init
public void InitSkeith(FMLInitializationEvent event){ //Your main initialization method

EntityRegistry.registerGlobalEntityID(EntitySkeith.class, "Skeith", EntityRegistry.findGlobalUniqueEntityId(), 0xeaeae9, 0xc99a03);
EntityRegistry.addSpawn(EntitySkeith.class, 4, 1, 2, EnumCreatureType.monster);
LanguageRegistry.instance().addStringLocalization("entity.Skeith.name", "Skeith");

//MULTIPLAYER ABILITY
NetworkRegistry.instance().registerGuiHandler(this, proxy); //Registers the class that deals with GUI data

}

private void registerEntity(Class<EntitySkeith> class1, String string, int i,
	int j) {
// TODO Auto-generated method stub

}
}

Client Proxy:

package jerry99666.skeith.client;

import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import jerry99666.skeith.common.SkeithCommonProxy;
import jerry99666.skeith.mobs.EntitySkeith;
import jerry99666.skeith.mobs.ModelSkeith;
import jerry99666.skeith.mobs.RenderSkeith;
import net.minecraftforge.client.MinecraftForgeClient;

public class SkeithClientProxy extends SkeithCommonProxy {

public void registerRenderInformation(){
RenderingRegistry.registerEntityRenderingHandler(EntitySkeith.class, new RenderSkeith(new ModelSkeith(), 0.5F));
EntityRegistry.registerGlobalEntityID(EntitySkeith.class, "Skeith", EntityRegistry.findGlobalUniqueEntityId(), 0xabcde9, 0xe98a03);
}
}

Link to comment
Share on other sites

EntityRegistry.registerGlobalEntityID(EntitySkeith.class, "Skeith", EntityRegistry.findGlobalUniqueEntityId(), 0xeaeae9, 0xc99a03);

 

Remove that.  Add this to your MAIN MOD class:

 

EntityRegistry.registerModEntity(EntitySkeith.class, "Skeith", 0, this, 350, 5, false);

EntityList.addMapping(EntitySkeith.class, "Skeith", 3, 0xeaeae9, 0xc99a03);

 

You can hardly expect your entity to work properly if the server has no idea WTF it is.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Alright I removed the EntityRegistry.registerGlobalEntityID(EntitySkeith.class, "Skeith", EntityRegistry.findGlobalUniqueEntityId(), 0xeaeae9, 0xc99a03);

and added in the

EntityRegistry.registerModEntity(EntitySkeith.class, "Skeith", 0, this, 350, 5, false);

EntityList.addMapping(EntitySkeith.class, "Skeith", 3, 0xeaeae9, 0xc99a03);

 

I still get no mob rendering. I don't get a white box or anything.

Hmm just took a look at my Console and found this happening when I try and spawn the mob.

2014-01-10 14:56:39 [WARNING] [Minecraft-Server] Skipping Entity with id 3
2014-01-10 14:56:39 [iNFO] [sTDERR] java.lang.reflect.InvocationTargetException
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityList.createEntityByID(EntityList.java:205)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:175)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:81)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:153)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:434)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:556)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:691)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:587)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2014-01-10 14:56:39 [iNFO] [sTDERR] Caused by: java.lang.IllegalArgumentException: Attribute is already registered!
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.entity.ai.attributes.ServersideAttributeMap.func_111150_b(ServersideAttributeMap.java:37)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at jerry99666.skeith.mobs.EntitySkeith.applyEntityAttributes(EntitySkeith.java:44)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityLivingBase.<init>(EntityLivingBase.java:193)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityLiving.<init>(EntityLiving.java:85)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.entity.EntityCreature.<init>(EntityCreature.java:40)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at net.minecraft.entity.monster.EntityMob.<init>(EntityMob.java:19)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	at jerry99666.skeith.mobs.EntitySkeith.<init>(EntitySkeith.java:18)
2014-01-10 14:56:39 [iNFO] [sTDERR] 	... 19 more

Link to comment
Share on other sites

Remove this:

 

protected void applyEntityAttributes()
    {
    	super.applyEntityAttributes();
    	this.getAttributeMap().func_111150_b(SharedMonsterAttributes.maxHealth);
    }

 

You're telling the attribute map to register max health, which is already registered.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Remove this:

 

protected void applyEntityAttributes()
    {
    	super.applyEntityAttributes();
    	this.getAttributeMap().func_111150_b(SharedMonsterAttributes.maxHealth);
    }

 

You're telling the attribute map to register max health, which is already registered.

Alright that got it to load but its giving me this very small white box like the size of a half block.

I have the textures I believe set right. eclipse > Minecraft > bin > assets > skeith > textures > Skeith.png

Would my Rendering be off?

Link to comment
Share on other sites

Voila, now all that needs to be fixed is the rendering registry.  Lets see...

 

I think you're rendering class is messed up.  Take a look at mine:

 

https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/client/RenderClayGolem.java

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

TBH my class is basically a copy/paste of the Iron golem.  I haven't dug in deeply enough to do a wholly custom mob like you are.  I know it works, though.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Remove this:

 

protected void applyEntityAttributes()
    {
    	super.applyEntityAttributes();
    	this.getAttributeMap().func_111150_b(SharedMonsterAttributes.maxHealth);
    }

 

You're telling the attribute map to register max health, which is already registered.

Alright that got it to load but its giving me this very small white box like the size of a half block.

I have the textures I believe set right. eclipse > Minecraft > bin > assets > skeith > textures > Skeith.png

Would my Rendering be off?

Everything looks ok, for your texture though, it has to be src>assets>skeith>textures>skeith.png and last i knew @preinit and @init are depricated and are being replaced with @EventHandler. I will compare this all with what i have done in the morning.

Link to comment
Share on other sites

Remove this:

 

protected void applyEntityAttributes()
    {
    	super.applyEntityAttributes();
    	this.getAttributeMap().func_111150_b(SharedMonsterAttributes.maxHealth);
    }

 

You're telling the attribute map to register max health, which is already registered.

Alright that got it to load but its giving me this very small white box like the size of a half block.

I have the textures I believe set right. eclipse > Minecraft > bin > assets > skeith > textures > Skeith.png

Would my Rendering be off?

Everything looks ok, for your texture though, it has to be src>assets>skeith>textures>skeith.png and last i knew @preinit and @init are depricated and are being replaced with @EventHandler. I will compare this all with what i have done in the morning.

I can get it to render but all I get is this

width=800 height=413http://i1077.photobucket.com/albums/w464/Jerry99666/2014-01-10_152048_zps626fe080.png[/img]

I think my render file is messed up as this mob is big and I didn't use another mob as a base, I built it without a model base.

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.