Jump to content

[1.7.10] How to add a shader (from super secret settings) when wearing armor


Recommended Posts

Posted

Hey there!

I was fiddling around with the super secret settings (under net.minecraft.client.shaders, I believe) and was wondering how I could I 'trigger' it when wearing an armor.

 

So, I began researching and sifting through code (don't understand any of the shader code), but there were no tutorials- or really anything. I couldn't find any hooks. I'm decent at Java but this stumbled me.

 

Does anybody have any clue as to how I can manage to do this?

 

 

Posted

I don't know anything about shaders, so I can't help you with that, but I imagine you would want to subscribe to the render event, then in there, check if the player is wearing the armor, then execute whatever code you use to apply a shader. Or, you could make a new potion effect that gives the shader, then subscribe player to player update event, check if the player is wearing the armor, then give them that potion effect.

- Just because things are the way they are doesn't mean they can't be the way you want them to be. Unless they're aspen trees. You can tell they're aspens 'cause the way they are.

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.

Announcements



×
×
  • Create New...

Important Information

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