Jump to content

[1.6.4]Entity Rendering


starwarsmace

Recommended Posts

Hello guys. So I made an entity, model and render file and it works. Only problem is that my entity keeps on jumping around and stuff.

 

Heres my render file:

package rotten_flesh_mod;

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

@SideOnly(Side.CLIENT)
public class RenderTamedZombie extends RenderLiving
{
    private static final ResourceLocation Your_Texture = new ResourceLocation("rotten_flesh_mod:textures/entity/tamedZombie.png");  //refers to:assets/yourmod/textures/entity/yourtexture.png

    public RenderTamedZombie(ModelBase par1ModelBase, float par2)
    {
    	
        super(par1ModelBase, par2);
    }
    protected ResourceLocation getTamedTextures(EntityTamedZombie par1EntityCow)
    {
        return Your_Texture;
    }

    @Override
    protected ResourceLocation getEntityTexture(Entity par1Entity)
    {
    	
    	return this.getTamedTextures((EntityTamedZombie)par1Entity);
    }
}

 

Heres a video of what happened.

 

width=528 height=432http://i1294.photobucket.com/albums/b605/starwarsmace/th_javaw2014-02-1512-08-05-176_zps2e3d193e.jpg[/img]

 

Click the img to see the video.

 

I'm back from being gone for... I think its been about a year. I'm pretty sure nobody remembers me, but hello anybody who does!

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.

Announcements



×
×
  • Create New...

Important Information

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