#How to make both hands swing
13 messages · Page 1 of 1 (latest)
@cobalt obsidian
I used
user.playSwingHand(MainHand)
user.playSwingHand(offHand)
But only one hand swings
Oh ._. so u say , the problem will take time to have solution, if i abstract important infos , like for what i use it and those ?
So basically:
I need player to swing its hand simultaneously while mixing dyes ( i made mod that mixes dyes by putting one in main hand and other in off hand , so it give u new dye that is composition of both ) so i basically needs to wing both , but it doesn't let me
The game code that animates the arm on the client side basically only makes the prefered arm in the BipedEntityRenderState swing. The code that does this is in the BipedEntityModel at the end of the setAngles method. So if you want both arms to swing, then you will likely need to mixin here to make it possible and add a way to communicate this desire along with the renderstate.
^
It is hard ?
It is hard depending on how comfortable you are with adding some client behavior. It can be quite a bit of work, especially in contrast to being able to just call the swingHand twice. So consider how much you want it and then you can add it by referencing how Minecrafts source code sets to control the model arm animation.