Jump to content

[1.12] How to animate movements while mob is standing still?


Electric

Recommended Posts

So I have created a custom mob, with its own model and rotations, but these rotations only activate while the mob is walking/wandering. How can I have the mob perform them while it is standing still? Right now I've just got some test rotations:

 public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity entitypar7) {
        this.Block26.rotateAngleX = -1.5F * this.custommotion(par1, 13.0F) * par2;
        this.Block13.rotateAngleX = 1.5F * this.custommotion(par1, 13.0F) * par2;
        this.Block13.rotateAngleY = 0.0F;
    }

 So for starters, I'd like block26 to constantly do its rotations, while the mob is standing still. Is there a way to accomplish this?

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.