Posted June 4, 201411 yr Heyho Guys! I want to create a custom type of fire. I've already created a potion effect to do the damage and now I want to make the renderer. I need an event where a entity is rendered so that I can add the fire rendering. Which event do I have to subscribe to? It might help me if you can tell me where in the code the "normal" fire is rendered on the entities. http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
June 4, 201411 yr Something tells me you didn't try that hard to find it. Render#renderEntityOnFire(Entity entity, double coordX, double coordY, double coordZ, float scale) this method is private, just copy it over to your entityrender class. the scale is not being used, so you can leave that out of the parameters. add it to your render class's doRender method.[/code]
June 4, 201411 yr Author Actually I don't want to render a specific entity on fire but every entity which has the potion effect I created, so actually I have no doRender method. http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
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.