Jump to content

Recommended Posts

Posted

How could I make a custom colormap, that changes dynamically, for example, if I add seasons, that the grass and leave color changes to white in winter?


(The mod should be client side only)

Posted (edited)

Check out how vanilla does it in GrassColors, FoliageColors, and BiomeColors. Then use BlockColors#register in the client setup event ColorHandlerEvent.Block* to replace the vanilla block colors.

Edited by imacatlolol
* Corrected thanks to @diesieben07

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

Posted
1 minute ago, diesieben07 said:

No, ColorHandlerEvent.Block must be used.

Oh, didn't even know that existed, thanks for the correction!

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

  • 2 years later...
Posted

In the default Textures, there is a folder colormap with a png file called foliage.

I want to know how I can use that custom Foliage. But I don't know which class to look at

On 2/29/2020 at 6:11 PM, imacatlolol said:

Check out how vanilla does it in GrassColors, FoliageColors, and BiomeColors. Then use BlockColors#register in the client setup event ColorHandlerEvent.Block* to replace the vanilla block colors.

These classes do not directly access any png files. Any Idea which class possibly does that?

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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