Jump to content

[FIXED] Custom Chickens wings problems


American2050

Recommended Posts

So I created a custom chicken, basically copying what Vanilla does for their chickens.

 

The only problem I'm having, and I can't figure out why, is that my chickens when ingame, they are constantly rotation the wings, and not moving them just when on the air, like the Vanilla chickens would do.

 

I see on the ModelChicken that the value they using is:

 

this.rightWing.rotateAngleZ = ageInTicks;
        this.leftWing.rotateAngleZ = -ageInTicks;

 

And I'm really not sure where those ageInTicks are coming from.

 

What could be wrong in my case?

 

Here is my Chicken Code:

http://pastebin.com/ypZ1rAG5

 

And my Chicken render:

http://pastebin.com/B1WE9kHZ

Link to comment
Share on other sites

if i were you, i would start to run back to why the chicken flaps its wings, probably until it checks if its in the air...

check every piece of the code thats controlling the chicken checking if in air and if it checks before it flapps its wings...

 

 

and btw XDD you have a chicken that puups copper? im hoping its not ez to get this chicken...

Doing stuff n' things

Link to comment
Share on other sites

if i were you, i would start to run back to why the chicken flaps its wings, probably until it checks if its in the air...

check every piece of the code thats controlling the chicken checking if in air and if it checks before it flapps its wings...

 

 

and btw XDD you have a chicken that puups copper? im hoping its not ez to get this chicken...

 

Well yes I went thru the code, but not sure what I'm missing. I guess the Vanilla chicken must be registering something else somewhere that I don't have for my chickens and that's why this is happening. I see the protected float handleRotationFloat but not sure what does is doing there. Probably nothing :P

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.