How to have no daylight cycle in a dimension?

Started by squib___ on Sun, 06/06/2021 - 21:11

Topic category: Help with MCreator software

Last seen on 19:58, 20. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to have no daylight cycle in a dimension?
Sun, 06/06/2021 - 21:11

Every time I've tried making a dimension, the daylight cycle still happens. This always ruins the dimension as the "sunset" colour applied by the game overrides the fog colour and makes the sky an ugly orange colour.

 

 

Similar to how the Nether and End don't have daylight cycles, I'd like for my custom Dimension to not have a daylight cycle.

Last seen on 11:01, 28. Jul 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
are you willing to change…
Mon, 06/07/2021 - 01:07

are you willing to change really few parts of the code? if so, then you're kinda in luck! i only know how to do it in 1.15, but it's simple:

(for 1.15) simply lock the code of your dimension mod element, press ctrl+f to search, find "public float calculateCelestialAngle(long worldTime, float partialTicks)", then change it to:

public float calculateCelestialAngle(long worldTime, float partialTicks) {
			return 0.5F;
		}

and i believe you can use any float value instead of 0.5. that makes the world time of your custom dimension similar to the Nether

Last seen on 19:58, 20. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hmm.. my mod is in 1.16.5,…
Mon, 06/07/2021 - 01:10

Hmm.. my mod is in 1.16.5, but i'll try using this. I don't think they'd change how the daylight cycle works. If it doesn't work i'll just revert the code changes. Thanks!

Last seen on 11:01, 28. Jul 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
you're welcome :)
Mon, 06/07/2021 - 01:17

you're welcome :)