0x03 S03PacketTimeUpdate
Synchronizes the world time (total world age and day/night cycle time). Sent every few seconds or when time accelerates (sleeping).
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| totalWorldTime | long | Total ticks since world creation (monotonically increasing) |
| worldTime | long | Current day/night time (0-24000). worldTime % 24000 for time-of-day. |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| World Age | long | Incremented each tick |
| Time of Day | long | 0-24000, wraps around |
MCP References
NetHandlerPlayClient.handleTimeUpdate()Handler Interface
INetHandlerPlayClientNotes
Vanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
Deobfuscated MCP 1.8.9 source of S03PacketTimeUpdate, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S03PacketTimeUpdate.java) at build time and verified present.
Deep Dive
Role in the protocol
Two longs, totalWorldTime and worldTime, broadcast by MinecraftServer to every player in a dimension once per second (tickCounter % 20 == 0, line ~701 in the MCP builds) and re-sent on player join by ServerConfigurationManager (line ~787). worldTime is the day/night counter the client renders modulo 24000: 0 dawn, 6000 noon, 12000 sunset, 18000 midnight. The constructor folds the doDaylightCycle gamerule into the wire format by negation: when the rule is off the server transmits -worldTime, so the sign bit is the freeze flag and the boolean never exists as a packet field.
Vanilla handling
NetHandlerPlayClient.handleTimeUpdate runs on the main thread via PacketThreadUtil and performs two writes: theWorld.setTotalWorldTime(packet.func_149366_c()) and theWorld.setWorldTime(packet.func_149365_d()). Between corrections the client advances time-of-day itself in its tick loop, so the packet is a periodic correction, not the clock source. That is the property the Ambiance family exploits: cancel the correction and the locally pinned time holds until the next one would have arrived.
Why clients touch it
The Ambiance family spans Memeware 7.3, Rise 5.99, Rise 6.1.30, Rise 6.2.4 and LiquidSense Dev (the AquaVit fork), and Tenacity 6.0 ships the same idea as AlwaysNight. All six cancel S03 on the receive event and overwrite world time on a per-frame hook: Memeware writes 0 or 20000 depending on a Morning/Night mode, Rise 5.99 writes time + elapsed * timeSpeed, Rise 6.x adds weather forcing, LiquidSense Dev offers Daytime/Night/DIY/DayWithNight with a cycling counter, Tenacity writes a configurable value defaulting to 12000. Notably absent is Fullbright: it is a gamma/lighting override that never touches this packet, and no TPS estimator in the corpus derives server lag from S03 deltas even though the two longs are a natural clock.
Exploit surface
Cosmetic only and invisible to the server, because the client never reports displayed time back. Observers see the desync side effects: a pinned clock shows a frozen sky on the client's own screen, and when all players sleep and the server jumps time to 0 the module visibly fights the correction. No anti-cheat measures this packet. The only hazard is a module that writes worldTime unclamped, which can push the negative freeze encoding into the local renderer and break the sky shader path.
Server-Side Handling
MinecraftServer broadcasts S03PacketTimeUpdate(totalWorldTime, worldTime, doDaylightCycle) to all players in the dimension every 20 ticks (line ~701), and ServerConfigurationManager sends a fresh copy on player join (line ~787). When doDaylightCycle is false the server negates worldTime before sending; the constructor also maps a negated 0 to -1 so the freeze flag survives the zero case. The server never validates or rates the packet stream because it is the sole author.
Protocol Analysis
Two raw longs on the wire; the third constructor argument (doDaylightCycle) is encoded by negation, so worldTime < 0 means the day/night cycle is frozen server-side and the client should display abs(worldTime) without local advancement. Clients that only read the longs (all 5 module implementations here) are unaffected by the sign trick. The packet is sent in the PLAY state and is dimension-scoped, so it stops at the dimension boundary and a fresh one arrives on respawn.
Anti-Cheat Landscape
No anti-cheat flags time manipulation: the client clock is cosmetic, server-authoritative only in the sense that the server periodically corrects it, and nothing gameplay-relevant derives from it. The modules are undetectable from the wire because cancellation happens before the packet reaches the vanilla handler and no corresponding serverbound traffic exists.
implementation Implementation Cases
Once-per-second world-clock correction (two longs, doDaylightCycle encoded as a sign bit). Six modules across the 10 clients cancel it and pin the client clock locally, all with the same two-step shape: cancel on receive, rewrite on frame. Pure client-side cosmetics with zero server visibility.
Pin the client's day/night clock to a fixed value by cancelling server time corrections.
A receive-side packet event cancels every S03PacketTimeUpdate, then a per-frame hook rewrites the world clock: Memeware 7.3 sets 0 (Morning) or 20000 (Night) on UpdateEvent; Rise 5.99 computes time + elapsedMillis * timeSpeed on Render3D; Rise 6.x does the same and additionally forces weather by cancelling S2BPacketChangeGameState states 1 and 2. The cancel prevents the server value from ever landing, so the local write is the only clock.
// ===== FILE: Memeware 7.3, me/memewaredevs/client/module/render/Ambiance.java =====
package me.memewaredevs.client.module.render;
import me.hippo.api.lwjeb.annotation.Handler;
import me.memewaredevs.client.event.events.PacketInEvent;
import me.memewaredevs.client.event.events.UpdateEvent;
import me.memewaredevs.client.module.Module;
import net.minecraft.network.play.server.S03PacketTimeUpdate;
import java.util.function.Consumer;
public class Ambiance extends Module {
public Ambiance() {
super("Ambience", 0, Module.Category.RENDER);
this.addModes("Morning", "Night");
}
@Handler
public Consumer<PacketInEvent> eventConsumer0 = (event) -> {
if (event.getPacket() instanceof S03PacketTimeUpdate) {
event.cancel();
}
};
@Handler
public Consumer<UpdateEvent> eventConsumer1 = (event) -> {
mc.theWorld.getWorldInfo().setWorldTime(this.isMode("Morning") ? 0 : 20000);
};
}
// NOTE (AI): The class is Ambiance but the module registers under the name 'Ambience'.
// The two modes map to worldTime 0 (dawn) and 20000 (night, 24000 - 4000). Cancelling on
// PacketInEvent and writing on UpdateEvent means the client clock survives every server
// correction; because no packet reports time back, the server cannot observe the desync.
// This is the smallest complete example of the cancel-and-pin pattern in the corpus.
Hold the client's world time at a configurable value (default 12000, midnight) by cancelling server time updates.
A PacketReceiveEvent handler cancels S03PacketTimeUpdate; onEnable and a render-tick listener write the configured value into the world, and onDisable restores time 0. The number setting accepts any value in 0..24000 in 1000-step increments, so the module is a general time pin despite the AlwaysNight name.
// ===== FILE: Tenacity 6.0, dev/tenacity/module/impl/world/AlwaysNight.java =====
package dev.tenacity.module.impl.world;
import com.viaversion.viaversion.libs.kyori.adventure.util.Ticks;
import dev.tenacity.event.IEventListener;
import dev.tenacity.event.impl.packet.PacketReceiveEvent;
import dev.tenacity.module.Module;
import dev.tenacity.module.ModuleCategory;
import dev.tenacity.setting.impl.NumberSetting;
import net.minecraft.network.play.server.S03PacketTimeUpdate;
public class AlwaysNight extends Module {
private final NumberSetting time = new NumberSetting("Time", 12000, 0, 24000, 1000);
public AlwaysNight() {
super("Ambience", "Set world time", ModuleCategory.WORLD);
initializeSettings(time);
}
public void update() {
mc.theWorld.setWorldTime((long) time.getCurrentValue());
}
private final IEventListener<Ticks> onRender2d = e -> {
if (mc.theWorld != null) {
mc.theWorld.setWorldTime((long) time.getCurrentValue());
update();
}
};
@Override
public void onEnable() {
if (mc.thePlayer != null) {
mc.theWorld.setWorldTime((long) time.getCurrentValue());
update();
}
super.onEnable();
}
@Override
public void onDisable() {
if (mc.thePlayer == null) {
return;
}
mc.theWorld.setWorldTime((0));
super.onDisable();
}
private final IEventListener<PacketReceiveEvent> onPacketReceive = event -> {
if (event.getPacket() instanceof S03PacketTimeUpdate) {
event.cancel();
}
};
}
// NOTE (AI): The class is AlwaysNight but the module registers under the alias 'Ambience'
// in the WORLD category, and the Time setting defaults to 12000. The onRender2d listener
// rewrites the clock every frame, which keeps the pinned time stable between the cancelled
// S03 corrections. onDisable resets to 0 rather than to the server value, a cosmetic choice
// that differs from the Rise and Memeware implementations.
Pin the client's day/night clock by cancelling every S03PacketTimeUpdate, with four time modes, in the AquaVit LiquidSense fork (LiquidBounce base).
onPacket cancels any PacketEvent whose packet is an S03PacketTimeUpdate. onUpdate advances a private counter a by the DayWithNight step on an MSTimer and rewrites the world clock per mode: Daytime 1000, Night 16000, DIY the configured value (default 13000), DayWithNight the cycled counter wrapped at 24000.
// ===== FILE: LiquidSense Dev, me/AquaVit/liquidSense/modules/render/Ambience.java =====
package me.AquaVit.liquidSense.modules.render;
import net.ccbluex.liquidbounce.event.EventTarget;
import net.ccbluex.liquidbounce.event.PacketEvent;
import net.ccbluex.liquidbounce.event.Render2DEvent;
import net.ccbluex.liquidbounce.event.UpdateEvent;
import net.ccbluex.liquidbounce.features.module.Module;
import net.ccbluex.liquidbounce.features.module.ModuleCategory;
import net.ccbluex.liquidbounce.features.module.ModuleInfo;
import net.ccbluex.liquidbounce.utils.MovementUtils;
import net.ccbluex.liquidbounce.utils.timer.MSTimer;
import net.ccbluex.liquidbounce.value.IntegerValue;
import net.ccbluex.liquidbounce.value.ListValue;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.*;
import net.minecraft.network.play.server.S03PacketTimeUpdate;
@ModuleInfo(name = "Ambience", description = "Ambience", category = ModuleCategory.RENDER)
public class Ambience extends Module {
private final ListValue modeValue = new ListValue("Mode", new String[] {"Daytime","Night","DIY","DayWithNight"}, "Night");
private final IntegerValue time = new IntegerValue("DIYTime", 13000, 0, 24000);
private final IntegerValue don = new IntegerValue("DayWithNight", 10, 1, 24000);
int a;
MSTimer Timer = new MSTimer();
@Override
public void onEnable() {
a = 0;
}
@EventTarget
public void onPacket(PacketEvent event) {
final Packet<?> packet = event.getPacket();
if (packet instanceof S03PacketTimeUpdate) {
event.cancelEvent();
}
}
@EventTarget
public void onUpdate(UpdateEvent event) {
if (this.Timer.hasPassed(1F)) {
++this.a;
this.a = this.a + don.get();
this.Timer.reSet();
}
if (a >= 24000) {
a = 0;
}
if(modeValue.get().equalsIgnoreCase("Daytime")){
mc.theWorld.setWorldTime((long)1000);
}
if(modeValue.get().equalsIgnoreCase("Night")){
mc.theWorld.setWorldTime((long)16000);
}
if(modeValue.get().equalsIgnoreCase("DIY")){
mc.theWorld.setWorldTime(time.get());
}
if(modeValue.get().equalsIgnoreCase("DayWithNight")){
mc.theWorld.setWorldTime(a);
}
}
}
// NOTE (AI): AquaVit's LiquidSense is a renamed LiquidBounce fork (net.ccbluex.liquidbounce event/value packages with me.AquaVit.liquidSense module packages). The module is the same cancel-and-pin shape as the rest of the Ambiance family; the DayWithNight mode is the only cycling implementation in the corpus.anticheat Anti-Cheat Checks
The time update packet is a server-authoritative clock correction: two longs broadcast once per second, with the doDaylightCycle gamerule folded into the sign of worldTime. Server-side anticheats never reference it. The corpus sweep for the packet names S03PacketTimeUpdate and PacketPlayOutTimeUpdate returns zero hits, and the keyword pass over 'Time' only surfaces timer utilities, TimeUtil classes and tick-delta heuristics, none of which read this packet. The client never reports its displayed time back, so the cancel-and-pin time modules are invisible on the wire and no check in any cloned anticheat targets them.
Related Packets
Wiki Cross-Reference
Time runs at 20 ticks per second with 24000 ticks per day, and time of day is the world time modulo 24000.
The default server increments world time by 20 every second.
MCP 1.8.9 S03PacketTimeUpdate implements Packet
1.8.9 callers: MinecraftServer.updateTimeLightAndEntities sends new S03PacketTimeUpdate (line 762) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/server/MinecraftServer.java
Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.
Vanilla Internals
Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.
Module Analyses Using S03PacketTimeUpdate
Full source walkthroughs of the modules and anti-cheats that use this packet.