How to animate your custom mob tutorial

Started by IGOR_LIVE96 on

Topic category: User side tutorials

Active 3 years ago
Joined Aug 2018
Points:
1050

User statistics:

  • Modifications: 3
  • Forum topics: 28
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 419
How to animate your custom mob tutorial
Sat, 03/21/2020 - 09:31 (edited)

 

Hello! My name is Igor! FOR VERSIONS 1.7.9.1.8.0 etc ... FROM MCREATOR

Today I will teach you how to animate your custom mob!

1. Create your mob! And save it in ".java" format
2. Then right-click the file and open it with a text editor (preferably Notepad ++)
3. Roll over there at the end! You'll see this code:

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);
  }

}

4. Copy the code of the site: https://pastebin.com/ksq1S6rK

5.Paste the code exactly like this:
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);
    this.head.rotateAngleY ​​= f3 / (180F / (float) Math.PI);
    this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
    this.leftleg.rotateAngleX = MathHelper.cos (f * 1.0F) * -1.0F * f1;
    this.rightleg.rotateAngleX = MathHelper.cos (f * 1.0F) * 1.0F * f1;
    this.rightarm.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
    this.leftarm.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
  }

}

6.Replace or add parts according to your mob eg if you have horns:
  {
    super.setRotationAngles (f, f1, f2, f3, f4, f5, entity);
    this.head.rotateAngleY ​​= f3 / (180F / (float) Math.PI);
    this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
    this.righthorn.rotateAngleY ​​= f3 / (180F / (float) Math.PI);
    this.righthorn.rotateAngleX = f4 / (180F / (float) Math.PI);
    this.lefthorn.rotateAngleY ​​= f3 / (180F / (float) Math.PI);
    this.lefthorn.rotateAngleX = f4 / (180F / (float) Math.PI);
    this.leftleg.rotateAngleX = MathHelper.cos (f * 1.0F) * -1.0F * f1;
    this.rightleg.rotateAngleX = MathHelper.cos (f * 1.0F) * 1.0F * f1;
    this.rightarm.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
    this.leftarm.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
  }

}

 

7. Good! Go exploring the world of animations! Now just add mob in mod!

QUESTIONS:
My model was all wrong what happened? Make sure your body's animation points are correct to avoid mistakes!
Should I always do this before adding a template? Not that I know of, after adding animation to a mob, MCreator seems to have recognized the code and validated it for everyone!
Other questions, I'm here!

Edited by IGOR_LIVE96 on Sat, 03/21/2020 - 09:31
Active 4 years ago
Joined Nov 2019
Points:
631

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
Hi i had the same problem…
Fri, 03/20/2020 - 20:25

Hi i had the same problem but i fixed this.

you must scroll down to:

@Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        all.render(f5);

and paste previous code under that.

I hope i helped :D.

Active 4 years ago
Joined Nov 2019
Points:
631

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
If u don't know something…
Fri, 03/20/2020 - 20:27

If u don't know something else, let me know about it.

 

Active 3 years ago
Joined Aug 2018
Points:
1050

User statistics:

  • Modifications: 3
  • Forum topics: 28
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 419
Hello! Thanks to all the…
Fri, 03/20/2020 - 21:41

Hello! Thanks to all the comments! Sorry for not answering, i am closing this topic, the information kept in it is useful for the new versions, but in a more technical way!Currently MCreator's custom animation service is a good replacement for this topic, so use it only when it's really needed!

Active 4 years ago
Joined Apr 2020
Points:
624

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
So I have a question…
Wed, 04/15/2020 - 16:14

So I have a question... Which application should I use in order to animate my mobs? And if there's any can you also tell me the link to a tutorial about the application. Right now I am using windows10 and trying to find an application that I can use in order to animate my mobs(For 1.12.2). I tried to use tabula Techne MCanimations but for tabula and Techne I couldn't make the animation part work and for MCanimations I don't know how to get my model into the MCreator since it keeps on telling me that there is an error. I am trying to look for tutorial videos but most of them are about 4 to 5 years old and are outdated. So if anyone can tell me an application and a tutorial(Which still works for MCreator1.12.2) please help me.

Active 4 years ago
Joined Apr 2020
Points:
624

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
I was able to find the…
Fri, 04/17/2020 - 08:13

I was able to find the program. So you don't need to reply to this comment anymore.

Active 4 years ago
Joined Apr 2020
Points:
624

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
The code you posted had 2…
Fri, 04/17/2020 - 08:20

The code you posted had 2 problems that needed fixing. There is a comma missing between [f5] and [entity] and also the word [entity] and [Entity] is flipped.(It should be [Entity] [entity]) I don`t know if this is the case for my version of MCreator only, but if it is not I hope you can fix it so no other people will have the same problem as me.

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); 
    this.head.rotateAngleY ​​= f3 / (180F / (float) Math.PI);
    this.head.rotateAngleX = f4 / (180F / (float) Math.PI);
    this.leftleg.rotateAngleX = MathHelper.cos (f * 1.0F) * -1.0F * f1;
    this.rightleg.rotateAngleX = MathHelper.cos (f * 1.0F) * 1.0F * f1;
    this.rightarm.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
    this.leftarm.rotateAngleX = MathHelper.cos (f * 0.6662F + (float) Math.PI) * 2.0F * f1 * 0.5F;
  }

Active 3 years ago
Joined Sep 2017
Points:
702

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 8
i need help to make wings ;c…
Fri, 04/24/2020 - 18:46

i need help to make wings ;c

 

Active 4 years ago
Joined Aug 2020
Points:
592

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
now u know what app it is…
Sat, 08/01/2020 - 17:59

now u know what app it is.... so can u tell me what app is for animate the mob??

Active 7 months ago
Joined Jun 2019
Points:
792

User statistics:

  • Modifications: 1
  • Forum topics: 20
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 71
Igor? I have a question…
Sun, 08/02/2020 - 05:00

Igor? I have a question. What do I do if I want a dragon to flap its wings?

Active 2 years ago
Joined Jun 2022
Points:
347

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Uh.. What if I don't see…
Mon, 06/06/2022 - 06:34

Uh..
What if I don't see that code at all..???
What do I do this is all I see at the end I can't find what you have said to look for ;-;