Tenacity 6.0 AutoClicker module 2 files, 185 lines

Tenacity 6.0 AutoClicker: Full Source Analysis

Tenacity 6.0's AutoClicker is a two-mode ghost module that drives the vanilla click path once per delay interval while the attack key is held.

dev/tenacity/module/impl/combat/AutoClicker.java · GitHub source ↗

Published 2026-08-13 · Updated 2026-08-13

Packets This Module Uses

Analysis

Overview

Tenacity 6.0's AutoClicker is a two-mode ghost module that drives the vanilla click path once per delay interval while the attack key is held. The Normal mode computes a delay from the Min and Max CPS settings and calls mc.clickMouse(), which sends the C0A arm-swing packet alongside the C02 attack in one press, after resetting mc.leftClickCounter to 0 so every click is treated as a fresh press. The Drag mode runs a 1200ms click burst followed by a 300ms pause while the key is held. The delay math is the notable detail: the settings are labelled 9 to 11 CPS, but the formula (20 minus cps) times 20 produces a uniform random delay between 180 and 220 milliseconds, so the module actually clicks at 4.5 to 5.5 CPS, roughly half the labelled rate, and that low rate is what keeps it under the statistical gates of the autoclicker checks below.

Architecture

The module is a ModeSetting plus four settings and three TimerUtil fields. The MotionEvent consumer runs on the pre-motion pass only, so the click decision happens once per client tick before the movement packet is built. The Normal branch checks that the attack key is held, then fires when the click timer passes the random delay; the Drag branch gates the same click timer inside a 1200ms drag window that resets after a 300ms delay. Every click path sets mc.leftClickCounter to 0 before calling mc.clickMouse(), which resets the vanilla click-rate limiter so the synthetic presses are treated as fresh mouse-downs.

The delay math

The delay is computed once per tick: maxValue is (20 minus maxCPS) times 20 and minValue is (20 minus minCPS) times 20, and MathUtil.nextInt(minValue, maxValue) picks a uniform integer between them. With the defaults of 9 and 11 that is a delay between 180 and 220 milliseconds, which is 4.5 to 5.5 clicks per second, not the 9 to 11 the labels promise, and the formula is inverted: the Min CPS setting produces the longer delay. The second click check at cps minus 2 milliseconds is effectively dead code, because its 2ms window between the two thresholds is never sampled at the client's roughly 50ms tick granularity, so each cycle emits exactly one click.

Click path and drag cycle

mc.clickMouse() runs the full vanilla click: against an entity it calls attackEntity (C02 use-entity with the attack action plus the swing), against a block it starts a dig, and against air it swings the arm, and every path sends C0APacketAnimation, which is the wire surface the server-side autoclicker checks read. The Drag mode clicks at the same delay inside a 1200ms window, then idles for 300ms before the next burst, so the C0A stream becomes periodic bursts of about six clicks followed by silence, a cadence a periodicity detector can lock onto if the click rate crosses the detector's gates.

source AutoClicker.java (module)

AutoClicker.java99 lines · JavaOriginal ↗
1
package dev.tenacity.module.impl.combat;
2
3
import dev.tenacity.event.IEventListener;
4
import dev.tenacity.event.impl.player.MotionEvent;
5
import dev.tenacity.event.impl.player.UpdateEvent;
6
import dev.tenacity.module.Module;
7
import dev.tenacity.module.ModuleCategory;
8
import dev.tenacity.setting.impl.BooleanSetting;
9
import dev.tenacity.setting.impl.ModeSetting;
10
import dev.tenacity.setting.impl.NumberSetting;
11
import dev.tenacity.util.misc.MathUtil;
12
import dev.tenacity.util.misc.TimerUtil;
13
14
public class AutoClicker extends Module {
15
16
    private final ModeSetting mode = new ModeSetting("Mode", "Normal", "Drag");
17
18
    // Normal
19
    private final NumberSetting minCPS = new NumberSetting("Min CPS", 9, 0, 20, 0.01);
20
    private final NumberSetting maxCPS = new NumberSetting("Max CPS", 11, 0, 20, 0.01);
21
22
    // Drag
23
    private final NumberSetting time = new NumberSetting("Duration (MS)", 1200, 100, 2000, 100);
24
    private final NumberSetting delay = new NumberSetting("Delay (MS)", 300, 100, 1000, 100);
25
26
    // Randomization
27
    private final BooleanSetting randomizecps = new BooleanSetting("Randomize CPS", false);
28
    private final TimerUtil clickTimer = new TimerUtil();
29
    private final TimerUtil dragTimer = new TimerUtil();
30
    private final TimerUtil delayTimer = new TimerUtil();
31
32
    public AutoClicker() {
33
        super("AutoClicker", "Clicks for you.", ModuleCategory.COMBAT);
34
        minCPS.addParent(mode, setting -> setting.isMode("Normal"));
35
        maxCPS.addParent(mode, setting -> setting.isMode("Normal"));
36
        time.addParent(mode, setting -> setting.isMode("Drag"));
37
        delay.addParent(mode, setting -> setting.isMode("Drag"));
38
        initializeSettings(mode, minCPS, maxCPS, time, delay);
39
    }
40
41
    private final IEventListener<MotionEvent> onMotion = event -> {
42
        if(event.isPost()) return;
43
44
        if(minCPS.getCurrentValue() > maxCPS.getCurrentValue()) {
45
            minCPS.setCurrentValue(maxCPS.getCurrentValue());
46
        }
47
48
        if(maxCPS.getCurrentValue() < minCPS.getCurrentValue()) {
49
            maxCPS.setCurrentValue(minCPS.getCurrentValue());
50
        }
51
52
        final int maxValue = (int) ((minCPS.getMaxValue() - maxCPS.getCurrentValue()) * 20);
53
        final int minValue = (int) ((minCPS.getMaxValue() - minCPS.getCurrentValue()) * 20);
54
        long cps = MathUtil.nextInt(minValue, maxValue);
55
56
        switch (mode.getCurrentMode()) {
57
            case "Normal": {
58
                if(!mc.gameSettings.keyBindAttack.isKeyDown()) {
59
                    clickTimer.reset();
60
                    return;
61
                }
62
                if(clickTimer.hasTimeElapsed(cps, true)) {
63
                    if(mc.gameSettings.keyBindUseItem.isKeyDown()) return;
64
                    mc.leftClickCounter = 0;
65
                    mc.clickMouse();
66
                }
67
                if(clickTimer.hasTimeElapsed(cps -2, true)) {
68
                    if(mc.gameSettings.keyBindUseItem.isKeyDown()) return;
69
                    mc.leftClickCounter = 0;
70
                    mc.clickMouse();
71
                }
72
                break;
73
            }
74
75
            case "Drag": {
76
                if(!mc.gameSettings.keyBindAttack.isKeyDown()) {
77
                    clickTimer.reset();
78
                    dragTimer.reset();
79
                    delayTimer.reset();
80
                    return;
81
                }
82
83
                if(dragTimer.hasTimeElapsed((long) time.getCurrentValue(), false)) {
84
                    if(delayTimer.hasTimeElapsed((long) delay.getCurrentValue(), true)) {
85
                        dragTimer.reset();
86
                    }
87
                } else {
88
                    delayTimer.reset();
89
90
                    if(clickTimer.hasTimeElapsed(cps, true)) {
91
                        mc.leftClickCounter = 0;
92
                        mc.clickMouse();
93
                    }
94
                }
95
            }
96
        }
97
    };
98
    private final IEventListener<UpdateEvent> onUpdateEvent = event -> setSuffix(mode.getCurrentMode());
99
}

What this file does

The module holds the entire click decision. The MotionEvent consumer computes the random delay, checks the attack key, resets mc.leftClickCounter, and calls mc.clickMouse() through the vanilla click path, which emits the C0A swing alongside the C02 attack. The Drag branch wraps the same click in the burst-and-pause cycle driven by three timers. The setting guards (min clamped to max and back) run every tick and keep the delay range sane.

The second click check at cps minus 2ms is the honest dead-code detail: after the first check resets the click timer, the second check can only fire inside a 2ms window that a 50ms tick loop never samples, so it never produces a click in practice.

source MathUtil.java (random delay source)

MathUtil.java86 lines · JavaOriginal ↗
1
package dev.tenacity.util.misc;
2
3
import net.minecraft.client.Minecraft;
4
import net.minecraft.util.MathHelper;
5
6
import java.math.BigDecimal;
7
import java.security.SecureRandom;
8
import java.text.DecimalFormat;
9
10
public final class MathUtil {
11
12
    public static final DecimalFormat DF_0 = new DecimalFormat("0");
13
    public static final DecimalFormat DF_1 = new DecimalFormat("0.0");
14
    public static final DecimalFormat DF_2 = new DecimalFormat("0.00");
15
16
    public static final SecureRandom SECURE_RANDOM = new SecureRandom();
17
18
    private MathUtil() {
19
    }
20
21
    public static int getRandomInRange(final int min, final int max) {
22
        return (int) ((Math.random() * (max - min)) + min);
23
    }
24
25
    public static double[] yawPos(final double value) {
26
        return yawPos(Minecraft.getMinecraft().thePlayer.rotationYaw * MathHelper.deg2Rad, value);
27
    }
28
29
    public static double[] yawPos(final float yaw, final double value) {
30
        return new double[]{-MathHelper.sin(yaw) * value, MathHelper.cos(yaw) * value};
31
    }
32
33
    public static float getRandomInRange(final float min, final float max) {
34
        return SECURE_RANDOM.nextFloat() * (max - min) + min;
35
    }
36
37
    public static double getRandomInRange(final double min, final double max) {
38
        return min == max ? min : SECURE_RANDOM.nextDouble() * (max - min) + min;
39
    }
40
41
    public static double lerp(final double old, final double newVal, final double amount) {
42
        return (1.0 - amount) * old + amount * newVal;
43
    }
44
45
    public static Double interpolate(final double oldValue, final double newValue, final double interpolationValue){
46
        return (oldValue + (newValue - oldValue) * interpolationValue);
47
    }
48
49
    public static float interpolateFloat(final float oldValue, final float newValue, final double interpolationValue){
50
        return interpolate(oldValue, newValue, (float) interpolationValue).floatValue();
51
    }
52
53
    public static int interpolateInt(final int oldValue, final int newValue, final double interpolationValue){
54
        return interpolate(oldValue, newValue, (float) interpolationValue).intValue();
55
    }
56
57
    public static float calculateGaussianValue(final float x, final float sigma) {
58
        final double output = 1.0 / Math.sqrt(2.0 * Math.PI * (sigma * sigma));
59
        return (float) (output * Math.exp(-(x * x) / (2.0 * (sigma * sigma))));
60
    }
61
62
    public static float getRandomFloat(final float max, final float min) {
63
        return SECURE_RANDOM.nextFloat() * (max - min) + min;
64
    }
65
66
    public static int getNumberOfDecimalPlace(final double value) {
67
        final BigDecimal bigDecimal = new BigDecimal(value);
68
        return Math.max(0, bigDecimal.stripTrailingZeros().scale());
69
    }
70
71
    public static double clamp(double value, final double min, final double max) {
72
        value = Math.max(min, value);
73
        value = Math.min(max, value);
74
        return value;
75
    }
76
77
    public static double roundToHalf(double d) {
78
        return Math.round(d * 2) / 2.0;
79
    }
80
81
    public static int nextInt(int min, int max) {
82
        return (int) ((Math.random() * (max - min)) + min);
83
    }
84
85
86
}

What this file does

MathUtil.nextInt is the random source behind the click timing. It casts Math.random() times (max minus min) plus min to an int, so the delay is uniformly distributed on the interval from minValue to maxValue with max exclusive, which is what gives the click train its constant 180 to 220ms inter-click interval. The uniform spread is the statistical tell: a human click train has a skewed, high-variance interval distribution, while this one has a hard 40ms spread with no long-tail outliers.

The same utility serves the rest of the Tenacity module set with its random helpers, gaussian sampler and interpolation methods, so the file is shared infrastructure rather than click-specific code; the nextInt method is the only part the AutoClicker uses.

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 ClickACF (click autocorrelation)

ClickACF.java89 lines · Java
1
/*
2
 * This file is part of Hawk Anticheat.
3
 * Copyright (C) 2018 Hawk Development Team
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
 */
18
19
package me.islandscout.hawk.check.interaction;
20
21
import me.islandscout.hawk.check.Cancelless;
22
import me.islandscout.hawk.check.CustomCheck;
23
import me.islandscout.hawk.event.ArmSwingEvent;
24
import me.islandscout.hawk.event.Event;
25
import me.islandscout.hawk.event.MoveEvent;
26
27
import java.util.ArrayList;
28
import java.util.Arrays;
29
import java.util.List;
30
31
public class ClickACF extends CustomCheck implements Cancelless {
32
33
    private static final double ACF_THRESHOLD = 0.87;
34
    private static final int ACF_PERIOD_THRESHOLD = 9;
35
    private static final double MIN_ACF_0_NORM = 13; //Normalized acf(0)
36
    private static final int SAMPLES = 30;
37
    private List<Integer> clicks;
38
    private int clicksThisTick;
39
40
    public ClickACF() {
41
        super("clickacf", true, -1, 0, 0.99, 5000, "%player% failed click auto-correlation, VL: %vl%", null);
42
        this.clicks = new ArrayList<>();
43
    }
44
45
    @Override
46
    protected void check(Event event) {
47
        if(event instanceof MoveEvent) {
48
49
            this.clicks.add(this.clicksThisTick);
50
            this.clicksThisTick = 0;
51
52
            if(this.clicks.size() >= SAMPLES) {
53
54
                System.out.println("clicks: " + Arrays.toString(this.clicks.toArray()));
55
56
                double[] acf = new double[SAMPLES];
57
58
                for(int i = 0; i < SAMPLES; i++) {
59
60
                    double dot = 0;
61
                    for(int j = 0; j < SAMPLES; j++) {
62
63
                        dot += this.clicks.get(j) * this.clicks.get((j + i) % this.clicks.size());
64
                    }
65
66
                    if(i == 0 && dot / (SAMPLES / 20D) < MIN_ACF_0_NORM) { //enforce minimum clickrate
67
                        System.out.println("CPS not high enough: " + dot / (SAMPLES / 20D));
68
                        break;
69
                    }
70
71
                    acf[i] = dot;
72
73
                    if(i > 0 && i <= ACF_PERIOD_THRESHOLD && dot > acf[0] * ACF_THRESHOLD) {
74
                        System.out.println("PATTERN DETECTED! threshold: " + (acf[0] * ACF_THRESHOLD) + ", period: " + i);
75
                    }
76
                }
77
78
                this.clicks.clear();
79
80
                System.out.println("ACF: " + Arrays.toString(acf));
81
            }
82
83
84
85
        } else if(event instanceof ArmSwingEvent) {
86
            this.clicksThisTick++;
87
        }
88
    }
89
}

How it counteracts this module

Hawk's ClickACF runs an autocorrelation over the per-tick click count. Every MoveEvent appends the current tick's click count to a 30-sample window, and every arm swing increments the count for the current tick. When the window fills, the check computes the autocorrelation at lags 1 to 30 and flags when a lag between 1 and the ACF_PERIOD_THRESHOLD of 9 exceeds 0.87 times the zero-lag value, which is the signature of a periodic click train. Before the periodicity scan it enforces a minimum click rate: the normalized zero-lag value must reach MIN_ACF_0_NORM of 13, which requires roughly 13 sustained clicks per second.

The module's real rate of 4.5 to 5.5 CPS sits far below that gate, so the check prints the "CPS not high enough" bail and never evaluates the periodicity of the train. The honest tolerance is the low rate itself: a human-range click speed with a small uniform jitter is exactly the profile this check is tuned not to evaluate. If the user raised the settings to 13 CPS or higher, the uniform 180 to 220ms cadence would produce a strong autocorrelation peak at a period of 4 to 5 ticks and the check would flag.

anticheat ClickStats (inter-click interval histogram)

ClickStats.java100 lines · Java
1
/*
2
 * This file is part of Hawk Anticheat.
3
 * Copyright (C) 2018 Hawk Development Team
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License as published by
7
 * the Free Software Foundation, either version 3 of the License, or
8
 * (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
17
 */
18
19
package me.islandscout.hawk.check.interaction;
20
21
import me.islandscout.hawk.HawkPlayer;
22
import me.islandscout.hawk.check.Cancelless;
23
import me.islandscout.hawk.check.CustomCheck;
24
import me.islandscout.hawk.event.ArmSwingEvent;
25
import me.islandscout.hawk.event.Event;
26
import me.islandscout.hawk.util.Debug;
27
28
import java.util.*;
29
30
public class ClickStats extends CustomCheck implements Cancelless {
31
32
    //Impossible to swing twice in a tick, unless attacking or hitting block or in creative
33
    // It has to do with the stupid "leftClickCounter" in Minecraft.java
34
35
    private Map<UUID, Map<Integer, Integer>> histogramMap;
36
    private Map<UUID, Long> lastClickTimeMap;
37
    private Map<UUID, Integer> totalClicksMap;
38
39
    private static final int MAX_PERIOD = 4;
40
    private static final int SAMPLES = 80;
41
42
    public ClickStats() {
43
        super("clickstats", true, -1, 0, 0.99, 5000, "%player% failed click statistics, VL: %vl%", null);
44
        this.histogramMap = new HashMap<>();
45
        this.lastClickTimeMap = new HashMap<>();
46
        this.totalClicksMap = new HashMap<>();
47
    }
48
49
    @Override
50
    protected void check(Event event) {
51
        if(event instanceof ArmSwingEvent) {
52
53
            HawkPlayer pp = event.getHawkPlayer();
54
55
            if(!lastClickTimeMap.containsKey(pp.getUuid())) {
56
                lastClickTimeMap.put(pp.getUuid(), pp.getCurrentTick());
57
                return;
58
            }
59
60
            long currTime = pp.getCurrentTick();
61
            long lastClickTime = lastClickTimeMap.getOrDefault(pp.getUuid(), currTime);
62
63
            int dTicks = (int) (currTime - lastClickTime);
64
65
            if(dTicks <= MAX_PERIOD) {
66
                Map<Integer, Integer> histogram = histogramMap.getOrDefault(pp.getUuid(), new HashMap<>());
67
68
                histogram.put(dTicks, histogram.getOrDefault(dTicks, 0) + 1);
69
70
                int totalClicks = totalClicksMap.getOrDefault(pp.getUuid(), 0) + 1;
71
                totalClicksMap.put(pp.getUuid(), totalClicks);
72
73
                if (totalClicks >= SAMPLES) {
74
75
                    totalClicksMap.put(pp.getUuid(), 0);
76
77
                    //Debug.broadcastMessage("CLICKER HISTOGRAM");
78
                    for(int i = 0; i <= MAX_PERIOD; i++) {
79
80
                        StringBuilder sb = new StringBuilder(i + ": ");
81
82
                        for(int j = 0; j < histogram.getOrDefault(i, 0); j++) {
83
                            sb.append("*");
84
                        }
85
86
                        //Debug.broadcastMessage(sb.toString());
87
                    }
88
89
                    histogram.clear();
90
                }
91
92
                histogramMap.put(pp.getUuid(), histogram);
93
94
95
            }
96
97
            lastClickTimeMap.put(pp.getUuid(), currTime);
98
        }
99
    }
100
}

How it counteracts this module

ClickStats is a histogram of inter-click intervals measured in ticks. Each arm swing computes the gap since the previous swing, and gaps up to MAX_PERIOD of 4 ticks are tallied into per-gap buckets until SAMPLES of 80 accumulate, then the histogram resets. The module's 200ms inter-click gap is exactly 4 ticks at 20 TPS, so every interval lands in the same bucket, which is the degenerate single-column histogram the check was written to expose. The cloned file is honest about its own state: the histogram print and the punish call are commented out, so in this build the check only collects and never acts.

The takeaway is that the module's interval distribution is detectably non-human (a constant 4-tick gap with at most one tick of jitter), but the shipped copy of the check has no active flag path, so on a server running this build the histogram is observational only.

anticheat AutoClickerA (movement-sample statistics)

AutoClickerA.java55 lines · Java
1
package xyz.elevated.frequency.check.impl.autoclicker;
2
3
import com.google.common.collect.Lists;
4
import xyz.elevated.frequency.check.CheckData;
5
import xyz.elevated.frequency.check.type.PacketCheck;
6
import xyz.elevated.frequency.data.PlayerData;
7
import xyz.elevated.frequency.util.MathUtil;
8
import xyz.elevated.frequency.util.Pair;
9
import xyz.elevated.frequency.wrapper.impl.client.WrappedPlayInArmAnimation;
10
import xyz.elevated.frequency.wrapper.impl.client.WrappedPlayInFlying;
11
12
import java.util.Deque;
13
import java.util.List;
14
15
@CheckData(name = "AutoClicker (A)")
16
public final class AutoClickerA extends PacketCheck {
17
18
    private int movements = 0;
19
    private final Deque<Integer> samples = Lists.newLinkedList();
20
21
    public AutoClickerA(final PlayerData playerData) {
22
        super(playerData);
23
    }
24
25
    @Override
26
    public void process(final Object object) {
27
        if (object instanceof WrappedPlayInArmAnimation) {
28
            final boolean valid = playerData.getCps().get() > 6.5
29
                    && movements < 4 && !playerData.getActionManager().getDigging().get() && !playerData.getActionManager().getPlacing().get();
30
31
            // If the movement are not incredibly low and the player isn't digging
32
            if (valid) samples.add(movements);
33
34
            if (samples.size() == 20) {
35
                // Get the outliers properly from the math utility
36
                final Pair<List<Double>, List<Double>> outlierPair = MathUtil.getOutliers(samples);
37
38
                // Get the deviation from the math utility and the outliers
39
                final double deviation = MathUtil.getStandardDeviation(samples);
40
                final double outliers = outlierPair.getX().size() + outlierPair.getY().size();
41
42
                // Low deviation and low outliers
43
                if (deviation < 2.d && outliers < 2) fail();
44
45
                // Clear the list
46
                samples.clear();
47
            }
48
49
            // Reset the movements
50
            movements = 0;
51
        } else if (object instanceof WrappedPlayInFlying) {
52
            ++movements;
53
        }
54
    }
55
}

How it counteracts this module

Frequency's AutoClickerA measures movements between swings. Each C0A (WrappedPlayInArmAnimation) samples the number of C03 movements since the previous swing, but only when the gate passes: measured CPS above 6.5, fewer than 4 movements since the last swing, and the player not digging or placing. When 20 samples accumulate, the check computes the standard deviation and the outlier count, and a deviation below 2 with fewer than 2 outliers fails.

The gate is the module's escape hatch: at 4.5 to 5.5 real CPS, the measured click rate stays under the 6.5 CPS requirement, so no samples are ever added and the check never accumulates a window. The bypass surface is narrow: push the settings toward 13 to 14 CPS and the gate opens, and then the uniform 180 to 220ms delay produces a deviation of a few milliseconds and zero outliers, which fails the deviation and outlier test on the first full window.

anticheat AutoClickerA (no-drops counter)

AutoClickerA.java40 lines · Java
1
package us.skidrevenant.azure.check.checks.combat.autoclicker;
2
3
import net.minecraft.server.v1_8_R3.Packet;
4
import net.minecraft.server.v1_8_R3.PacketPlayInFlying;
5
import us.skidrevenant.azure.check.Check;
6
import us.skidrevenant.azure.stats.PlayerStats;
7
8
/**
9
 * @author SkidRevenant
10
 * at 28/05/2018
11
 */
12
public class AutoClickerA extends Check {
13
14
    private int threshold;
15
16
    public AutoClickerA(PlayerStats player) {
17
        super(player);
18
    }
19
20
    @Override
21
    public void onPacketReceiving(Class<? extends Packet> type, Packet packet) {
22
        if (player.isDigging()) {
23
            threshold /= 4;
24
            return;
25
        }
26
27
        if (packet instanceof PacketPlayInFlying) {
28
            if (player.getSwingDelay() <= 100L) { //no cps drops, proably cheating
29
                if (++threshold > 100) { //TODO: find appropriate threshold
30
                    onViolation("AutoClicker Type A", 60000L, 0);
31
32
                    threshold = 0;
33
                }
34
35
            } else {
36
                threshold /= 4;
37
            }
38
        }
39
    }
40
}

How it counteracts this module

Azure's AutoClickerA is a no-drops counter. PlayerStats accumulates swingDelay by adding 50ms for every C03 movement and resetting it to 0 on each swing, so the value at any moment is the time since the last click. On every C03 the check tests that delay: while it stays at or under 100 milliseconds, a threshold increments, and once it passes 100 consecutive no-drop movements the check fires with a 60-second cooldown. Any swing gap above 100ms divides the threshold by 4, and digging divides it by 4 as well.

The module's 180 to 220ms inter-click gap is comfortably above the 100ms no-drop window, so the threshold decays on every cycle and the counter never approaches 100. This is the same tolerance story as the other statistical checks: the check is tuned for 10-plus-CPS autoclickers with millisecond-stable intervals, and the module's half-rate uniform jitter keeps its counter at zero.

← Back to Analysis Hub