My Mob's Feet/Face don't move with their Legs/Head

5 posts / 0 new
Last post
Offline
Last seen: 1 year 2 months ago
Joined: 04/18/2015 - 01:00
Gems: 0
My Mob's Feet/Face don't move with their Legs/Head

My Mob's Feet doesn't move with it's Legs and my Mob's Eyes, Mouth, (PikaCheeks) and so on, don't move together, I have the little "Blue Ball" touching each other for each and every piece, I've tried conjoining the eyes with the face, It still doesn't work..

PLEASE HELP :D



Online
Last seen: 8 min 43 sec ago
Joined: 08/27/2013 - 18:03
Gems: 325
This works for me:

This works for me:

when you are making mob, mcreator task for which part is head, leg and arm.

use for thing what ou want the main part ( head, leag)

go to source code of your mod and

find something liek this:

super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
this.WolfHead.rotateAngleY = f3 / (180F / (float)Math.PI);
this.WolfHead.rotateAngleX = f4 / (180F / (float)Math.PI);
this.Leg2.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.Leg1.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
this.Leg3.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;
this.Leg4.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
 
and here write this:
 
this.nameofsecondpart.rotateAngleY = this.firstpart.rotateAngleY;
this.nameofsecondpart.rotateAngleX = this.firstpart.rotateAngleX;
 
EXAMPLE:
I want create wolf but nose dont roate with head. I edit my code to:
 
super.setRotationAngles(f, f1, f2, f3, f4, f5, e);
this.WolfHead.rotateAngleY = f3 / (180F / (float)Math.PI);
this.WolfHead.rotateAngleX = f4 / (180F / (float)Math.PI);
this.Leg2.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.Leg1.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
this.Leg3.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;
this.Leg4.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
this.Nose.rotateAngleY = this.WolfHead.rotateAngleY;
this.Nose.rotateAngleX = this.WolfHead.rotateAngleX;
this.Ear1.rotateAngleY = this.WolfHead.rotateAngleY;
this.Ear1.rotateAngleX = this.WolfHead.rotateAngleX;
this.Ear2.rotateAngleY = this.WolfHead.rotateAngleY;
this.Ear2.rotateAngleX = this.WolfHead.rotateAngleX;
 
BTW: my english is very bad
Offline
Last seen: 1 year 2 months ago
Joined: 04/18/2015 - 01:00
Gems: 0
Thanks, You lil' Life Saver

Thanks, You lil' Life Saver You!

Offline
Last seen: 1 year 2 months ago
Joined: 04/18/2015 - 01:00
Gems: 0
RE:This works for me:

It actually isn't working...

 

Offline
Last seen: 1 year 2 months ago
Joined: 04/18/2015 - 01:00
Gems: 0
nvm MC just went ahead and

nvm MC just went ahead and deleted the code I made.... I did press Save... But yea, now it's working