Skip to content

MaxMaxsys/clienttime

Repository files navigation

ClientTime Mod 🌤

[ 🇺🇸 English ] [ 🇷🇺 Русский ]

Client-side mod for Minecraft 26.1.2 (Fabric)

Changes the sky visually on your client without affecting server gameplay. Works on any server - you see your sky, the server sees its own.

Note: This command only works on dedicated servers (not in single-player), since it's designed for server-side time customization.


Commands

Command Description
/settime morning Dawn (0 ticks)
/settime day Noon (6000 ticks)
/settime evening Sunset (12000 ticks)
/settime night Midnight (18000 ticks)
/settime <number> Custom time (0–24000)
/settime sync Sync with your PC's real time
/settime off Disable - restore server sky

PC Sync

/settime sync maps real-world time to in-game time:

PC time In-game time
06:00 Dawn (0)
12:00 Noon (6000)
18:00 Sunset (12000)
00:00 Midnight (18000)

Build

Requirements:

  • Java 25+
  • Gradle 9.4+ (or use ./gradlew)
cd clienttime-mod
./gradlew build

The JAR will be in build/libs/clienttimemod-1.0.0.jar. Place it in your mods folder and launch Fabric for 26.1.2.


How it works

The mod intercepts ClientClockManager.getTotalTicks() on the client via a Mixin. Since Minecraft 26.1+ ships without obfuscation, the mixin uses Mojang's original class names directly.

The mod is client-side ("environment": "client" in fabric.mod.json) - it does not load on the server, does not require server-side installation, and does not affect gameplay.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors