Topic category: Help with 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)
((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!