Rise 5.99 ChestAura module 1 files, 56 lines

Rise 5.99 ChestAura: Full Source Analysis

Rise 5.99's ChestAura opens nearby chests for the player: on every PreMotionEvent it first drains a pending open, a right-click through mc.playerController.onPlayerRightClick with the chest position…

dev/rise/module/impl/other/ChestAura.java · GitHub source ↗

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

Analysis

Overview

Rise 5.99's ChestAura opens nearby chests for the player: on every PreMotionEvent it first drains a pending open, a right-click through mc.playerController.onPlayerRightClick with the chest position, a down facing and a hit vector at the block, which emits the vanilla C08 block-placement packet and swings, then scans mc.theWorld.loadedTileEntityList for TileEntityChest entries within the Range setting (default 5, maximum 6 blocks), records each one in a clickedChests ledger so every chest is opened at most once per world, and arms the next open. The module does not loot; it walks the player from chest to chest, one open per tick, and the ledger clears on enable and on world change.

The open path

onPreMotion bails while a GuiContainer is on screen, then, if chestToOpen is armed, calls onPlayerRightClick with the player, the world, the held item, the chest position, EnumFacing.DOWN and a hit vector at the block. That vanilla controller call is what serializes the C08 with the block position, the facing and the hit coordinates, and the server reacts by opening the chest GUI. On a successful return the module swings, clears chestToOpen and returns, so exactly one open happens per tick.

Target scan

The scan iterates mc.theWorld.loadedTileEntityList in list order, keeps TileEntityChest instances whose distance from the player's position is below the Range setting, skips positions already in clickedChests, adds the new position to the ledger and arms chestToOpen. Target selection is tile-entity list order, not nearest-first, and the range slider spans 1 to 6 blocks in 0.1 steps with a default of 5.

Ledger lifecycle

clickedChests guarantees every chest is attempted once per world: a chest whose open the server rejects is still ledgered, so retries are impossible until the world changes. onEnable clears the ledger and the pending target, and onWorldChanged resets the ledger so a rejoin or a world switch re-enables looting. The module never closes the opened GUI and never clicks inside it; both are left to the player or to a companion Stealer module.

source ChestAura.java

ChestAura.java56 lines · JavaOriginal ↗
1
package dev.rise.module.impl.other;
2
3
import dev.rise.event.impl.motion.PreMotionEvent;
4
import dev.rise.event.impl.other.WorldChangedEvent;
5
import dev.rise.module.Module;
6
import dev.rise.module.api.ModuleInfo;
7
import dev.rise.module.enums.Category;
8
import dev.rise.setting.impl.NumberSetting;
9
import net.minecraft.client.gui.inventory.GuiContainer;
10
import net.minecraft.tileentity.TileEntity;
11
import net.minecraft.tileentity.TileEntityChest;
12
import net.minecraft.util.BlockPos;
13
import net.minecraft.util.EnumFacing;
14
import net.minecraft.util.Vec3;
15
16
import java.util.ArrayList;
17
18
@ModuleInfo(name = "ChestAura", description = "Opens nearby chests for you", category = Category.PLAYER)
19
public final class ChestAura extends Module {
20
21
    private final NumberSetting range = new NumberSetting("Range", this, 5, 1, 6, 0.1);
22
    private final ArrayList<BlockPos> clickedChests = new ArrayList<>();
23
    private BlockPos chestToOpen;
24
25
    @Override
26
    public void onPreMotion(final PreMotionEvent event) {
27
        if (mc.currentScreen instanceof GuiContainer) return;
28
        if (chestToOpen != null) {
29
            if (mc.playerController.onPlayerRightClick(mc.thePlayer, mc.theWorld, mc.thePlayer.inventory.getCurrentItem(), chestToOpen, EnumFacing.DOWN, new Vec3(chestToOpen))) {
30
                mc.thePlayer.swingItem();
31
                chestToOpen = null;
32
                return;
33
            }
34
        }
35
36
        for (final TileEntity tileEntity : mc.theWorld.loadedTileEntityList) {
37
            if (tileEntity instanceof TileEntityChest && mc.thePlayer.getDistance(tileEntity.getPos().getX(), tileEntity.getPos().getY(), tileEntity.getPos().getZ()) < range.getValue()) {
38
                if (clickedChests.contains(tileEntity.getPos())) continue;
39
                final TileEntityChest chest = (TileEntityChest) tileEntity;
40
                clickedChests.add(chest.getPos());
41
                chestToOpen = chest.getPos();
42
            }
43
        }
44
    }
45
46
    @Override
47
    public void onWorldChanged(final WorldChangedEvent event) {
48
        clickedChests.clear();
49
    }
50
51
    @Override
52
    protected void onEnable() {
53
        clickedChests.clear();
54
        chestToOpen = null;
55
    }
56
}

What this file does

The module file is the whole feature. onPreMotion holds the state machine: the pending open, the swing, and the tile-entity scan that arms the next chest; the clickedChests ledger and the chestToOpen field carry the state between ticks; onEnable and onWorldChanged reset the ledger so a rejoin or world switch re-enables looting. The open is delegated to mc.playerController.onPlayerRightClick, the same call the vanilla client uses for a manual right-click, which is why the wire footprint is the standard C08 block-placement packet with the chest's position and a down facing. The C0E window-click traffic that follows the opens is produced by the player or a companion looting module, never by this file.

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 NoCheatPlus blockinteract Direction (interact against the look ray)

Direction.java53 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.blockinteract;
16
17
import org.bukkit.entity.Player;
18
19
import fr.neatmonster.nocheatplus.actions.ActionList;
20
import fr.neatmonster.nocheatplus.checks.CheckType;
21
import fr.neatmonster.nocheatplus.checks.generic.block.AbstractBlockDirectionCheck;
22
23
/**
24
 * The Direction check will find out if a player tried to interact with
25
 * something that's not in their field of view.
26
 */
27
public class Direction extends AbstractBlockDirectionCheck<BlockInteractData, BlockInteractConfig> {
28
29
    /**
30
     * Instantiates a new direction check.
31
     */
32
    public Direction() {
33
        super(CheckType.BLOCKINTERACT_DIRECTION);
34
    }
35
36
    @Override
37
    protected double addVL(Player player, double distance, BlockInteractData data, BlockInteractConfig cc) {
38
        data.directionVL += distance;
39
        return data.directionVL;
40
    }
41
42
    @Override
43
    protected ActionList getActions(BlockInteractConfig cc) {
44
        return cc.directionActions;
45
    }
46
47
    @Override
48
    protected void cooldown(Player player, BlockInteractData data, BlockInteractConfig cc) {
49
        data.directionVL *= 0.9D;
50
        data.addPassedCheck(this.type);
51
    }
52
53
}

How it counteracts this module

Every chest open is a Bukkit PlayerInteractEvent with action RIGHT_CLICK_BLOCK, and NoCheatPlus's BlockInteractListener runs its checks on that event with the clicked block, the reported face and the player's latest queued C03 look. The Direction check extends AbstractBlockDirectionCheck: it traces a ray from the eye position along the look direction taken from the flying queue and accumulates the distance between that ray and the clicked face into directionVL, decaying the level by 0.9 on passes.

ChestAura never rotates toward the chest it opens, so any chest outside the current view cone adds its full face-to-ray distance, and the default actions cancel at vl>15; a walk through a room opening chests to the side or behind accumulates the violation quickly. The one-per-tick cadence keeps blockinteract Speed's 55-per-2000ms window untriggered, so direction and reach are the load-bearing checks here.

anticheat NoCheatPlus blockinteract Reach (interaction distance)

Reach.java85 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.blockinteract;
16
17
import org.bukkit.GameMode;
18
import org.bukkit.Location;
19
import org.bukkit.block.Block;
20
import org.bukkit.entity.Player;
21
22
import fr.neatmonster.nocheatplus.actions.ParameterName;
23
import fr.neatmonster.nocheatplus.checks.Check;
24
import fr.neatmonster.nocheatplus.checks.CheckType;
25
import fr.neatmonster.nocheatplus.checks.ViolationData;
26
import fr.neatmonster.nocheatplus.utilities.StringUtil;
27
import fr.neatmonster.nocheatplus.utilities.math.TrigUtil;
28
29
/**
30
 * The Reach check will find out if a player interacts with something that's too far away.
31
 */
32
public class Reach extends Check {
33
34
    /** The maximum distance allowed to interact with a block in creative mode. */
35
    public static final double CREATIVE_DISTANCE = 5.6D;
36
37
    /** The maximum distance allowed to interact with a block in survival mode. */
38
    public static final double SURVIVAL_DISTANCE = 5.2D;
39
40
    /**
41
     * Instantiates a new reach check.
42
     */
43
    public Reach() {
44
        super(CheckType.BLOCKINTERACT_REACH);
45
    }
46
47
    /**
48
     * Checks a player.
49
     * 
50
     * @param player
51
     *            the player
52
     * @param loc
53
     *            the location
54
     * @param eyeHeight
55
     * @param block
56
     * @param data
57
     * @param cc
58
     * @return true, if successful
59
     */
60
    public boolean check(final Player player, final Location loc, final double eyeHeight, final Block block, 
61
                         final BlockInteractData data, final BlockInteractConfig cc) {
62
    	// TODO: Ray tracing-based?
63
        boolean cancel = false;
64
        final double distanceLimit = player.getGameMode() == GameMode.CREATIVE ? CREATIVE_DISTANCE : SURVIVAL_DISTANCE;
65
        // Distance is calculated from eye location to center of targeted block.
66
        // TODO: On failure loop through flying queue, and do set not working entries to null (!).
67
        final double distance = TrigUtil.distance(loc.getX(), loc.getY() + eyeHeight, loc.getZ(), 0.5 + block.getX(), 0.5 + block.getY(), 0.5 + block.getZ());
68
69
        if (distance > distanceLimit) {
70
            // They failed, increment violation level.
71
            data.reachVL += distance - distanceLimit;
72
            // Execute whatever actions are associated with this check and the violation level and find out if we should
73
            // cancel the event.
74
            final ViolationData vd = new ViolationData(this, player, data.reachVL, distance, cc.reachActions);
75
            vd.setParameter(ParameterName.REACH_DISTANCE, StringUtil.fdec3.format(distance));
76
            cancel = executeActions(vd).willCancel();
77
        } 
78
        else {
79
            // Player passed the check, reward them.
80
            data.reachVL *= 0.9D;
81
            data.addPassedCheck(this.type);
82
        }
83
        return cancel;
84
    }
85
}

How it counteracts this module

The interact Reach check measures the eye position to the center of the clicked block and compares it with SURVIVAL_DISTANCE 5.2 (5.6 in creative). ChestAura's Range setting defaults to 5 and reaches 6, and the distance is measured to the block center, so a chest 5.5 blocks away at foot level sits at about 5.6 from an eye at 1.62 and crosses the bound; at the maximum range the excess reaches nearly a full block, and each out-of-range open adds distance minus 5.2 to reachVL, decayed by 0.9 on in-range interactions.

Chests opened close to the player pass; the exposure is exactly the long edge of the range slider, which is where the aura's value lies, since it opens chests the player could not comfortably reach by hand. The default actions cancel the interact, so the open is denied at the event layer rather than just scored.

anticheat Hawk BlockInteractReach (block AABB distance)

BlockInteractReach.java73 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.terrain;
20
21
import me.islandscout.hawk.HawkPlayer;
22
import me.islandscout.hawk.check.BlockInteractionCheck;
23
import me.islandscout.hawk.event.InteractWorldEvent;
24
import me.islandscout.hawk.util.AABB;
25
import me.islandscout.hawk.util.MathPlus;
26
import me.islandscout.hawk.util.Placeholder;
27
import me.islandscout.hawk.util.ServerUtils;
28
import org.bukkit.GameMode;
29
import org.bukkit.Location;
30
import org.bukkit.util.Vector;
31
import org.bukkit.entity.Player;
32
33
public class BlockInteractReach extends BlockInteractionCheck {
34
35
    private final float MAX_REACH;
36
    private final float MAX_REACH_CREATIVE;
37
38
    public BlockInteractReach() {
39
        super("blockbreakreach", "%player% failed block interact reach, Reach: %distance%m, VL: %vl%");
40
        MAX_REACH = (float) customSetting("maxReach", "", 3.1);
41
        MAX_REACH_CREATIVE = (float) customSetting("maxReachCreative", "", 5.0);
42
    }
43
44
    @Override
45
    protected void check(InteractWorldEvent e) {
46
        Player p = e.getPlayer();
47
        HawkPlayer pp = e.getHawkPlayer();
48
49
        Location bLoc = e.getTargetedBlockLocation();
50
        Vector min = bLoc.toVector();
51
        Vector max = bLoc.toVector().add(new Vector(1, 1, 1));
52
        AABB targetAABB = new AABB(min, max);
53
54
        Vector ppPos;
55
        if(pp.isInVehicle()) {
56
            ppPos = hawk.getLagCompensator().getHistoryLocation(ServerUtils.getPing(p), p).toVector();
57
            ppPos.setY(ppPos.getY() + p.getEyeHeight());
58
        }
59
        else {
60
            ppPos = pp.getHeadPosition();
61
        }
62
63
        double maxReach = pp.getPlayer().getGameMode() == GameMode.CREATIVE ? MAX_REACH_CREATIVE : MAX_REACH;
64
        double dist = targetAABB.distanceToPosition(ppPos);
65
66
        if (dist > maxReach) {
67
            punish(pp, 1, true, e, new Placeholder("distance", MathPlus.round(dist, 2)));
68
            e.resync();
69
        } else {
70
            reward(pp);
71
        }
72
    }
73
}

How it counteracts this module

Hawk's BlockInteractReach runs on the C08-driven InteractWorldEvent and measures the distance from the head position (lag-compensated in vehicles) to the target block's AABB, punishing with a resync when it exceeds MAX_REACH, default 3.1 blocks in survival and 5.0 in creative.

The default Range of 5 puts virtually every open past the survival bound: a chest 4 blocks away horizontally at eye level measures about 4.0 to the AABB face and flags immediately, so on a Hawk server the aura can only open chests within arm's reach, which removes most of its purpose. The check is packet-level and content-blind; the ledger and the one-per-tick pacing change nothing.

anticheat NoCheatPlus FastClick (window click rate, loot phase)

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

ChestAura only opens; the click stream that follows is what the module exists to enable, and NCP FastClick is the ledger that scores it. FastClick accumulates InventoryClickEvent traffic into five 200ms buckets, comparing the newest bucket against the short-term limit of 4 and the window against the normal limit of 15, with the interact_time path adding (155 / duration) * 100 when a click lands within 155ms of the container opening.

A chest drained at stealer speeds (the sibling Stealer module defaults to 5ms delays) puts roughly 40 clicks per bucket, an order of magnitude over the short-term limit, and the first click usually lands inside the interact window because the aura opens the chest and the drain starts immediately. The honest boundary is the same as every window-click check: the aura itself, opening one chest per tick, emits no C0E traffic of its own, so this entry bites on the loot phase the aura feeds rather than on the opens.

← Back to Analysis Hub