Memeware 7.3 AutoSoup module 2 files, 147 lines

Memeware 7.3 AutoSoup: Full Source Analysis

Memeware 7.3's AutoSoup is a health-gated soup chugger that moves mushroom stew from the player's own inventory container into the hotbar with shift-click window operations and then fires the use-and-release sequence soup servers accept.

me/memewaredevs/client/module/combat/AutoSoup.java · GitHub source ↗

Published 2026-08-12 · Updated 2026-08-12

Analysis

Overview

Memeware 7.3's AutoSoup is a health-gated soup chugger that moves mushroom stew from the player's own inventory container into the hotbar with shift-click window operations and then fires the use-and-release sequence soup servers accept. The entire module is one UpdateEvent consumer: while health sits more than 10 points below max, it checks the hotbar, refills it from the inventory by clicking window 0, and on the next cycle sends C08PacketPlayerBlockPlacement with the soup stack, C09PacketHeldItemChange, and a C07PacketPlayerDigging RELEASE_USE_ITEM. It never opens a GUI: every transfer is a direct PlayerControllerMP.windowClick against the player's own window id 0, which is exactly the traffic pattern Hawk's inventory checks and NCP's FastClick were built to measure.

Health gate and timer

The module arms on one condition: mc.thePlayer.getHealth() is below getMaxHealth() minus 10.0f, so the player must be missing more than five hearts before anything happens. A Timer utility gates the cycle with a 50ms floor, but the reset only runs in the refill branch. When the hotbar already holds soup, useSoup() fires without ever calling time.reset(), so once 50ms have elapsed since construction the delay check returns true on every subsequent update tick and the module eats at 20 cycles per second for as long as the health condition holds and soup remains in the hotbar.

Inventory shuffling without a GUI

hotbarHasSoups scans container slots 36 to 44, which is the hotbar in the player inventory container. getSoupFromInventory scans slots 36 down to 9, finds the first soup, then looks for a bowl in the hotbar and drops it: windowClick(0, bowlSlot, 0, 0) picks the bowl onto the cursor and windowClick(0, -999, 0, 0) throws it outside the window, which spawns it as a dropped item in the world. The soup is then shift-clicked into the hotbar with mode 1. useSoup drops every hotbar bowl in a loop instead of just the first, then selects the soup slot. All of these windowClick calls emit C0EPacketClickWindow packets against window 0; the -999 throws are C0Es with the outside-window slot id.

The eat sequence and the missed slot sync

useSoup sets inventory.currentItem to the soup slot, calls updateController, then queues C08 with the itemstack constructor (use item on air), a C09 re-asserting the new held slot, and C07 RELEASE_USE_ITEM at BlockPos.ORIGIN facing down, followed by stopUsingItem and a local-only restore of the previous slot. The restore never goes out as a second C09, so the server believes the soup slot is still selected until the next natural held-item change from normal play. Vanilla servers require the full 32-tick use duration before the soup is consumed server-side, so the instant release only pays off on servers whose soup handling completes on release; client-side, the bowl is gone and the soup stack is drained regardless.

source AutoSoup.java

AutoSoup.java116 lines · JavaOriginal ↗
1
2
package me.memewaredevs.client.module.combat;
3
4
import me.hippo.api.lwjeb.annotation.Handler;
5
import me.memewaredevs.client.util.misc.Timer;
6
import net.minecraft.init.Items;
7
import net.minecraft.item.ItemSoup;
8
import net.minecraft.item.ItemStack;
9
import net.minecraft.network.play.client.C07PacketPlayerDigging;
10
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
11
import net.minecraft.network.play.client.C09PacketHeldItemChange;
12
import net.minecraft.util.BlockPos;
13
import net.minecraft.util.EnumFacing;
14
import me.memewaredevs.client.event.events.UpdateEvent;
15
import me.memewaredevs.client.module.Module;
16
17
import java.util.function.Consumer;
18
19
public class AutoSoup extends Module {
20
    private final Timer time = new Timer();
21
22
    public AutoSoup() {
23
        super("Auto Soup", 0, Module.Category.COMBAT);
24
    }
25
26
    @Handler
27
    public Consumer<UpdateEvent> update = e -> {
28
        if (mc.thePlayer.getHealth() < mc.thePlayer.getMaxHealth() - 10.0f && time.delay(50.0f)) {
29
            if (hotbarHasSoups()) {
30
                useSoup();
31
            } else {
32
                getSoupFromInventory();
33
                time.reset();
34
            }
35
        }
36
    };
37
38
    private boolean hotbarHasSoups() {
39
        for (int index = 36; index < 45; ++index) {
40
            final ItemStack itemStack = mc.thePlayer.inventoryContainer.getSlot(index).getStack();
41
            if (itemStack == null || !(itemStack.getItem() instanceof ItemSoup)) {
42
                continue;
43
            }
44
            return true;
45
        }
46
        return false;
47
    }
48
49
    private void getSoupFromInventory() {
50
        int index;
51
        ItemStack itemStack;
52
        int item = -1;
53
        boolean found = false;
54
        for (index = 36; index >= 9; --index) {
55
            itemStack = mc.thePlayer.inventoryContainer.getSlot(index).getStack();
56
            if (itemStack == null || !(itemStack.getItem() instanceof ItemSoup)) {
57
                continue;
58
            }
59
            item = index;
60
            found = true;
61
            break;
62
        }
63
        if (found) {
64
            for (index = 0; index < 45; ++index) {
65
                itemStack = mc.thePlayer.inventoryContainer.getSlot(index).getStack();
66
                if (itemStack == null) {
67
                    continue;
68
                }
69
                if (itemStack.getItem() != Items.bowl || index < 36 || index > 44) {
70
                    break;
71
                }
72
                mc.playerController.windowClick(0, index, 0, 0, mc.thePlayer);
73
                mc.playerController.windowClick(0, -999, 0, 0, mc.thePlayer);
74
                break;
75
            }
76
            mc.playerController.windowClick(0, item, 0, 1, mc.thePlayer);
77
        }
78
    }
79
80
    private void useSoup() {
81
        int index;
82
        ItemStack itemStack;
83
        int item = -1;
84
        boolean found = false;
85
        for (index = 36; index < 45; ++index) {
86
            itemStack = mc.thePlayer.inventoryContainer.getSlot(index).getStack();
87
            if (itemStack == null || !(itemStack.getItem() instanceof ItemSoup)) {
88
                continue;
89
            }
90
            item = index;
91
            found = true;
92
            break;
93
        }
94
        if (found) {
95
            for (index = 0; index < 45; ++index) {
96
                itemStack = mc.thePlayer.inventoryContainer.getSlot(index).getStack();
97
                if (itemStack == null || itemStack.getItem() != Items.bowl || index < 36 || index > 44) {
98
                    continue;
99
                }
100
                mc.playerController.windowClick(0, index, 0, 0, mc.thePlayer);
101
                mc.playerController.windowClick(0, -999, 0, 0, mc.thePlayer);
102
            }
103
            final int slot = mc.thePlayer.inventory.currentItem;
104
            mc.thePlayer.inventory.currentItem = item - 36;
105
            mc.playerController.updateController();
106
            mc.thePlayer.sendQueue
107
                    .addToSendQueue(new C08PacketPlayerBlockPlacement(mc.thePlayer.inventory.getCurrentItem()));
108
            mc.thePlayer.sendQueue
109
                    .addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem));
110
            mc.thePlayer.sendQueue.addToSendQueue(new C07PacketPlayerDigging(
111
                    C07PacketPlayerDigging.Action.RELEASE_USE_ITEM, BlockPos.ORIGIN, EnumFacing.DOWN));
112
            mc.thePlayer.stopUsingItem();
113
            mc.thePlayer.inventory.currentItem = slot;
114
        }
115
    }
116
}

What this file does

The module is a single @Handler-registered Consumer over UpdateEvent, which keeps the whole mechanism in one file: a health gate, a hotbar probe, a refill routine that shuffles soup from the inventory container into the hotbar, and a use routine that emits the C08/C09/C07 sequence. The inventory work never touches a GuiScreen; PlayerControllerMP.windowClick is called with window id 0 directly, so every transfer is a C0EPacketClickWindow against the player's own container. The -999 slot id in the bowl-throw calls is the outside-window sentinel, and mode 1 on the soup transfer is the shift-click flag.

The asymmetry between the two inventory routines is the module's most telling detail. getSoupFromInventory drops only the first hotbar bowl it finds before shift-clicking a soup in, while useSoup drops every hotbar bowl in a single pass; both routines scan for ItemSoup instances, so any soup variant (mushroom stew and rabbit stew) is treated identically. The timer reset living only in the refill branch is what turns the 50ms gate into a one-shot floor during sustained eating, which drives the 20-cycle-per-second spam that server-side click-rate checks see.

source Timer.java (delay gate)

Timer.java31 lines · JavaOriginal ↗
1
2
package me.memewaredevs.client.util.misc;
3
4
public class Timer {
5
    private long prevMS = 0L;
6
7
    public Timer() {
8
        this.reset();
9
    }
10
11
    public boolean delay(final float milliSec) {
12
        return this.getTime() - this.prevMS >= milliSec;
13
    }
14
15
    public void reset() {
16
        this.prevMS = this.getTime();
17
    }
18
19
    public long getTime() {
20
        return System.nanoTime() / 1000000L;
21
    }
22
23
    public boolean sleep(long time) {
24
	    if (getTime() >= time) {
25
	      reset();
26
	      return true;
27
	    } 
28
	    return false;
29
	  }
30
31
}

What this file does

The Timer utility is a monotonic millisecond clock: prevMS holds the last reset time and getTime() reads System.nanoTime() divided by 1e6, so the gate is immune to wall-clock adjustments. delay(milliSec) returns whether the elapsed time is at least the argument, and reset() re-anchors prevMS to the current instant.

AutoSoup constructs one Timer and calls delay(50.0f) as the cycle gate. Because reset() is only invoked from getSoupFromInventory, the 50ms floor is not re-armed while the hotbar already contains soup; the gate stays open on every tick after the first 50ms, which is the mechanism behind the module's maximum eat rate. The same class is shared by other Memeware combat modules, which all rely on the nanoTime basis to avoid System.currentTimeMillis() jumps.

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 FastClick (window click rate)

FastClick.java243 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/>.
14
 */
15
package fr.neatmonster.nocheatplus.checks.inventory;
16
17
import java.util.ArrayList;
18
import java.util.List;
19
20
import org.bukkit.Material;
21
import org.bukkit.entity.Player;
22
import org.bukkit.event.inventory.InventoryClickEvent;
23
import org.bukkit.event.inventory.InventoryType;
24
import org.bukkit.inventory.InventoryView;
25
import org.bukkit.inventory.ItemStack;
26
27
import fr.neatmonster.nocheatplus.actions.ParameterName;
28
import fr.neatmonster.nocheatplus.checks.Check;
29
import fr.neatmonster.nocheatplus.checks.CheckType;
30
import fr.neatmonster.nocheatplus.checks.ViolationData;
31
import fr.neatmonster.nocheatplus.checks.combined.Improbable;
32
import fr.neatmonster.nocheatplus.permissions.Permissions;
33
import fr.neatmonster.nocheatplus.players.IPlayerData;
34
import fr.neatmonster.nocheatplus.utilities.entity.InventoryUtil;
35
import fr.neatmonster.nocheatplus.utilities.StringUtil;
36
import fr.neatmonster.nocheatplus.utilities.TickTask;
37
38
39
/**
40
 * FastClick checks for players clicking in inventories too quickly (nerfs autosteal cheats and the like).
41
 */
42
public class FastClick extends Check {
43
44
45
    final List<String> tags = new ArrayList<String>();
46
47
48
    /**
49
     * Instantiates a new fast click check.
50
     */
51
    public FastClick() {
52
        super(CheckType.INVENTORY_FASTCLICK);
53
    }
54
55
56
   /**
57
    * Checks a player.
58
    * 
59
    * @param player
60
    * @param now Millisec
61
    * @param view
62
    * @param slot
63
    * @param cursor
64
    * @param clicked
65
    * @param isShiftClick
66
    * @param inventoryAction
67
    * @param data
68
    * @param cc 
69
    * @param pData
70
    * @return true, if successful
71
    */
72
    public boolean check(final Player player, final long now, 
73
                         final InventoryClickEvent event, final int slot, final ItemStack cursor, 
74
                         final ItemStack clicked, final boolean isShiftClick, 
75
                         final String inventoryAction, final InventoryData data, final InventoryConfig cc, 
76
                         final IPlayerData pData) {
77
78
        final float amount;
79
        final Material clickedMat = clicked == null ? Material.AIR : clicked.getType();
80
        final Material cursorMat;
81
        final int cursorAmount;
82
        boolean cancel = false;
83
        tags.clear();
84
85
        if (cursor != null) {
86
            cursorMat = cursor.getType();
87
            cursorAmount = Math.max(1, cursor.getAmount());
88
        }
89
        else {
90
            cursorMat = null;
91
            cursorAmount = 0;
92
        }
93
94
        if (inventoryAction != null) {
95
            amount = getAmountWithAction(event, slot, clicked, clickedMat, cursorMat, cursorAmount, isShiftClick, inventoryAction, data, cc);
96
        }
97
        else if (cursor != null) {
98
            // Detect shift-click features indirectly.
99
            amount = detectTweaks1_5(event, slot, clicked, clickedMat, cursorMat, cursorAmount, isShiftClick, data, cc);
100
        }
101
        else amount = 1f;
102
103
        if (isShiftClick && inventoryAction.equals("MOVE_TO_OTHER_INVENTORY") 
104
            && (cursorMat != null && cursorMat != Material.AIR) 
105
            && clickedMat != Material.AIR) {
106
            return false;
107
        }
108
        
109
        // Count clicks
110
        data.fastClickFreq.add(now, amount);
111
        
112
        // Shor-term VL
113
        float shortTerm = data.fastClickFreq.bucketScore(0);
114
        if (shortTerm > cc.fastClickShortTermLimit) {
115
            // Check for lag.
116
            shortTerm /= (float) TickTask.getLag(data.fastClickFreq.bucketDuration(), true);
117
        }
118
        shortTerm -= cc.fastClickShortTermLimit;
119
        
120
        // Normal VL
121
        float normal = data.fastClickFreq.score(1f);
122
        if (normal > cc.fastClickNormalLimit) {
123
            // Check for lag.
124
            normal /= (float) TickTask.getLag(data.fastClickFreq.bucketDuration() * data.fastClickFreq.numberOfBuckets(), true);
125
        }
126
        normal -= cc.fastClickNormalLimit;
127
        
128
        // Process Violations.
129
        final double violation = Math.max(shortTerm, normal);
130
        if (violation > 0.0) {
131
            tags.add("clickspeed");
132
            data.fastClickVL += violation;
133
            final ViolationData vd = new ViolationData(this, player, data.fastClickVL, violation, cc.fastClickActions);
134
            if (vd.needsParameters()) vd.setParameter(ParameterName.TAGS, StringUtil.join(tags, "+"));
135
            cancel = executeActions(vd).willCancel();
136
        }
137
        else data.fastClickVL *= 0.99;
138
139
        if (pData.isDebugActive(type) && pData.hasPermission(Permissions.ADMINISTRATION_DEBUG, player)) {
140
            player.sendMessage("FastClick: " + data.fastClickFreq.bucketScore(0) + " | " + data.fastClickFreq.score(1f) + " | cursor=" + cursor 
141
                                + " | clicked=" + clicked + " | action=" + inventoryAction);
142
        }
143
        
144
        // Adjust data
145
        data.fastClickLastClicked = clickedMat;
146
        data.fastClickLastSlot = slot;
147
        data.fastClickLastCursor = cursorMat;
148
        data.fastClickLastCursorAmount = cursorAmount;
149
150
        // Lastly, always feed the improbable.
151
        if (cc.fastClickImprobableWeight > 0.0f) {
152
            Improbable.feed(player, cc.fastClickImprobableWeight * amount, now);
153
        }
154
        return cancel;
155
    }
156
    
157
158
   /**
159
    * Enforce sane timings for interacting with the container and clicking in it.
160
    * 
161
    * @param player
162
    * @param data
163
    * @param cc
164
    */
165
    public boolean checkContainerInteraction(final Player player, final InventoryData data, final InventoryConfig cc) {
166
        boolean cancel = false;
167
        tags.clear();
168
        if (InventoryUtil.isContainerInteractionRecent(player, cc.chestOpenLimit)) {
169
            // Interaction was too quick, violation.
170
            tags.add("interact_time");
171
            long duration = Math.max(data.lastClickTime - data.containerInteractTime, 20);
172
            double violation = (cc.chestOpenLimit / duration) * 100D; // Normalize.
173
            data.fastClickVL += violation;
174
            final ViolationData vd = new ViolationData(this, player, data.fastClickVL, violation, cc.fastClickActions);
175
            if (vd.needsParameters()) vd.setParameter(ParameterName.TAGS, StringUtil.join(tags, "+"));
176
            cancel = executeActions(vd).willCancel();  
177
        }
178
       return cancel;
179
    }
180
    
181
182
   /**
183
    * Detect the inventory tweaks that were introduced in MC 1.5
184
    * 
185
    * @param view
186
    * @param slot
187
    * @param clicked
188
    * @param clickedMat
189
    * @param cursorAmount
190
    * @param isShiftClick
191
    * @param data
192
    * @param cc
193
    */
194
    private float detectTweaks1_5(final InventoryClickEvent event, final int slot, final ItemStack clicked, 
195
                                  final Material clickedMat, final Material cursorMat, 
196
                                  final int cursorAmount, final boolean isShiftClick, 
197
                                  final InventoryData data, final InventoryConfig cc) {
198
199
        if (cursorMat != data.fastClickLastCursor 
200
            && (!isShiftClick || clickedMat == Material.AIR || clickedMat != data.fastClickLastClicked) 
201
            || cursorMat == Material.AIR || cursorAmount != data.fastClickLastCursorAmount) {
202
            return 1f;
203
        }
204
        else if (clickedMat == Material.AIR || clickedMat == cursorMat 
205
                || isShiftClick && clickedMat == data.fastClickLastClicked ) {
206
            return Math.min(cc.fastClickNormalLimit , cc.fastClickShortTermLimit) 
207
                    / (float) (isShiftClick && clickedMat != Material.AIR ? (1.0 + Math.max(cursorAmount, InventoryUtil.getStackCount(event, clicked))) : cursorAmount)  * 0.75f;
208
        }
209
        return 1f;
210
    }
211
212
213
    private float getAmountWithAction(final InventoryClickEvent event, final int slot, final ItemStack clicked, 
214
                                      final Material clickedMat, final Material cursorMat, 
215
                                      final int cursorAmount, final boolean isShiftClick, 
216
                                      final String inventoryAction, 
217
                                      final InventoryData data, final InventoryConfig cc) {
218
219
        // Continuous drop feature with open inventories.
220
        if (inventoryAction.equals("DROP_ONE_SLOT")
221
            && slot == data.fastClickLastSlot 
222
            && clickedMat == data.fastClickLastClicked
223
            && event.getInventory().getType() == InventoryType.CRAFTING
224
            // && InventoryUtil.couldHaveInventoryOpen(player)
225
            // TODO: Distinguish if the inventory is really open.
226
            ) {
227
            return 0.6f;
228
        }
229
230
        // Collect to cursor.
231
        if (inventoryAction.equals("COLLECT_TO_CURSOR")) {
232
            final int stackCount = InventoryUtil.getStackCount(event, clicked);
233
            return stackCount <= 0 ? 1f : Math.min(cc.fastClickNormalLimit , cc.fastClickShortTermLimit) / stackCount * 0.75f;
234
        }
235
236
        // Shift click features.
237
        if ((inventoryAction.equals("MOVE_TO_OTHER_INVENTORY")) && cursorMat != Material.AIR) {
238
            // Let the legacy method do the side condition checks and counting for now.
239
            return detectTweaks1_5(event, slot, clicked, clickedMat, cursorMat, cursorAmount, isShiftClick, data, cc);
240
        }
241
        return 1f;
242
    }
243
}

How it counteracts this module

NoCheatPlus FastClick counts inventory clicks into an ActionFrequency with five 200ms buckets, then compares the newest bucket against the short-term limit of 4 and the full one-second window against the normal limit of 15 (DefaultConfig INVENTORY_FASTCLICK_LIMIT_SHORTTERM and LIMIT_NORMAL, with lag division via TickTask). Each counted click adds its weighted amount via getAmountWithAction; a plain shift-click with an empty cursor scores 1.0, while the legacy detectTweaks1_5 path scales the count down for large stack moves. Clicks on the -999 outside slot are explicitly skipped in InventoryListener.onInventoryClick (slot < 0 returns after stamping lastClickTime), so the module's bowl throws never count.

The AutoSoup transfer spam is what the window path catches. Each eat cycle contributes one shift-click C0E on a positive slot (the soup transfer), and because the 50ms gate is never re-armed while soup is in the hotbar, the module sustains roughly 20 counted clicks per second. The one-second window score of about 20 clears the normal limit of 15, so every click adds roughly 5 to fastClickVL and the default cancel action at vl>150 lands after about one and a half seconds of sustained eating. The short-term bucket path stays quiet at exactly 4 clicks per bucket, which is why the normal window limit, not the burst path, is the real counter.

anticheat InventoryActions (click without an open window)

InventoryActions.java60 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.inventory;
20
21
/*
22
 * InventoryActions check originally written by Havesta; modified, split apart, and implemented into Hawk by Islandscout
23
 *
24
 * InventoryActions checks if a player is
25
 * - interacting with entities/blocks while inventory is opened
26
 */
27
28
import me.islandscout.hawk.HawkPlayer;
29
import me.islandscout.hawk.check.CustomCheck;
30
import me.islandscout.hawk.event.*;
31
32
public class InventoryActions extends CustomCheck {
33
34
    public InventoryActions() {
35
        super("inventoryactions", true, 3, 5, 0.999, 5000, "%player% failed inventory-actions, VL: %vl%", null);
36
    }
37
38
    @Override
39
    protected void check(Event e) {
40
        HawkPlayer pp = e.getHawkPlayer();
41
42
        //player tried to interact with entities/world while an inventory window is open
43
        if(pp.hasInventoryOpen() != 0 && (e instanceof InteractEntityEvent || e instanceof BlockDigEvent ||
44
                e instanceof ArmSwingEvent || e instanceof InteractWorldEvent)) {
45
            punish(pp, true, e);
46
            e.resync();
47
            //TODO After failing several times, there's a chance that they could be legit, but the inventory state is glitched. Close the player's inventory.
48
        }
49
50
        //player tried to interact with inventory while it is closed
51
        else if(pp.hasInventoryOpen() == 0 && e instanceof ClickInventoryEvent) {
52
            //TODO also check that window ID makes sense with the window type (eg. ID 0 must mean hasInventoryOpen() == 0)
53
            punish(pp, true, e);
54
            e.resync();
55
        }
56
        else {
57
            reward(pp);
58
        }
59
    }
60
}

How it counteracts this module

Hawk's InventoryActions check punishes two patterns: world interaction (InteractEntity, BlockDig, ArmSwing, InteractWorld) while HawkPlayer.hasInventoryOpen() is non-zero, and a ClickInventoryEvent while it is zero. Hawk tracks the open state from the S2D window-open and C16 inventory-command packets, so a chest window or the player inventory screen being open moves the flag off zero, and CloseInventoryEvent clears it.

AutoSoup never opens any GUI. It clicks the player's own container (window id 0) straight from the module, and a vanilla client only ever emits C0E clicks from GUI code, so every transfer packet arrives with the inventory-open state at zero. Each such click is punished and the event is resynced, which re-syncs the container contents with the client. The -999 bowl throws are C0E packets too and hit the same path; the module cannot shed the violation by dropping to window 0 because that is precisely the window Hawk expects to be closed.

anticheat FastConsume (consume duration)

FastConsume.java28 lines · Java
1
package me.vrekt.arc.check.inventory;
2
3
import me.vrekt.arc.Arc;
4
import me.vrekt.arc.check.Check;
5
import me.vrekt.arc.check.CheckType;
6
import me.vrekt.arc.data.inventory.InventoryData;
7
import org.bukkit.entity.Player;
8
9
public class FastConsume extends Check {
10
11
    private int consumeTime = 0;
12
13
    public FastConsume() {
14
        super(CheckType.FASTCONSUME);
15
16
        consumeTime = Arc.getCheckManager().getValueInt(CheckType.FASTCONSUME, "consume-time");
17
    }
18
19
    public boolean check(Player player, InventoryData data) {
20
21
        long now = System.currentTimeMillis();
22
        long last = data.getConsumeTime();
23
        long total = now - last;
24
25
        // check if the time it took to consume the item is less than allowed.
26
        return total < consumeTime && checkViolation(player, "consume time less than allowed.");
27
    }
28
}

How it counteracts this module

Arc v2's FastConsume enforces a minimum time between starting and finishing an item use. The InventoryListener stamps InventoryData.consumeTime on a RIGHT_CLICK_AIR or RIGHT_CLICK_BLOCK interaction with an edible item or potion (soup is edible), and the consume event handler runs FastConsume.check on PlayerItemConsumeEvent; the check flags when now minus the stamped time is below consume-time, which defaults to 1280ms in config.yml.

AutoSoup's eat sequence is C08 use-on-air followed immediately by C07 RELEASE_USE_ITEM, so on any server that completes soup consumption at release the PlayerItemConsumeEvent lands within a few milliseconds of the right-click that armed the timer, and the check fires with a consume time far under 1280ms. On vanilla servers the release never finishes the eat, no consume event fires, and the check stays silent, which is the honest split: the counter bites exactly on the instant-soup mechanics the module depends on. The violation message is 'consume time less than allowed', and the check cancels the consume event when the AC's cancel action is configured.

← Back to Analysis Hub