Jump to content

[1.8]Changing limb rotation on the player when holding a specific item


TheMattyBoy

Recommended Posts

Hello! I want to do so that when you hold an item I'm working on at the moment and look in third-person mode, both of the players arms go up and hold it, without jiggling around when the player walks - sort of like when you charge a bow, except it does it all the time when you hold the item. I have looked around everywhere I could think of; the bow and sword classes (cause they both change the players limb rotation when they are used), the player class, the player model class and even the main Minecraft class. Any help would be highly appreciated.

 

Thanks :)

IGN: matte006

Played Minecraft since summer 2011.

Modding is my life now.

Please check out my mod :)

https://minecraft.curseforge.com/projects/gadgets-n-goodies-mod?gameCategorySlug=mc-mods&projectID=230028

Link to comment
Share on other sites

BTW, I maybe expressed myself a little unclear; what I want to do is to change the 'heldItemLeft' and 'heldItemRight' values of the player model when you hold the specific item. Is there no simple way of doing that without messing with the whole player model? Is it possible to access the model of the player that is holding the item from the onUpdate function of the item?

IGN: matte006

Played Minecraft since summer 2011.

Modding is my life now.

Please check out my mod :)

https://minecraft.curseforge.com/projects/gadgets-n-goodies-mod?gameCategorySlug=mc-mods&projectID=230028

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.