Model Animation Wizard

Started by GandyManCan on Mon, 08/07/2017 - 14:35

Topic category: Help with MCreator software

Last seen on 13:12, 12. Mar 2018
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Model Animation Wizard
Mon, 08/07/2017 - 14:37 (edited)

Not sure where I am messingup but can not get custom Mobs to animate. MC 1.7.5 or 1.7.2

Steps I use.
1. Create a basic bipen in Techne with no changes.
•Export both Java and Texture

2. Modify texture in MCSkin3d

3 Start MCreator and add new element (Mob)
•Name mob
•Import Texture file
•Import Java file
•assign animation parts (all basic biped parts)
•assign egg colors
•Next
•assign Mob Name
•Next
•Next
•Next
•add AI Wander
•Next
•Next (Compiles fine)

4. Run in client test enviroment (No animations. mob is there and works other that animations.)
Looking at code it does not contain any commands for rotation other than setting variable

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

Does not contain any rotation angles. Have tried to add from videos what i think it should be

•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) * 2.0F * f1 * 0.5F;

but get an error on Symbol: variable MathHelper

If I do the same thing but pick Biped from MCreator and do not add my own Jave file it works and the Biped has full animation.

Edited by GandyManCan on Mon, 08/07/2017 - 14:37
Last seen on 13:12, 12. Mar 2018
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Okay fixed the error.
Tue, 08/08/2017 - 16:07

Okay fixed the error. MCreator is not addind

import net.minecraft.util.MathHelper;

does anyone know how do I fix it so I do not have to add this each time.

Last seen on 14:48, 10. Nov 2018
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nope, i dont think so, i
Tue, 08/08/2017 - 18:22

Nope, i dont think so, i think you will just have to put a sticky note telling you to do it every time, but hey, what do i know, im not that experienced here

Last seen on 13:12, 12. Mar 2018
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Fixed it. I just needed to
Tue, 08/08/2017 - 18:31

Fixed it. I just needed to make a new Java export template for techne to export to. Now I have one for non animated java export and one for animated. It was just not getting the

•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) * 2.0F * f1 * 0.5F;

added before the java import into MCreator so MCreator did not know it needed to add MathHelper.

Thanks everyone but got it on my own. nothing like just taking a break and thinging about it.

Last seen on 14:48, 10. Nov 2018
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
RE:Fixed it. I just needed to
Tue, 08/08/2017 - 18:32

@#3 good job! =) i give you + 1 Respect for figuring it out.