Jump to content

Player model hand rotation system


FLUFFY2

Recommended Posts

Hi,

 

I know things like that got discussed before, but it looks like they never actually make it into Forge.

Now i come up with something that might worth thinking about and its compatible with other mods, but somewhat "limited".

 

Back in 1.7.10 we could achieve this with RenderPlayerEvent.Specials, but i think that caused incompability with other mods, and Specials was never supposed to be used for that.

 

The idea of mine is to only be able to rotate the hand if we the item is held.

The method would look like this in the Item class:

public float rotateArm(ItemStack item, EntityPlayer player)
return AMOUNT;

ONLY call the method if the player is holding the item!!!

 

In 1.9, the method would only apply to the hand thats holding the item.

If item is in left hand only rotate the left arm, if right hand than the right arm.

 

This would make compability with other mods.

RenderPlayerAPI is a very instable API, and a lot of people only using it for the arm rotation.

Making our own RenderPlayer class for this is just another bad idea.

 

Thanks for reading!

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.

Announcements



×
×
  • Create New...

Important Information

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