Topic category: User side tutorials
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!
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.
If u don't know something else, let me know about it.
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!
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.
I was able to find the program. So you don't need to reply to this comment anymore.
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;
}
i need help to make wings ;c
now u know what app it is.... so can u tell me what app is for animate the mob??
Igor? I have a question. What do I do if I want a dragon to flap its wings?
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 ;-;