Jump to content

How to render an Entity to be on fire?


Bedrock_Miner

Recommended Posts

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.

Link to comment
Share on other sites

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]

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.