Sigma 4.11's Timer is a one-line tick-rate scaler. Every EventTick it writes the GAMESPEED setting into mc.timer.timerSpeed, and onEnable and onDisable both restore 1. The setting defaults to 0.3 with a range of 0.1 to 5 in 0.05 steps, so the module is tuned for slow motion out of the box, but the top of the range scales the whole game loop to five times the vanilla rate. Because the write is re-asserted on every tick, the movement packet stream follows the multiplier exactly.
Tick-rate scaling
The field is the multiplier in the fork's vanilla Timer. updateTimer() clamps the frame delta to [0, 1] and accumulates elapsedPartialTicks += frameDelta * timerSpeed * ticksPerSecond (line 99 of the Sigma fork's net/minecraft/util/Timer.java), then drains the integer part into elapsedTicks, which the main loop executes as game ticks. EventTick fires once per client tick, so the module's handler runs every tick and the write is self-correcting against any external reset of the field. A speed of 2 executes roughly 40 game ticks per real second; the 5 maximum executes about 100.
Wire fingerprint
Each accelerated tick runs the fork's EntityPlayerSP update, which fires EventUpdate and then sends one C03 variant per tick based on the position and look deltas, so the movement packet rate scales linearly with the multiplier. Keepalive echoes and transaction confirmations stay bound to the server's own S00 and S32 cadence. Because the whole loop accelerates, non-movement timers ride along too: eating, natural regen and potion durations all complete faster, which is the module's value beyond raw speed.
Detection surface
The checks that catch a speed-up live on the C00 and C0F corpora. NCP MorePackets caps the movement packet rate at 22 per second with a 20 ideal. NCP KeepAliveFrequency keeps the keepalive echo ledger that other checks gate on. Frequency TimerA measures the inter-movement delay against the 50ms tick expectation. Grim Timer accrues 50ms of balance per movement packet against a clock anchored to the C0F transaction stream. The sub-1 default slips under the one-directional clock checks, which is exactly why the module ships at 0.3.
The entire module is this file. The constructor registers one setting under the key GAMESPEED with default 0.3, description 'The value the mc timer will be set to.', an increment of 0.05 and a range of 0.1 to 5. onEnable and onDisable both write 1F into mc.timer.timerSpeed, and the handler registered for EventTick assigns the setting value to the field on every tick.
The module has no other state and no mode logic; it is a pure pass-through from the setting to the tick clock. The default of 0.3 makes the module a slow-motion utility on first enable, which slows the game loop enough to stretch timing-sensitive actions, and raising the setting past 1 turns it into the classic speed-up. Because the write is unconditional on every tick, the value survives any concurrent module that also touches the field only until the next EventTick.
This is the vanilla class the module mutates, shipped in the Sigma 4.11 fork. updateTimer() takes the system-clock delta, syncs the high-resolution clock once per second, clamps the frame delta to [0, 1], and accumulates elapsedPartialTicks += frameDelta * timerSpeed * ticksPerSecond (line 99), then moves the integer part into elapsedTicks capped at 10. The timerSpeed field is the only thing the module writes, and because the field multiplies the whole accumulation, a speed of 2 doubles the number of game ticks per real second.
The class also documents the multiplier contract the module relies on: the field comment says 0.5 makes the game run at half speed, and the constructor takes ticksPerSecond = 20, the vanilla tick rate. The 10-tick cap bounds how many ticks a single frame can produce, so extreme speeds still spread their tick debt across frames rather than bursting all at once.
anticheat Countering Checks
The anticheat code that detects or counters the techniques this module uses. Full source, with the detection mechanism explained below each box.
anticheat MorePackets (movement packet rate)
MorePackets.java127 lines · Java
1
/*
2
* This program is free software: you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation, either version 3 of the License, or
5
* (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* TODO: Harmonize with MovingUtil.getApplicableSetBackLocation
108
* (somehow include the desired set back type / loc / context).
109
*/
110
return data.hasMorePacketsSetBack() ? data.getMorePacketsSetBack() : data.getSetBack(to); // TODO
111
}
112
}
113
else if (allowSetSetBack && data.getMorePacketsSetBackAge() > cc.morePacketsSetBackAge) {
114
// Update the set back location. (CHANGED to only update, if not a violation.)
115
// (Might update whenever newTo == null)
116
data.setMorePacketsSetBack(from);
117
if (debug) {
118
debug(player, "Update set back (morepackets) to from.");
119
}
120
}
121
122
// No set back.
123
return null;
124
125
}
126
127
}
How it counteracts this module
MorePackets counts serverbound movement packets content-blind. MovingListener invokes morePackets.check on every processed move, feeding data.morePacketsFreq, an ActionFrequency with 500ms buckets (MovingData line 321), and the window accumulator compares against cc.morePacketsEPSMax, default 22 packets per second with 20 ideal (DefaultConfig lines 458-459). A second ActionFrequency(12, 5000) backs a burst path with 15 packets per half second, 10 direct-burst events and 95 burst events per minute (MovingData line 322, DefaultConfig lines 460-462), and a violation returns the morePacketsSetBack location seeded from the SurvivalFly set-back.
Sigma's range makes this the bluntest counter. A speed of 2 raises the C03 stream to about 40 packets per second, nearly double the ceiling, so the window accumulator runs positive and the default actions cancel at vl > 2. At the 5 maximum the stream reaches roughly 100 packets per second, which trips the half-second burst path on the first burst bucket. The sub-1 half of the range is the safe zone: 0.3 emits about 6 packets per second, far under the ideal, and the idle window burns the excess, so the default configuration is invisible to the rate check. The check never inspects position or content, so the module cannot shed rate by changing what it sends.
KeepAliveFrequency is the ledger over the C00 stream and the gate for the inter-delay timer checks. Every incoming echo is timestamped into data.keepAliveFreq, an ActionFrequency with 20 one-second buckets, the check bails while a reply is still expected unless the id is a duplicate, and a newest-bucket score above 1 flags a violation. The server issues S00 at its own cadence and the client answers each one, so a timer speed-up does not raise the echo rate by itself.
The module trips the ledger only in its failure modes: the accelerated loop can drain a batched delivery of keepalives into one tick, landing several echoes in the same second, or a reply can arrive with a duplicate or aged-out id once the request window no longer recognizes it. Its structural role for the timer family is the keepalive-accept gate on Frequency TimerA: that check refuses to run unless a keepalive was accepted for the current server tick. Sigma's Timer never touches the keepalive stream, so the ledger stays clean and the timer checks stay armed.
private final MovingStats movingStats = new MovingStats(20);
14
15
private long lastFlying = 0L;
16
private long allowance = 0;
17
18
public TimerA(final PlayerData playerData) {
19
super(playerData);
20
}
21
22
@Override
23
public void process(final Object object) {
24
final boolean flying = object instanceof WrappedPlayInFlying;
25
26
if (flying) {
27
// Get the server ticks and the current time for the check processing
28
final int serverTicks = Frequency.INSTANCE.getTickManager().getTicks();
29
final long now = System.currentTimeMillis();
30
31
/*
32
* We want to make sure the player is not exempt from any of the actions below.
33
* Additionally, we want to ensure that the player is not lagged out and accepted a keepalive.
34
* Thankfully, we shouldn't have any bypasses because of this because of PingSpoof.
35
*/
36
final boolean exempt = this.isExempt(ExemptType.TPS, ExemptType.TELEPORTING, ExemptType.LAGGING);
37
final boolean accepted = playerData.getConnectionManager().getKeepAliveTime(serverTicks).isPresent();
38
39
/*
40
* Basic theory is that the player is going to deviate through 50ms without many changes to that
41
* basic range of [48, 50]. So we're running a deviation check to check how much the player has deviated
42
* from the basic limit of 50ms (square-root of 50 is 7.07). We're also making sure the player is actually
43
* increasing speed through an allowance that accounts for the tick expected versus the tick received.
44
*/
45
handle: {
46
if (exempt || !accepted) break handle;
47
48
// Get the delay from the current and the last flying packet
49
final long delay = now - lastFlying;
50
51
// Add the delay to the MovingStats to analyze our input
52
movingStats.add(delay);
53
54
/*
55
* As mentioned above, the basic threshold of the player is the square-root of 50. Because
56
* the expected tick should always be 50ms. To check how much the player has deviated from that
57
* single point, we're using it as a threshold value in the deviation check below.
58
*/
59
final double threshold = 7.07;
60
final double deviation = movingStats.getStdDev(threshold);
61
62
// We're making sure the deviation check processed and the deviation is smaller than the threshold.
63
if (deviation < threshold && !Double.isNaN(deviation)) {
64
/*
65
* I am sure many of you have seen this before, and it's essentially the most basic version of
66
* a balance / allowance check. We're increasing the allowance with the expected amount of 50,
67
* and we're subtracting from it the actual delay received. This will act as our "buffer" system.
68
*/
69
allowance += 50;
70
allowance -= delay;
71
72
// Our previous threshold can act as one here too.
73
if (allowance > Math.floor(threshold)) fail();
74
}
75
76
else {
77
allowance = 0;
78
}
79
}
80
81
this.lastFlying = now;
82
}
83
}
84
}
How it counteracts this module
Frequency TimerA measures the delay between consecutive movement packets against the 50ms tick expectation. Each flying packet adds the inter-packet delay to a MovingStats(20) window, and the check runs only when the player is not exempt (TPS, teleporting, lagging) and the connection manager has an accepted keepalive for the current server tick. When the delay standard deviation stays under 7.07, the square root of the 50ms expectation, an allowance accumulates 50ms per packet minus the measured delay, and a fail fires once the allowance exceeds the floor of that threshold.
A speed of 2 halves the inter-move delay to about 25ms, so every packet adds roughly 25ms to the allowance and the check fails on the first burst packet. The 5 maximum produces 10ms delays and fails just as fast. The sub-1 half of the range is the designed blind spot: 0.3 stretches delays to roughly 166ms, which drains the allowance instead of filling it, so the module's default slow motion passes this check by design. The keepalive gate is a hard dependency, so the check goes dormant if the echo stream is broken.
Grim's Timer accrues 50ms of balance for every counted movement packet and flags when the balance passes real time, cancelling the packet and running a setback. The clock is anchored to the player's transaction stream: knownPlayerClockTime is refreshed only after a movement is followed by a PONG or WINDOW_CONFIRMATION (the C0F), so ping fluctuations and server lag do not shift the baseline, and a limitFallBehind clamp holds the balance within clockDrift, default 120ms, of the player clock.
At 2x the balance accrues 50ms per packet while only 25ms of real time passes, so the surplus exceeds the 120ms drift within about five packets and the check flags immediately. The check is one-directional: a slow timer makes the balance fall behind, which the drift clamp absorbs, so the module's sub-1 range and its 0.3 default are invisible here. Standing still also stops the accrual, which is why idle periods before a speed phase do not accumulate.