Spicy InvWalk: Full Source Analysis
Spicy's InvWalk lets the player move while any GUI screen is open.
Published 2026-08-13 · Updated 2026-08-13
Packets This Module Uses
Analysis
Overview
Spicy's InvWalk lets the player move while any GUI screen is open. On every pre EventUpdate, when mc.currentScreen is non-null and not a chat screen, the module re-asserts the forward, back, left, right and jump keybinds from the raw keyboard state, which vanilla would otherwise ignore while a screen is up. The resulting movement is ordinary C03 traffic produced by the normal movement handler; onDisable clears all six binds including sprint to avoid stuck keys. The module's value is the inventory-walk gameplay itself, and its detection surface is the window-state checks that expect no movement while a container is open.
Architecture
The module body is a single pre EventUpdate branch guarded by mc.currentScreen. When a screen is open and it is not a GuiChat, the five movement binds, forward, back, left, right and jump, are re-asserted from the raw keyboard state via KeyBinding.setKeyBindState(bind.getKeyCode(), Keyboard.isKeyDown(bind.getKeyCode())). The chat exclusion keeps typing in chat from moving the character. onDisable is the cleanup half: for each of the six binds including sprint it clears pressed, but only when the raw key is no longer down or a screen is still open, so a key genuinely held after the module turns off is not stuck.
Key techniques
Vanilla clears the movement input while any GUI is up, so without the module no C03 movement would be produced; with it, held keys keep driving the player through the normal movement handler. The re-assertion runs every tick, so key state changes are picked up within one tick and the player can start and stop moving while the inventory is open. The six-key list on disable is broader than the five-key loop on update, which is why sprint is restored on shutdown but never re-asserted during play: the module cannot sprint-burst from a chest, only walk and jump.
Detection surface
The module constructs nothing itself, but the re-asserted binds make the vanilla movement handler emit the same position-rotation packets it would emit with no screen open, and that is precisely the traffic window-state anticheats check for. The relevant server-side enforcement is window-open movement checking and the toggle and speed bounds on whatever else the player runs at the same time.
source InvWalk.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 | |
What this file does
The module body is one pre EventUpdate branch guarded by mc.currentScreen: when a screen is open and it is not a GuiChat, the five movement binds are re-asserted from the raw keyboard state via KeyBinding.setKeyBindState. Vanilla clears the movement input while any GUI is up, so without the module no C03 movement would be produced; with it, held keys keep driving the player. The chat exclusion keeps typing in chat from moving the character, and the per-tick re-assertion means key state changes take effect within one tick.
onDisable is the cleanup half: for each of the six binds including sprint it clears pressed, but only when the raw key is no longer down or a screen is still open, so a key genuinely held after the module turns off is not stuck. The six-key list on disable is broader than the five-key loop on update, which is why sprint is restored on shutdown but never re-asserted during play: the module cannot sprint-burst from a chest, only walk and jump.
The packet story is the C03 stream. The module itself constructs nothing, but the re-asserted binds make the vanilla movement handler emit the same position-rotation packets it would emit with no screen open, and that is precisely the traffic window-state anticheats check for.
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 InventoryMove (window-open movement)
| 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 | |
How it counteracts this module
Hawk's InventoryMove is a MovementCheck that flags C03 movement while a container is open. In check(MoveEvent) it punishes through punishAndTryRubberband when the player is sprinting, sneaking, or updating rotation, has an inventory open (pp.hasInventoryOpen() != 0), and the move is not a teleport acceptance; otherwise it rewards. It is registered with 5 punishment VLs and the standard 0.999 reward decay.
InvWalk is a direct target. The module's pre EventUpdate branch runs while mc.currentScreen is non-null, chat excluded, and re-asserts the forward, back, left, right and jump keybinds from the raw keyboard state, so every tick the player spends inside a chest or crafting GUI with movement keys held produces exactly the C03 packets this check exists to catch. The module's key loop does not include sprint, but vanilla movement packets carry rotation, which satisfies the isUpdateRot gate, so plain forward walking with the inventory open still triggers the punish path.
The boundary: Hawk's gate requires sprint, sneak, or a rotation update. A move packet that contains only position with no rotation change while the player is neither sprinting nor sneaking falls through, and the check also exempts teleport-accept moves, so inventory movement that arrives on the confirming packet of a server teleport is not punished. In practice InvWalk users move with WASD, which keeps rotation in the C03 stream, so the gap rarely matters.
anticheat ToggleFrequency (entity-action rate)
| 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 | |
How it counteracts this module
NoCheatPlus's ToggleFrequency scores C0BPacketEntityAction toggles into NetData.playerActionFreq, an ActionFrequency window. The full-window score, divided by the TickTask lag adjustment, is compared against cc.toggleActionLimit, and the excess becomes a violation that runs the configured toggleFrequency actions, with a 0.9 VL decay on clean ticks. It is the rate bound for sneak and sprint toggles.
InvWalk does not send C0B packets: the module only calls KeyBinding.setKeyBindState on the movement binds, and the sprint key is only cleared in onDisable, never re-asserted while a screen is open. The toggle ledger is therefore untouched by the module itself. The check stays relevant because inventory-walk players commonly run sprint modules alongside, and those re-assert sprint state through C0B; each re-assertion is scored, and sustained toggle spam pushes the window score past the limit.
The boundary: single toggles at human cadence sit well under the limit, and a plain InvWalk user who sends no C0B at all never appears in this check's data. Like the window-state entry, this check bounds the companion modules, not the inventory movement itself.
anticheat Speed (horizontal envelope)
| 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 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
How it counteracts this module
Arc-v2's Speed check measures the reported horizontal delta against a world-derived envelope, with ice, ice-block, block-move and step modifiers and configurable maxima, punishing distances the player's movement mode and potion effects cannot justify. It is the generic horizontal-speed bound for the anticheat.
Inventory walking produces ordinary-speed movement: InvWalk re-asserts the same key states the player would use with no screen open, and the client's motion physics are unchanged, so the reported deltas stay inside the running-speed envelope and the check passes. It appears in this entry list because inventory-walk is frequently combined with speed enhancement, and the moment a speed module runs while the inventory is open, the C03 stream carries deltas past the envelope and Speed flags the session.
The boundary: by itself the module never violates a horizontal-speed check, and no speed check can distinguish an inventory-open move from a normal move by content, because the packets are identical. Detection of inventory walking relies on window-state checks such as Hawk's InventoryMove; Speed only contributes when the player is cheating horizontally on top of it.