How to tint the color of the screen when wearing specific glasses (they are part of the mod)

Started by ThunderStorm on

Topic category: Help with MCreator software

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to tint the color of the screen when wearing specific glasses (they are part of the mod)

I've made some glasses that are tinted in different colors. I want to make it so the player's view get slightly colored/tinted when they are worn. I know this is possible because in spectator mode when we right click on a creeper the view becomes green so how can we do that in MCreator even if it uses code snippets?

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make an HUD that's the color…
Thu, 08/13/2020 - 17:01

Make an HUD that's the color you want (using a transparent image from elsewhere, like in Paint or something just use a fill tool, adjust the transperancy, and export as a PNG), then have it show when the player's wearing the goggles.

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To elaborate on…
Wed, 08/19/2020 - 17:06

To elaborate on TheReallyFatChicken's response, you want to make a texture that has a width of 1920 and a height of 1080. Then use the fill tool with the opacity turned down to make the entire texture the color you want. After you do this, all you have to do is make an overlay that has its base texture set to the new one you just made and add a procedure that makes the overlay show when you have the glasses on.