Jump to content

All mobs are rendering the same animation


sbcroix

Recommended Posts

Hopefully someone can help me here.

 

I have created a new MOB.

I have added code to it for custom animation.

The animation works fine, better than I expected actually.

But every single mob I spawn using my new model has the same animation sequence, and the more mobs I spawn the faster the animation runs.

 

I am new to modding Minecraft, but have about many years of development exp in a variety of languages.

 

Relevant Psudo Code from the model class

 

public void setLivingAnimations(EntityLiving par1EntityLiving, float par2, float par3, float par4)
{
DoAnimation();
}

public void DoAnimation()
{
double zChange = GetSomeRandomDouble();
arm1.rotateAngleZ = arm1.rotateAngleZ + (float)zChange;
}

 

Any help or explanation will be appreciated.

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.