Jump to content

[1.7.10] Rendering Custom Screen Effects


Lyeoj

Recommended Posts

Ok, so I want to make some custom visual effect appear on the player's screen, such as a fog similar to the nightvision or blindness potions. I managed to trace this effect to the EntityRenderer class, which seems to control things like fog or shader effects. The only problem is that there is almost no way to externally control it, since all of the potion effects that change the screen are built into the class. How can I make an effect appear on the screen? Is there a way to hook into the class, or do I need to make my own renderer, or something else? (To specify what exactly I want to do, I just want to make a colored fog appear on the screen when I have a custom potion active)

Link to comment
Share on other sites

Also, for fog effect there are a couple specific events:

 

RenderFogEvent

FogColors

FogDensity

 

I give an example of using these events in my events tutorial, look at Example #3 at the bottom of this page: http://jabelarminecraft.blogspot.com/p/minecraft-forge-172-event-handling.html

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.