Wings

Started by DragonOfAsparas on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wings

So i'm trying to make a flying mob and everything works fine except that i have no idea how to make the wings go up and down... They go to the front and back but i need to them to go up and down. Anyone had an idea how to change this?
Thanx

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you know how to make mobs
Sat, 03/04/2017 - 06:09

Do you know how to make mobs fly? If so can you please help me?

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes i do
Sat, 03/04/2017 - 10:33

@thesloth It's really easy to do :) first you create a mob. I usually choose it to make it a creature or ambient one. After that you go to the AI of the mob and you pick bat, unless you want a hostile flying mob tell me and i'll explain that aswell. Whwn u selected bat as AI dont select any AI options like wander or such since that will give you errors. After you're done with creating it you will most likely get an error because mcreator sets the wander AI by default i think? So you go to the code screen of your flying mob and look for the AI tasks, you will see things such as : this AI task wander etc. Remove all the AI tasks and click save and build. You should be good to go :) if you need any other help with mob AI feel free to ask :)

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you I'll give it a go.
Sun, 03/05/2017 - 02:13

Thank you I'll give it a go.

Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Yes i do
Thu, 09/28/2017 - 04:51

@#2 hey can you tell me how to make a hostile flying mob?

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The mob animation code lines
Thu, 09/28/2017 - 13:00

The mob animation code lines are at the bottom of the mob code.

You have to look for something like: this.yourwingname.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1 

This will make move your wing along the X axis (rotateAngleX), so try to change that X into a Y (or Z sorry I cannot remember :P )

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What if I wanted the mob to
Fri, 10/06/2017 - 21:21

What if I wanted the mob to be aggressive?

Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The mob animation code lines…
Sun, 04/26/2020 - 13:52

The mob animation code lines are at the bottom of the mob code.

You have to look for something like: this.yourwingname.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1 

This will make move your wing along the X axis (rotateAngleX), so try to change that X into a Y (or Z sorry I cannot remember :P )

 

Im trying to use this code but doesnt work.

 

Is somthing like:

this.leftWing.rotateAngleZ = MathHelper.cos(f * 1.0F) * -1.0F * f1;
this.rightWing.rotateAngleZ = MathHelper.cos(f * 0.6662F + (float) Math.PI) * f1;

 

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you also change the…
Sun, 04/26/2020 - 14:03

Could you also change the amount of rotation the wing does? If so, how?