mxa Posted November 27, 2020 Share Posted November 27, 2020 How would I go about changing first person animation that results from a call of onItemRightClick? I've found the FirstPersonRenderer class, and the relevant method renderItemInFirstPerson(), but seeing as all animations in this class seem to be hard-coded, is there any way for me to add my own animations? To be clear, I do not want to animate the item model in any way (since I've read in the documentation that cannot be triggered with events), I just want to implement a simple movement of the item from the first person point of view. Specifically, I'd like for the item to briefly recoil towards the player after being used. Of course, if this is all outside the range of the API, I would also like to know that so I can move on to something else. Quote Link to comment Share on other sites More sharing options...
poopoodice Posted November 28, 2020 Share Posted November 28, 2020 You can change item model through ItemPropertyOverrides https://mcforge.readthedocs.io/en/latest/models/overrides/, like bows...etc. Quote Link to comment Share on other sites More sharing options...
mxa Posted November 28, 2020 Author Share Posted November 28, 2020 Thanks, I can use this. However, I was wondering if there were any way to smoothly animate the position of the item in the hand. For example, something that would allow me to put some modifier on the first person positioning encoded in a model's JSON file. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.