How to have no daylight cycle in a dimension?

Started by squib___ on

Topic category: Help with MCreator software

Last seen on 01:33, 14. Mar 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to have no daylight cycle in a dimension?

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 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 01:33, 14. Mar 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

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

you're welcome :)

Last seen on 05:01, 29. Jan 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I found how to do this in…
Tue, 09/05/2023 - 14:59

I found how to do this in later versions, it also involves locking the dimension element.

Open the json file under namespace resources\data\modid\dimension_type and it'll show a list of properties for your dimension. Adding the property 

"fixed_time": 1;

Sets a fixed time for your dimension. I've tried setting it to 1, 12, 50, etc, but they all seem to result in a sky with daylight brightness and no sun or moon. The site linked below mentions the integer value assigns the time of day in the dimension, but some other setting I have on may be preventing different times from appearing.

 

Other experiments include making skylight false and making ambient light: 0.1, which disables shading in caves and stuff but isn't as bright as midday. Torches and lightning still make areas brighter without being pitch black. This works nicely paired with disabling skylight for a decent middle ground between either super bright or dark dimensions when you have skylight disabled.

 

Hope this helps people o/

 

Dimension Element Website: https://minecraft.fandom.com/wiki/Custom_dimension