Posted February 24, 20232 yr What is the idea to modify custom player model, and custom player animation like mo'bend? i didn't understand how it work Or how should i can create custom player model with custom animation?
February 24, 20232 yr 1 hour ago, None283 said: What is the idea to modify custom player model, and custom player animation like mo'bend? i didn't understand how it work If you want to use a custom player model, you would need to cancel the PlayerRenderEvent$Pre and render your model in there. The animations from then are just the same as any others where values increase and decrease to get the desired result after some Mth#lerp to smooth it out. You can use blockbench to create the custom player model and then either do the animations manually or through some library like geckolib.
February 25, 20232 yr Author 8 hours ago, ChampionAsh5357 said: If you want to use a custom player model, you would need to cancel the PlayerRenderEvent$Pre and render your model in there. The animations from then are just the same as any others where values increase and decrease to get the desired result after some Mth#lerp to smooth it out. You can use blockbench to create the custom player model and then either do the animations manually or through some library like geckolib. can you tell the steps more clearly, or at least tell me where i can find how to render my custom player model, i'm sorry, i just learned about forge yesterday
February 25, 20232 yr Look at any LivingEntityRenderer subtype; PlayerRenderer is actually responsible for supplying the model for the player. You would be responsible for handling the logic in there, or you can create your own subtype and then call the #render method for the logic. 11 hours ago, None283 said: i'm sorry, i just learned about forge yesterday This is not really Forge and more like vanilla Minecraft. You would have to do this for any mod loader.
March 1, 20232 yr Author I got a Renderer class ```public class ExampleRenderer extends LivingEntityRenderer<ExampleEntity, PlayerModel<ExampleEntity>> { @Override public void render() {} }``` I tried to registered it ``` @SubscribeEvent public static void registerRenderer(EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityType.PLAYER, ExampleRenderer::new); } ``` But nothing changed, Can you tell more about how extractly to render a Custom Player Model? Or how should to replace vanilla PlayerRenderer class? Edited March 1, 20232 yr by None283
March 1, 20232 yr Author On 2/25/2023 at 8:07 PM, ChampionAsh5357 said: Look at any LivingEntityRenderer subtype; PlayerRenderer is actually responsible for supplying the model for the player. You would be responsible for handling the logic in there, or you can create your own subtype and then call the #render method for the logic. This is not really Forge and more like vanilla Minecraft. You would have to do this for any mod loader. Where to call my #render method
March 1, 20232 yr On 2/24/2023 at 4:31 PM, ChampionAsh5357 said: you would need to cancel the PlayerRenderEvent$Pre and render your model in there Listen to that event on the forge bus and call the render method there after canceling the event.
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.