Rise 6.1.30's WTap is a two-mode sprint-reset module. The Legit mode drives the real sprint keybind, so the player's own sprint state visibly drops and the vanilla sprint logic emits the C0B entity actions; the Silent mode flips the sprint flag of the PreMotion event, which the patched EntityPlayerSP converts into serverbound C0B packets while the client's own motion never changes. The facade declares the mode value, defaulting to Legit, and the shared chance setting gates every reset. Both modes key off the target's hurtTime, so a reset only fires in the ticks right after a landed hit, which is what makes the module a knockback amplifier rather than a plain sprint toggle.
Facade and gating
The module class holds a ModeValue with the Legit and Silent modes and the NumberValue chance setting used by both. There is no other logic in the facade; the two mode classes register their own event listeners when selected. The chance value is rolled independently at every decision point, so a reset can be armed on the attack but skipped at the release step, and vice versa.
Legit mode
LegitWTap's AttackEvent handler arms the reset when the roll passes and the target's hurtTime is at least 6, meaning the hit has already landed and the target is in its hurt animation. If the player is sprinting, the handler presses the sprint keybind (setPressed(true)) and latches the unsprint flag. The PreMotion handler then releases the keybind on another chance roll. The release runs through the vanilla sprint logic, so the client's own sprint state ends, C0B STOP_SPRINTING goes out, and the next sprint start re-asserts C0B START_SPRINTING; the player's speed genuinely dips for the reset ticks, which is the W-tap effect.
Silent mode
SilentWTap keeps the target from the AttackEvent and, in PreMotion, sets the event's sprint flag to false while the target's hurtTime is exactly 9, the tick after the hit lands. The keybind and the client's own sprint state are untouched. EntityPlayerSP.onUpdateWalkingPlayer (lines 194-204 of the patched client) compares the event flag against serverSprintState and emits the C0B START or STOP action whenever they differ, so the server sees a sprint stop followed by a sprint start straddling the attack while the client's own motion never drops. The module holds no state beyond the target reference, and the flag write is the entire intervention.
private final ModeValue mode = new ModeValue("Mode", this)
14
.add(new LegitWTap("Legit", this))
15
.add(new SilentWTap("Silent", this))
16
.setDefault("Legit");
17
18
public final NumberValue chance = new NumberValue("WTap Chance", this, 100, 0, 100, 1);
19
}
What this file does
The facade wires the ModeValue that selects between the real-keybind reset and the silent flag reset, and the chance setting that both modes roll against. The aliases on the ModuleInfo ('Extra Knock Back', 'Sprint Reset') state the module's purpose directly: the reset drops the sprint state around an attack so the server applies the extra knockback of a non-sprinting victim state. The chance default of 100 means every armed reset fires; lowering it makes the module intermittent, which spreads the C0B toggles out over time.
public final class SilentWTap extends Mode<WTap> {
12
private EntityLivingBase target;
13
14
public SilentWTap(String name, WTap parent) {
15
super(name, parent);
16
}
17
18
@EventLink
19
public final Listener<PreMotionEvent> onPreMotion = event -> {
20
if (target != null && target.hurtTime == 9) {
21
event.setSprinting(false);
22
}
23
};
24
25
@EventLink
26
public final Listener<AttackEvent> onAttack = event -> {
27
target = event.getTarget();
28
};
29
}
What this file does
The silent mode is two listeners and one write. The AttackEvent records the target; the PreMotion handler checks target.hurtTime == 9, the tick after the hit lands, and writes event.setSprinting(false). From there the patched client takes over: onUpdateWalkingPlayer fires the PreMotion event, reads the flag back (line 194), and whenever it differs from serverSprintState sends the matching C0B entity action (lines 196-204). Because the flag reverts to true on the next tick (the module only intervenes on hurtTime 9), the wire sequence is a single STOP followed by a single START. The client-side motion is never touched, so the player keeps full speed; only the server's view of the sprint state changes, which is the entire point of the silent variant.
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 ToggleFrequency (entity action rate)
ToggleFrequency.java61 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/>.
NCP's ToggleFrequency counts toggle-class actions (sprint and sneak entity actions) into data.playerActionFreq, an ActionFrequency whose window and limit default to one second and 25 toggles (DefaultConfig NET_TOGGLEFREQUENCY_SECONDS 1, LIMIT 25), and cancels once the window score exceeds the limit at vl>10. Each reset produces a STOP and a START pair, so a player sustaining roughly 12 hits per second through the module pushes the toggle rate to the ceiling, and the cancel action snaps the sprint state back. The check is content-blind to the reason for the toggles, so it cannot distinguish the module from any other sprint churn; it caps the rate at which the reset can be applied.
anticheat ActionToggleSpeed (toggle cadence)
ActionToggleSpeed.java80 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/>.
Hawk's ActionToggleSpeed records the tick of the last sneak and sprint toggle per player and punishes any toggle that lands within the same tick as the previous one, rewarding clean gaps. The Legit mode's release runs through the vanilla sprint logic, which flips the state once per tick, and the Silent mode's flag write produces one C0B per tick through the patched EntityPlayerSP, so both Rise variants sit exactly on the one-tick boundary the check permits; the check catches the faster implementations that send the stop and the start in the same motion update, which is the class of sprint reset this module's own cadence is designed to stay out of.
public class BadPacketsF extends Check implements PreViaPacketReceiveListener {
14
private static final Verbose V = Verbose.of("state={bool}");
15
16
public boolean lastSprinting;
17
public boolean exemptNext = true; // Support 1.14+ clients starting on either true or false sprinting, we don't know
18
19
public BadPacketsF(GrimPlayer player) {
20
super(player);
21
}
22
23
@Override
24
public void onPreViaPacketReceive(PacketReceiveEvent event) {
25
if (event.getPacketType() == PacketType.Play.Client.ENTITY_ACTION) {
26
WrapperPlayClientEntityAction packet = new WrapperPlayClientEntityAction(event);
27
28
if (packet.getAction() == WrapperPlayClientEntityAction.Action.START_SPRINTING) {
29
if (lastSprinting) {
30
if (exemptNext) {
31
exemptNext = false;
32
return;
33
}
34
boolean state = true;
35
if (flag(V.write(verbose()).bool(state)) && shouldModifyPackets()) {
36
event.setCancelled(true);
37
player.onPacketCancel();
38
}
39
}
40
41
lastSprinting = true;
42
} else if (packet.getAction() == WrapperPlayClientEntityAction.Action.STOP_SPRINTING) {
43
if (!lastSprinting) {
44
if (exemptNext) {
45
exemptNext = false;
46
return;
47
}
48
boolean state = false;
49
if (flag(V.write(verbose()).bool(state)) && shouldModifyPackets()) {
50
event.setCancelled(true);
51
player.onPacketCancel();
52
}
53
}
54
55
lastSprinting = false;
56
}
57
}
58
}
59
}
How it counteracts this module
Grim's BadPacketsF tracks the last server-visible sprint state from C0B entity actions and flags a START while already sprinting or a STOP while already stopped, cancelling the duplicate packet. The Rise variants alternate STOP and START around each hit, so their sequence never repeats a state and this check does not fire on them; it catches the sloppy reset implementations that re-assert START_SPRINTING without the matching stop, or spam a second STOP after a silent flag flip that the client already transmitted. In that role it is the boundary check for the technique: the alternating reset is invisible to it, and the duplicate-state bug is exactly what it exists to catch.