How to have no daylight cycle in a dimension?

Started by squib___ on

Topic category: Help with MCreator software

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.

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

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!

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 :)

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

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It is just how the previous…
Mon, 10/28/2024 - 15:12

It is just how the previous person said, but the number is in ticks. I used 6000 because that number fixes sun at the center of the sky.