RealTime is an independent Minecraft real-world time plugin for Paper and Folia, maintained by OrzMC.
Status:
v0.11.0released (2026-11-30) — see the release and CHANGELOG.mainis now on0.12.0-SNAPSHOT. Also on Hangar and Modrinth. The plugin provides timezone-aware time and Paper/Folia scheduler-safe lectern clocks: one lectern per digit, so a comparator reads the digit as an analog level (digit + 1) andHHmmssneeds only six slots. Build one with/rtime create <name>, position single slots with/rtime place(the lectern appears immediately), and manage it with a flat five-command surface. Versioned persistence (schema v7), diagnostics, crash-safe deferred cleanup and cleanup-queue operator controls included.
- Provide one timezone-aware real-world time service; default timezone:
Asia/Shanghai. - Keep domain logic independent from Bukkit/Paper/Folia APIs.
- Support Paper and Folia through explicit platform adapters.
- Add command, optional PlaceholderAPI, and redstone-clock features incrementally.
- Remain independently buildable, testable, and releasable; no build-time or runtime dependency on the parent repository
OrzMC/OrzMC.
| Area | Baseline |
|---|---|
| Language / JDK | Kotlin / 25 |
| Build | Gradle Kotlin DSL / Gradle Wrapper 9.2.1 |
| Minecraft API | Paper API 26.3 line |
| Platforms | Paper + Folia |
| Minimum API | 26.3 |
| Command | /rtime |
| Default timezone | Asia/Shanghai |
| License | MIT |
PaperMC documents io.papermc.paper:paper-api:26.3.build.+ for the 26.3 API line. The resolved version must be locked and reviewed after dependency resolution. See Paper project setup.
realtime-core/: pure Kotlin/JVM time service, clock-digit encoder, lectern layout and display geometry, and the validated device model.realtime-paper/: plugin lifecycle, commands, modular configuration, Paper/Folia adapters, device persistence, and optional integrations.tasks/: roadmap and executable task contracts..agents/: roles, workflows, and safety policies.docs/: product requirements, architecture, ADRs, development, testing, release.scripts/: common local/agent entry points.
Requirements: JDK 25.
./scripts/doctor.sh
./scripts/verify.sh
./scripts/package.shThe Gradle Wrapper pins Gradle 9.2.1. The first build downloads the Gradle distribution and project dependencies.
The distributable shaded JAR is written to realtime-paper/build/libs/RealTime-<version>.jar (0.12.0-SNAPSHOT on
main). Release builds use the tag, e.g. PROJECT_VERSION=0.6.0 ./scripts/package.sh.
Read AGENTS.md, then tasks/roadmap.md. Agents must select only ready tasks, use isolated worktrees, run the shared verification scripts, and report observed evidence rather than assumptions.
See isolated Agent worktrees for the multi-agent workspace helpers.
- Real-world time with an explicit
ZoneId(defaultAsia/Shanghai),/rtime, and optional PlaceholderAPI placeholders. - Reading is two commands:
/rtime(time plus every clock) and/rtime <name>(one clock in detail). Writing iscreate,on/off,place,remove, withstatus/cleanup/reloadfor operators. Tab completion covers clock names, options and slot numbers; removed verbs (info,list,device,demo,set) answer with their replacement. - Lectern clocks: one lectern per digit holding a plugin-authored 15-page book, so a comparator reads
digit + 1with no decoding — six slots forHHmmss, four forHHmm. Seconds are the default resolution. - In-game authoring:
/rtime create <name>builds at the block you aim at, grows the slots in the direction you face, places the display blocks (comparator + dust + lamp per slot) and starts enabled.manualbuilds skip the display and leave every slot unpositioned, so/rtime place <name> <slot>can drop each lectern exactly where the machine has room — the lectern appears immediately, facing you. Authoring is bounded bylimits.allowed-areas/max-devices/edit-cooldown-secondsand split permissions. - Durable lifecycle: turning a clock off keeps its lecterns and drops the book (comparator reads 0);
removequeues a crash-safe cleanup job, and aNEEDS_ATTENTIONentry means "that block is not ours" — never overwritten, retry it or dismiss the job. - Diagnostics behind
/rtime status; tick-level change detection with diff-only, chunk-batched writes. - Self-updating the standard way:
/rtime updateasks Hangar (GitHub as fallback) for a newer build, verifies the published checksum, and/rtime update downloadputs it in the server'splugins/update/folder — Paper swaps it in on the next start. Never hot-swaps, never restarts the server.
Commands, permissions, wiring diagrams, the cleanup queue and FAQ: usage guide. Implementation notes (store schema, page/level maths, scheduler safety): redstone devices.
- Product requirements
- Architecture
- Development setup
- Testing strategy
- Paper/Folia scheduler safety
- Usage guide
- Redstone devices (implementation notes)
- PlaceholderAPI integration
- Development workflow (branch names, gates, PR shape, definition of done)
- Release process
- Hangar and Modrinth publishing
- 0.8.0 updater acceptance (current)
- 0.6.0 real-server acceptance (current)
- Hangar / Modrinth listing source of truth
- 0.1.0 production acceptance handoff (historical)
- Analog and layout real-server acceptance (historical)
- Contributing
- Security
MIT. See LICENSE.