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

Alright, so I'm currently changing the sky color of a dimension I have. The sky will appear as a different color [neither the correct one] depending on which way you look. I've tried fiddling with both extensively, but I either just get bright blue or this duo-color.

 

My sky color code in biome class:

    @Override

    @SideOnly(Side.CLIENT)

    public int getSkyColorByTemp(float par1) {

        return Color.YELLOW.getRGB();

    }

 

In world provider class, the celestial angle:

@Override

    public float calculateCelestialAngle(long var1, float var3) {

        return 0.25F;

    }

 

Change fog color too.

Long time Bukkit & Forge Programmer

Happy to try and help

  • 2 years later...

there's a hook in the EntityRender class in the updateFogColor method.

I think if you setup an event handler with a method that accepts FogColors you should to do it. ex: onFogColorUpdate(FogColors event){}

 

1 hour ago, LRocket said:

there's a hook in the EntityRender class in the updateFogColor method.

I think if you setup an event handler with a method that accepts FogColors you should to do it. ex: onFogColorUpdate(FogColors event){}

I know that er.setupFog() is private, was that replaced by updateFogColor()?

  • Guest locked this topic
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.