Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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)

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.

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...

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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.