Topic category: Help with Minecraft modding (Java Edition)
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!
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.
Did you reply to the wrong post by accident? I don't think this has anything to do with time.