how to disable night/day fog color switch in custom dimension

Started by mcsquaggle on

Topic category: Help with modding (Java Edition)

Last seen on 16:00, 16. Apr 2023
Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to disable night/day fog color switch in custom dimension
Sun, 09/04/2022 - 16:48 (edited)

How can i disable the sky color change when its sunrise or sunset? i want a dimension to have pitch black fog, but it turns orange when its sunrise or sunset. How do i stop this from happening?

Edited by mcsquaggle on Sun, 09/04/2022 - 16:48
Last seen on 02:40, 4. Dec 2023
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not sure if you're still…
Mon, 12/04/2023 - 00:29

Not sure if you're still trying to find a solution to this, but I found a solution.

 

Unfortunately it requires locking the code of your dimension, but you need to add a bit of code in your dimension script, specifically in the registerDimensionSpecialEffects function, alongside other override functions like getBrightnessDependentFogColor, and isFoggyAt that MCreator writes for you depending on if you've selected certain booleans in your Dimension settings.

@Override
public float[] getSunriseColor(float p_108872_, float p_108873_) {
    return null;
}

One more thing you MUST be sure to do is in resources>data>yourmodid>dimension_type >YOURDIMENSION.json
 

Set your "effects" variable to "yourmodid:YOURDIMENSION"

"effects": "yourmodid:YOURDIMENSION"

I believe there's a bug that doesn't set this automatically for you by MCreator. Best of luck! Please reply to my comment if there's anything that doesn't make sense here, I'll try my best to respond.