Need help with animations.(Wings)

Started by Ekulchu on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need help with animations.(Wings)
Sat, 07/18/2020 - 03:13 (edited)

Heya, I'm currently working on an owl mob, and I was wondering if there was any way I could make the wings flap significantly in one direction then back only when flying, even if that means manually editing code. I know I can set it to rotate off of the Z axis in regular MCreator, however this makes the wings go inward from the starting position, which makes the wings go inside of the body. Is there any way to do this, or rather, does anyone know how?

Edited by Ekulchu on Sat, 07/18/2020 - 03:13
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is the animation i use…
Sat, 07/18/2020 - 06:18

This is the animation i use on my Birds: (edit the code at the end and add those; change the 'wingD1' name to your wing parts off course)

on the case below each wing have 3 parts (elements) that work at the same time:

this.wingD1.rotateAngleZ = MathHelper.cos(f * 6F) * 1.4F * f1 +1.570796F;
			this.wingD2.rotateAngleZ = MathHelper.cos(f * 6F) * 1.4F * f1 +1.570796F;
			this.wingD3.rotateAngleZ = MathHelper.cos(f * 6F) * 1.4F * f1 +1.570796F;
			this.wingE1.rotateAngleZ = MathHelper.cos(f * 6F + (float) Math.PI) * 1.4F * f1 -1.570796F;
			this.wingE2.rotateAngleZ = MathHelper.cos(f * 6F + (float) Math.PI) * 1.4F * f1 -1.570796F;
			this.wingE3.rotateAngleZ = MathHelper.cos(f * 6F + (float) Math.PI) * 1.4F * f1 -1.570796F;

But if you want you Owl to Fly AND Land; you can do what i did on my mod; i made 2 mobs (fly and land); and created procedures (for right click with items, making them land or take off).

 

my mod if you want to try (add +100 new animals!)

https://www.curseforge.com/minecraft/mc-mods/wizards-animals

 

My Owl model if you need inspiration:

a

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
notice im using rotation on…
Sat, 07/18/2020 - 06:19

notice im using rotation on Angle Z here (its how i made the model on techne), but depending on the way you made the model you need to set different angles here, you need to check on techne or blockbench what angle you want to use.

hope it helps!

Joined May 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I use Z-axis as well. Thank…
Sat, 07/18/2020 - 17:49

I use Z-axis as well. Thank you so frickin much for this by the way, it's incredibly helpful!

Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Where do you open this code…
Tue, 07/12/2022 - 13:19

Where do you open this code panel please help!

 

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
rightclick the mod element…
Sun, 07/17/2022 - 09:25

rightclick the mod element then click on the lock/unlock mod element