Posted November 30, 20177 yr All right, I will just ask this straight ahead, are there common ways of creating different Modes for players which also can change the Model animation? I could use capabilities to add this, but how can I directly influence Minecrafts usual player animations? Also, I need certain abilities that the player has in this modes (e.g pulling an entity), but that will be rather easy.
December 1, 20177 yr Animations are usually controlled with combination of the model class and renderer class. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
December 1, 20177 yr Author 8 hours ago, jabelar said: Animations are usually controlled with combination of the model class and renderer class. Yeah, I know that but can I just modify them? If so, how do I prevent Minecraft from controlling the player model? Edited December 1, 20177 yr by ArmamentHaki
December 1, 20177 yr When trying to modify something vanilla, you have a few options. In this case using events is probably best bet. Just handle the RenderPlayerEvent.Pre event, do the rendering you want, and make sure you cancel the event to prevent the vanilla player renderer from rendering. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
December 2, 20177 yr Author I looked at how Minecraft renders the player and realized that cancelling the event would cancel way more that shouldn't be cancelled. I can modify rotation angles of the models, but they are resetted in the render method itself, so that won't work for me. The only option would be to render everything that Minecraft does by my Mod and set them manually there. But that would be a ton of stuff that I actually want to keep my hands off
December 2, 20177 yr Author Instead of that, I could also just disable player rendering and replace it with another model.
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.