Spicy AutoClicker: Full Source Analysis
Spicy's AutoClicker is a hold-to-click module driven from one EventUpdate handler and a single NumberSetting: APS (0-20, default 10).
Published 2026-08-12 · Updated 2026-08-12
Packets This Module Uses
Analysis
Overview
Spicy's AutoClicker is a hold-to-click module driven from one EventUpdate handler and a single NumberSetting: APS (0-20, default 10). A free-running millisecond Timer gates the swing/attack cycle at a fixed 1000/APS period - the module has no randomization knob at all - and the whole cycle only fires while the left mouse button is held (keyBindAttack.pressed). Every cycle starts with swingItem(), which emits the C0A arm swing; when the crosshair is over an entity the module sends a C02 ATTACK, and when the use-item key is held with a sword it wraps the attack in an unblock/re-block pair: a C07 RELEASE_USE_ITEM at BlockPos.ORIGIN to unwind the previous block, then blockHypixel, which re-raises the sword through sendPacketNoEvent with a C02 INTERACT carrying a rotation-derived aim vector, a second C02 INTERACT and a C08 block placement at BlockPos(-1, -1, -1) with facing 255 - the classic Hypixel sword-block spoof. Off-entity cycles fall back to blockHypixel or a vanilla sendUseItem, so holding left click against a wall keeps the block raised. The static blocking flag and the commented-out 'Swing + Autoblock' ModeSetting are the only remnants of a richer design.
Architecture
The module is a single EventUpdate branch with no event-type filtering beyond that. The gate is timer.hasTimeElapsed((long)(1000 / aps.getValue()), true): Timer.hasTimeElapsed returns true once now - lastMS exceeds the deadline and then resets lastMS to the current System.currentTimeMillis(), so the period is measured from the previous fire rather than from a scheduled slot and no phase error accumulates. Because the gate is only evaluated on each EventUpdate tick, the real-time deadline is quantized to the next 50ms tick boundary, so the packet spacing is the nominal period plus up to one tick of latency. At the default 10 APS the cycle lands every ~100ms; at 20 APS every ~50ms. The APS 0 edge case is worth noting: 1000 / 0.0 is +Infinity, the cast to long saturates to Long.MAX_VALUE, and hasTimeElapsed(Long.MAX_VALUE) can never be true, so the module is inert at 0. The hold gate is re-checked on every tick, so releasing the mouse stops the cycle on the next update with no release shaping - no trailing clicks, no anti-shortpress behavior.
Attack path and Hypixel autoblock
When objectMouseOver.typeOfHit is ENTITY, the module first unwinds a previous block: if the use-item key is held and the equipped item is an ItemSword, it sends C07PacketPlayerDigging RELEASE_USE_ITEM at BlockPos.ORIGIN and clears the blocking flag, then sends the C02PacketUseEntity ATTACK through the normal send queue. Immediately after, if the use-item key is still held with a sword, blockHypixel re-raises the block: it computes the target rotations with RotationUtils.getRotations, calls the module's private sendUseItem (a verbatim copy of the vanilla use-item path - syncCurrentPlayItem, then itemStackIn.useItemRightClick), and fires three packets through sendPacketNoEvent: a C02 INTERACT whose Vec3 is RotationUtils.getVectorForRotation(rotations[0], rotations[1]) (the aim vector itself used as the interact point), a plain C02 INTERACT, and a C08PacketPlayerBlockPlacement at BlockPos(-1, -1, -1) with facing 255 and the held item. sendPacketNoEvent bypasses the event bus, so these packets are invisible to module-level interception. Off-entity the same blockHypixel runs if the use-item key is held with a sword; otherwise, if not already blocking, the module calls mc.playerController.sendUseItem (the real vanilla player controller path) and sets blocking = true - so clicking at a wall keeps the sword raised instead of swinging at air. onEnable and onDisable only snapshot mc.thePlayer.isBlocking() into the static blocking field, which is why the flag survives across the toggle.
Timing fingerprint
The click train is a fixed-period timer with no randomness: inter-click deltas are 1000/APS plus tick-quantization noise only, so at any stable APS the interval is either constant or alternating between two tick multiples (15 APS, for instance, oscillates between 1- and 2-tick spacings as the 66.7ms deadline lands). The swing always precedes the attack by construction - swingItem() runs before the C02 in the same tick - giving a strict 1:1 swing-to-attack ratio with no swung-but-not-attacked and no attacked-without-swing packets. Against hold-gated assumptions the module behaves like a human holding the button, but the cadence itself is machine-regular, and the two Hawk checks in the countering section exist precisely to measure that regularity.
source AutoClicker.java (module)
| 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 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
What this file does
The whole module is 155 lines. The APS setting is declared at line 30 (min 0, max 20, default 10) and the Timer at line 54. onEnable/onDisable (lines 46-52) only record the blocking state, and the EventUpdate branch (lines 56-101) is the entire logic. The gate at line 60 combines the timer deadline with the hold check: hasTimeElapsed(1000 / aps, reset=true) and keyBindAttack.pressed must both pass. Line 66 swings the arm (swingItem sends C0APacketAnimation unconditionally in the 1.8 fork), and line 75 sends the C02 ATTACK for the hovered entity. The block unwinding lives at lines 70-73: when the use-item key is held with a sword, a C07 RELEASE_USE_ITEM at BlockPos.ORIGIN is queued and blocking is cleared before the attack. blockHypixel (lines 103-118) then re-raises the block: it marks blocking, runs the custom sendUseItem wrapper (lines 120-153, a copy of PlayerControllerMP.sendUseItem that guards SPECTATOR and null stacks, syncs the held slot, then calls useItemRightClick), and sends the three-packet spoof via sendPacketNoEvent - the C02 INTERACT with RotationUtils.getVectorForRotation aim vector (line 114), the plain C02 INTERACT (line 115), and the C08 at BlockPos(-1, -1, -1) facing 255 (line 116). The off-entity path (lines 81-91) either blockHypixels or, when not blocking, calls mc.playerController.sendUseItem and sets blocking = true. The commented-out autoblock mode (lines 31, 62-64, 95-97) shows the swing-plus-useItem variant was planned but disabled, which is why this module never fakes keyBindUseItem.pressed.
source Timer.java (cadence gate)
| 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 | |
What this file does
The Timer is a free-running wall-clock deadline, not a scheduler. lastMS is initialized to System.currentTimeMillis() at construction; hasTimeElapsed(time, reset=true) (lines 11-25) returns true when now - lastMS exceeds time and, because reset is passed true, immediately sets lastMS back to now. The period is therefore measured from the previous fire time: the next deadline is always 'one period after the last actual fire', so a delayed evaluation (a tick that ran late) does not cause a burst of catch-up clicks - there is no fixed schedule to catch up to. This is also why the AutoClicker's spacing carries tick quantization: the gate is only polled on EventUpdate, so a deadline that falls mid-tick only fires on the next tick, adding up to 50ms of latency to that interval. reset() is never called elsewhere by the module, so the only resets are the self-resets inside the gate. The same Timer class is used by Spicy's Killaura with a random float added to the period; the AutoClicker passes a plain 1000/APS, which is the entire difference between the two modules' timing fingerprints.
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 FightSpeed (CPS cap on tick deltas)
| 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 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
How it counteracts this module
Hawk's FightSpeed caps sustained click speed server-side. Every non-INTERACT InteractEntityEvent is timestamped with the HawkPlayer's current tick; the delta since the last attack is recorded only when it is at most RECORD_SENSITIVITY (4) ticks and appended to a per-player delta list. Once the list holds SAMPLES (default 10) deltas, the sum is converted to CPS as 1 / (sum / samples / 20), i.e. 20 divided by the average tick spacing, and an average above MAX_CPS (default 16) punishes with 'failed attack speed. CPS: %cps%'; otherwise the player is rewarded and the VL decays. Spicy's module feeds this check directly: at 20 APS the fixed 50ms period averages exactly 1 tick per click, so the reported CPS is 20 and every 10-click window trips the cap; at 15 APS the 1/2-tick alternation averages 1.33 ticks, reporting ~15 CPS, just under the line. The module's fixed period is the worst case for this check - a human's 15-20 CPS bursts would show far higher average tick spacings because real clicking does not sustain a 50ms period. The counter surface only opens at APS values whose tick-quantized average spacing stays under 1.25 ticks (roughly 12-16 APS sustained), and even there the fixed period is what the consistency check below exploits.
anticheat FightSpeedConsistency (stdev of window CPS)
| 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 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
How it counteracts this module
FightSpeedConsistency targets machine-regular cadence rather than raw speed. It records the same tick deltas (RECORD_THRESHOLD = 20 * (1 / MIN_CPS) + 1), averages them over SAMPLE_SIZE (default 20) clicks into one CPS value, collects 5 such window averages, and computes their standard deviation: a stdev below STDEV_THRESHOLD (default 0.05) punishes with 'failed click consistency. Autoclicker?', but only when the window average exceeds MIN_CPS (default 10). This is the exact check Spicy's fixed 1000/APS period cannot pass: every 20-click window at any stable APS averages to the same value, the stdev of the 5 samples is effectively zero, and the only requirement is that the module click above 10 CPS on average - which means any APS setting above 10 is an immediate flag, and even 10 APS sits on the boundary. The tick-quantization jitter (at 15 APS, windows mixing different 1/2-tick counts) is far too small to move the stdev above 0.05. There is no randomization setting in the module to raise it, which is the entire point of the comparison with Sigma's AutoClicker in the sibling analysis.
anticheat NoSwing (attack-without-swing ledger)
| 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 | |
How it counteracts this module
NCP's fight NoSwing enforces the swing-between-attacks contract: the FightListener increments data.noSwingCount on every attack (line 323-324) and decrements it on every PlayerAnimationEvent (line 800), and the check itself (lines 41-63) rewards a player whose first attack after a swing halves their VL, but a second consecutive attack with no swing in between resets the count, adds 1 to noSwingVL, and runs the configured actions (default cancel at VL thresholds). The ledger is per-entity-interaction, so it measures whether the C0A stream and the C02 stream are coupled. Spicy's module always swings: swingItem() runs in the same tick as the C02 ATTACK, so each attack re-arms the ledger and noSwingCount never exceeds 1 - this check stays clean against the module's normal configuration. It is still the canonical NCP C0A check and the relevant one for this packet class: it exists to catch the noSwing flavor of autoclickers and killauras that suppress the arm swing to dodge cadence checks, and any Spicy-side variant that disables the swing (or any other module on the client attacking without swinging) feeds this ledger directly. Its counter surface for Spicy's AutoClicker proper is nil, which is why the cadence checks above carry the real weight.
anticheat ClicksListener (C0A delay sampling feed)
| 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 | |
How it counteracts this module
Spartan's protocol layer samples the C0A stream itself. ClicksListener is a ProtocolLib PacketAdapter on Play.Client.ARM_ANIMATION and Play.Client.BLOCK_DIG: on every arm swing it computes delay = now - protocol.oldClickTime, and if the delay exceeds 150ms it clears protocol.clickBlocker; when not click-blocked it dispatches a PlayerLeftClickEvent carrying that delay through executeRunners - the event that the FastClicks check (registered for HackType.FAST_CLICKS in the same snapshot's Enums.java) consumes on the check thread - and then stamps oldClickTime. A BLOCK_DIG that is not an ABORT sets clickBlocker, suppressing click events while the player digs. The detector's input signal is therefore the per-C0A delay stream plus the dig-interaction state. Spicy's module produces the worst-case signal for any rate/regularity analysis on this feed: at a stable APS the delay between consecutive C0As is constant (plus tick quantization), a distribution a human never produces, and every swing carries its own C02, so the swing and attack rates are identical and both maximal. The check implementation class itself is not present in this source snapshot - only the sampling listener and the check registration - so the exact FastClicks thresholds cannot be quoted, but the listener is the layer that turns the module's fixed-period C0A train into the delay samples the detector judges.