Since the world Clock system was introduced in Minecraft 26.1, there does not appear to be a public Java API for mods/plugins to directly read or set a world's clock time value. The only available method is executing the /time command, which requires full command parsing on every call — functional, but heavy for use cases that need frequent, low-overhead time updates.
Even PaperMC's own team noted publicly that "there is no API for getting clocks, but that's where it will be put at some point" (their 26.1 update notes), and it's tracked as an open item on their side too (PaperMC/Paper #13802).
Requesting a simple, direct API — something like a getTime()/setTime(long) exposed on the relevant clock object or ServerLevel — so mods that need programmatic time control don't have to go through command dispatch for every update.
0 Comments
Please sign in to leave a comment.
Post a new comment: