Skyclock: Day, Night and Weather Kit
README.md
controls
A ready-made, optional time and weather controls panel any world can drop in: quick buttons for dawn, morning, midday, sunset and night (worked out from today's sunrise and sunset, so seasons move them), pause and resume, speeds from ½x to 12x, and weather buttons with clear, mist and rain first. Every button goes through the shared clock, so every player sees the change.
local Controls = require("worldClockKit.controls")
Controls.show() -- left side, time + speed + weather
Controls.show({ side = "right", sections = { "time", "weather", "sky" } })
Controls.press("time:sunset") -- the same actions from your own keys or buttons
Options: side ("left" or "right"), edge ("top" or "bottom"), margin (16, or { top, right, bottom, left } to sit beside another panel), sections (any of "time", "speed", "weather", "sky"), weathers (which weathers get a button), speeds (default ½, 1, 2, 4, 12), baseDayLength (the 1x day, default the clock's day length when the panel is shown), collapsed, title. Controls.hide() takes it down; Controls.timeFor("sunset") reads the hour a quick button jumps to. In play, Tab frees the mouse to use the panel.