Jump to content

Recommended Posts

Posted

Hi, I've got a pretty complex problem(I guess). I need that the player swing his left arm when right clicking, well that's easy by using the "swingHand(EnumHand)"

 

But, the more problematic thing is that I want to be able to swing both arms at the same time, and it is no possible with the vanilla code because there is only 1 variable for the swing animation so only the last hand will have the animation.

 

My guess is that I have to make a separate variable for the left hand animation and modify the "renderItemInFirstPerson" method in the ItemRenderer.class.

 

So how could I do so that the game use my own "renderItemInFirstPerson" method instead of the vanilla one?

 

edit: I don't care about the swing animation in 3rd person, I just want the 1st person player to see the animation

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.

Announcements



×
×
  • Create New...

Important Information

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