This mob that i was making was always stuck in the ground and i don't know why please help
package Platinum.mod.MoRealism.Render;
import Platinum.mod.MoRealism.Entitys.EntityBunny;
import Platinum.mod.MoRealism.model.BunnyModel;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.RenderLiving;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
public class RenderBunny extends RenderLiving{
public RenderBunny(ModelBase par1ModelBase, float par2) {
super(par1ModelBase, par2);
model = ((BunnyModel)mainModel);
}
protected BunnyModel model;
public void renderBunny(EntityBunny entity, double par2, double par4, double par6, float par8, float par9) {
super.doRenderLiving(entity, par2, par4, par6, par8, par9);
}
public void doRenderLiving(EntityLiving par1EntityLiving, double par2, double par4, double par6, float par8, float par9) {
renderBunny((EntityBunny)par1EntityLiving, par2, par4, par6, par8, par9);
}
public void doRender(Entity par1Entity, double par2, double par4, double par6, float par8, float par9) {
renderBunny((EntityBunny)par1Entity, par2, par4, par6,par8, par9);
}
}
package Platinum.mod.MoRealism.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class BunnyModel extends ModelBase
{
//fields
ModelRenderer Shape1;
ModelRenderer Shape2;
ModelRenderer Shape3;
public BunnyModel()
{
textureWidth = 64;
textureHeight = 32;
Shape1 = new ModelRenderer(this, 0, 0);
Shape1.addBox(0F, 0F, 0F, 8, 8, ;
Shape1.setRotationPoint(-4F, 16F, -4F);
Shape1.setTextureSize(64, 32);
Shape1.mirror = true;
setRotation(Shape1, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 35, 0);
Shape2.addBox(0F, 0F, 0F, 1, 3, 1);
Shape2.setRotationPoint(-3F, 13F, -3F);
Shape2.setTextureSize(64, 32);
Shape2.mirror = true;
setRotation(Shape2, 0F, 0F, 0F);
Shape2 = new ModelRenderer(this, 42, 0);
Shape2.addBox(0F, 0F, -1F, 1, 3, 1);
Shape2.setRotationPoint(2F, 13F, -2F);
Shape2.setTextureSize(64, 32);
Shape2.mirror = true;
setRotation(Shape2, 0F, 0F, 0F);
}
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
{
setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
Shape1.render(par7);
Shape2.render(par7);
Shape3.render(par7);
}
private void setRotation(ModelRenderer model, float x, float y, float z)
{
model.rotateAngleX = x;
model.rotateAngleY = y;
model.rotateAngleZ = z;
}
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
{
}
}
package Platinum.mod.MoRealism.Entitys;
import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.passive.EntityAnimal;
import net.minecraft.item.Item;
import net.minecraft.world.World;
public class EntityBunny extends EntityAnimal{
public EntityBunny(World par1World) {
super(par1World);
this.moveSpeed = 0.10f;
this.texture = "Mo'Realism/Bunny.png";
}
@Override
public EntityAgeable createChild(EntityAgeable entityageable) {
return null;}
@Override
public int getMaxHealth() {
return 10;
}
protected String getLivingSound()
{
return "mob.bunny.say";
}
protected String getDeathSound()
{
return "mob.bunny.hurt";
}
}
[/Code]