Posted December 29, 20186 yr Hello i am wondering what would be the best way to approach a system that loads a model but when the entity is e.g. 20 blocks away it would load a different model.
December 29, 20186 yr Utilize your renderer class. In the render method check the distance to the client's player, if it is less than the distance you want then change the RenderLivingBase.mainModel field's value to your other model. Or override RenderLivingBase#renderModel and render a different model there.
December 29, 20186 yr Author 12 hours ago, V0idWa1k3r said: Utilize your renderer class. In the render method check the distance to the client's player, if it is less than the distance you want then change the RenderLivingBase.mainModel field's value to your other model. Or override RenderLivingBase#renderModel and render a different model there. That worked perfect thank you
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.