"Smoothly" changing time in a custom dimension

Started by fishcute on

Topic category: Help with modding (Java Edition)

Last seen on 20:20, 4. Dec 2021
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Smoothly" changing time in a custom dimension

Hello, I have been having trouble with first of all, setting the time in a custom made dimension, and second of all, doing that smoothly. You might wonder what I mean by "smoothly". Originally, I was changing the time with a /time command, as the "Set time to" thing doesn't work for custom dimensions (I tried the "Do ... in server-side world ...", but that did not work either. I also went into the code and removed

if (world instanceof ServerWorld)

 from

((ServerWorld) world).setDayTime((int) 1)

, but this resulted in a crash). But, if that command is ran for example every world tick, the time appears to update every second, rather than when the command itself is ran. You can test this out by yourself by placing a repeating command block, and then entering the command "time add 10" in it. You will see that the sky rotation only updates every second.

I've looked through a lot of the forum posts here and on the forge forums, but none of them have solutions for what I'm been looking for. If anyone has any idea what to do (And a better way to change time), let me know!

Last seen on 09:42, 5. Sep 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
   I have the player loading…
Sat, 05/29/2021 - 15:40

 

 I have the player loading into the custom dimension when the world first loads. To hide structure spawn. I gave the player blindness and added a GUI over lay with some words. A very BIG GUI overlay to hide stuff loading. Works very well. 

 

 This is the only game I have modded that dont have a fade to black - fade to white hard coded. No cut scenes in MC. 

Last seen on 20:20, 4. Dec 2021
Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you reply to the wrong…
Sat, 05/29/2021 - 15:54

Did you reply to the wrong post by accident? I don't think this has anything to do with time.