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

Started by ThunderStorm on Tue, 08/04/2020 - 02:58

Topic category: Help with MCreator software

Last seen on 12:17, 30. Aug 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to tint the color of the screen when wearing specific glasses (they are part of the mod)
Tue, 08/04/2020 - 02:58

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?

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 18:35, 5. Dec 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.