Spicy Eagle module 1 files, 45 lines

Spicy Eagle: Full Source Analysis

Spicy's Eagle is a movement helper with no packet of its own: it drives the client's sneak keybind from world state.

info/spicyclient/modules/movement/Eagle.java · GitHub source ↗

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

Packets This Module Uses

Analysis

Overview

Spicy's Eagle is a movement helper with no packet of its own: it drives the client's sneak keybind from world state. Every pre EventUpdate it checks the equipped item and the block one meter below the player's feet; when the item is an ItemBlock and that block is air, keyBindSneak.pressed is forced true, and otherwise it is forced false. The result is automatic sneaking exactly while the player stands on an edge with blocks in hand, which is the classic safe-walk condition for bridging. The module sends nothing itself: the sneak state reaches the server through the vanilla keybind path, and onDisable clears the pressed flag so the fake sneak never sticks.

Architecture

The whole module is one pre EventUpdate branch. It reads mc.thePlayer.getCurrentEquippedItem(); when the stack is non-null and its item is an ItemBlock, it first forces keyBindSneak.pressed = false and then probes the block at BlockPos(posX, posY - 1, posZ): if the world reports air there, the sneak key is forced true. Every tick re-asserts the state, so the fake sneak cannot drift, and any other code that clears the bind is overwritten on the next tick. onDisable unconditionally clears pressed so the player never stays sneaking after the module turns off. The probe uses the client's own world state, so the sneak engages and releases with the geometry, not with any timing logic.

Key techniques

posY is the player's foot position, so the block at posY - 1 is the support block; when it is air the player stands over a gap, and with a block item in hand that is exactly the safe-walk condition. Because the pressed flag is set directly on the GameSettings keybind, the vanilla movement handler treats the module's sneak as a real key press: it flips the sneak pose and emits the normal sneak-toggle traffic when the state changes. The module never constructs a packet itself and never touches motion; its entire contribution is the keybind write.

Detection surface

The module has no wire signature of its own. Its C08 association is the placement stream the behavior enables, since holding a bridge with blocks in hand is the module's purpose, and server-side enforcement of that stream is placement-frequency and slot-change checking rather than anything that reads the sneak key. The sneak toggles themselves are vanilla C0B entity actions at human cadence, which toggle-rate checks tolerate.

source Eagle.java (module)

Eagle.java45 lines · JavaOriginal ↗
1
package info.spicyclient.modules.movement;
2
3
import org.lwjgl.input.Keyboard;
4
5
import info.spicyclient.events.Event;
6
import info.spicyclient.events.listeners.EventUpdate;
7
import info.spicyclient.modules.Module;
8
import net.minecraft.init.Blocks;
9
import net.minecraft.item.ItemBlock;
10
import net.minecraft.item.ItemStack;
11
import net.minecraft.util.BlockPos;
12
13
public class Eagle extends Module {
14
15
	public Eagle() {
16
		super("Eagle", Keyboard.KEY_NONE, Category.MOVEMENT);
17
	}
18
	
19
	@Override
20
	public void onDisable() {
21
		mc.gameSettings.keyBindSneak.pressed = false;
22
	}
23
	
24
	@Override
25
	public void onEvent(Event e) {
26
		
27
		if (e instanceof EventUpdate && e.isPre()) {
28
			
29
			ItemStack i = mc.thePlayer.getCurrentEquippedItem();
30
			BlockPos Bp = new BlockPos(mc.thePlayer.posX, mc.thePlayer.posY - 1D, mc.thePlayer.posZ);
31
			if(i != null) {
32
				if(i.getItem() instanceof ItemBlock) {
33
					mc.gameSettings.keyBindSneak.pressed = false;
34
					if(mc.theWorld.getBlockState(Bp).getBlock() == Blocks.air) {
35
						mc.gameSettings.keyBindSneak.pressed = true;
36
					}
37
					
38
				}
39
	        }
40
			
41
		}
42
		
43
	}
44
	
45
}

What this file does

The module is one pre EventUpdate branch with a null guard. It reads the equipped stack, and when the item is an ItemBlock it clears the sneak bind and then probes the block one meter below the feet: air there means the player is over a gap, so keyBindSneak.pressed is set true. The forced-false first line means the bind is only ever true while both conditions (block item held, gap below) hold, and the per-tick re-assertion overwrites any state change from other code. onDisable clears the bind unconditionally, which is the only cleanup the module needs because it never allocates timers or packet buffers.

The probe is the interesting part: posY is the foot position, so the checked block is the support block. When it is air the player stands on an edge, and with a block item in hand that is precisely the safe-walk condition for bridging. The module never reads the player's motion or sends any packet; the sneak that reaches the server is the vanilla keybind change, which the client translates into normal sneak-toggle traffic.

The module therefore has no wire signature of its own. Its C08 listing reflects the placement stream the behavior enables, and the countering checks for it are the placement-frequency and slot-change gates that bound bridging, not anything that inspects the sneak key.

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 FastPlace (placement frequency)

FastPlace.java103 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.blockplace;
16
17
import org.bukkit.block.Block;
18
import org.bukkit.entity.Player;
19
20
import fr.neatmonster.nocheatplus.checks.Check;
21
import fr.neatmonster.nocheatplus.checks.CheckType;
22
import fr.neatmonster.nocheatplus.players.IPlayerData;
23
import fr.neatmonster.nocheatplus.utilities.TickTask;
24
25
/**
26
 * A check used to verify if the player isn't placing blocks too quickly.
27
 */
28
public class FastPlace extends Check {
29
30
    /**
31
     * Instantiates a new fast place check.
32
     */
33
    public FastPlace() {
34
        super(CheckType.BLOCKPLACE_FASTPLACE);
35
    }
36
37
    /**
38
     * Checks a player.
39
     * 
40
     * @param player
41
     *            the player
42
     * @param block
43
     *            the block
44
     * @param tick
45
     * @param data
46
     * @param cc
47
     * @param pData
48
     * @return true, if successful
49
     */
50
    public boolean check(final Player player, final Block block, final int tick, final BlockPlaceData data, 
51
                         final BlockPlaceConfig cc, final IPlayerData pData) {
52
53
        data.fastPlaceBuckets.add(System.currentTimeMillis(), 1f);
54
        final boolean lag = pData.getCurrentWorldData().shouldAdjustToLag(type);
55
        // Full period frequency.
56
        final float fullScore = data.fastPlaceBuckets.score(1f);
57
58
        // Short term limit.
59
        if (tick < data.fastPlaceShortTermTick) {
60
            // TickTask got reset.
61
            data.fastPlaceShortTermTick = tick;
62
            data.fastPlaceShortTermCount = 1;
63
        }
64
        else if (tick - data.fastPlaceShortTermTick < cc.fastPlaceShortTermTicks) {
65
            // Account for server side lag.
66
            if (!lag || TickTask.getLag(50L * (tick - data.fastPlaceShortTermTick), true) < 1.2f) {
67
                // Within range, add.
68
                data.fastPlaceShortTermCount ++;
69
            }
70
            else {
71
                // Too much lag, reset.
72
                data.fastPlaceShortTermTick = tick;
73
                data.fastPlaceShortTermCount = 1;
74
            }
75
        }
76
        else { 
77
            data.fastPlaceShortTermTick = tick;
78
            data.fastPlaceShortTermCount = 1;
79
        }
80
81
        // Find out if one of both are violations:
82
        final float fullViolation;
83
        if (fullScore > cc.fastPlaceLimit) {
84
            // Account for server side lag.
85
            fullViolation = lag ? fullScore / TickTask.getLag(data.fastPlaceBuckets.bucketDuration() * data.fastPlaceBuckets.numberOfBuckets(), true) - cc.fastPlaceLimit
86
                                : fullScore - cc.fastPlaceLimit;
87
        }
88
        else fullViolation = 0;
89
        final float shortTermViolation = data.fastPlaceShortTermCount - cc.fastPlaceShortTermLimit; 
90
        final float violation = Math.max(fullViolation, shortTermViolation);
91
        boolean cancel = false;
92
93
        if (violation > 0.0) {
94
            final double change = (double) violation;
95
            data.fastPlaceVL += change;
96
            cancel = executeActions(player, data.fastPlaceVL, change, cc.fastPlaceActions).willCancel();
97
        }
98
        else if (data.fastPlaceVL > 0D && fullScore < cc.fastPlaceLimit * .75) {
99
            data.fastPlaceVL *= 0.95;
100
        }
101
        return cancel;
102
    }
103
}

How it counteracts this module

The NoCheatPlus blockplace pipeline scores every C08PacketPlayerBlockPlacement into BlockPlaceData.fastPlaceBuckets, an ActionFrequency accumulator, and separately into a short-term tick window. The long-window score (fastPlaceBuckets.score(1f)) is compared against cc.fastPlaceLimit, and the short-term counter increments while consecutive placements land within cc.fastPlaceShortTermTicks, with both paths lag-adjusted through TickTask. A violation runs the configured fastplace actions, cancellation or set-back, from the check's executeActions path.

Eagle itself never emits a placement; it only holds the sneak keybind while the player stands over air with a block in hand, so the server sees FastPlace only through the bridging behavior the module enables. A player walking a bridge with Eagle places one block per step at a human-paced rhythm that stays under the frequency limit, but a tower or speed-bridge attempt that leans on the automatic sneak to place several blocks inside the short-term window trips the tick counter. The module cannot help here: the sneak state does not affect placement timing, so the same frequency gates apply to an Eagle user and to a manual bridger.

The boundary is the sneak toggle itself: the module's keybind writes produce vanilla C0B sneak toggles, which this placement check never inspects. FastPlace is content-blind to why blocks are placed and only counts the C08 stream, so an Eagle user placing slowly passes regardless of how the sneak state is driven.

anticheat ItemSwitchSpeed (slot-change gate)

ItemSwitchSpeed.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/>.
17
 */
18
package me.islandscout.hawk.check.interaction.item;
19
20
import me.islandscout.hawk.HawkPlayer;
21
import me.islandscout.hawk.check.Cancelless;
22
import me.islandscout.hawk.check.CustomCheck;
23
import me.islandscout.hawk.event.Event;
24
import me.islandscout.hawk.event.InteractItemEvent;
25
import me.islandscout.hawk.event.InteractWorldEvent;
26
import me.islandscout.hawk.event.ItemSwitchEvent;
27
import org.bukkit.entity.Player;
28
29
import java.util.*;
30
31
public class ItemSwitchSpeed extends CustomCheck implements Cancelless {
32
33
    private Map<UUID, Long> lastSwitchTicks;
34
    private Set<UUID> usedSomething;
35
    private int MIN_SWITCH_TICKS;
36
37
    //might rename this to "AutoUse"
38
    public ItemSwitchSpeed() {
39
        super("itemswitchspeed", true, -1, 1, 0.999, 5000, "%player% failed item switch speed, VL: %vl%", null);
40
        lastSwitchTicks = new HashMap<>();
41
        usedSomething = new HashSet<>();
42
        MIN_SWITCH_TICKS = (int)customSetting("minSwitchTicks", "", 1);
43
    }
44
45
    //For future reference, if you try to verify that the item-switch packet points to a different slot, beware of falses.
46
    //The client can send item-switch packets regardless if the slot switched or not.
47
48
    @Override
49
    protected void check(Event event) {
50
        if(event instanceof InteractItemEvent || event instanceof InteractWorldEvent) {
51
            usedSomething.add(event.getPlayer().getUniqueId());
52
        }
53
        else if(event instanceof ItemSwitchEvent) {
54
55
            HawkPlayer pp = event.getHawkPlayer();
56
            UUID uuid = pp.getUuid();
57
58
            if(usedSomething.contains(uuid)) {
59
                long lastSwitchTick = lastSwitchTicks.getOrDefault(uuid, 0L);
60
                if(pp.getCurrentTick() - lastSwitchTick < MIN_SWITCH_TICKS) {
61
                    punish(pp, 1, false, event);
62
                }
63
                else {
64
                    reward(pp);
65
                }
66
67
                usedSomething.remove(uuid);
68
            }
69
70
            lastSwitchTicks.put(pp.getUuid(), pp.getCurrentTick());
71
        }
72
    }
73
74
    @Override
75
    public void removeData(Player p) {
76
        UUID uuid = p.getUniqueId();
77
        lastSwitchTicks.remove(uuid);
78
        usedSomething.remove(uuid);
79
    }
80
}

How it counteracts this module

Hawk's ItemSwitchSpeed is a cancelless CustomCheck over the slot-switch stream. Any InteractItemEvent or InteractWorldEvent (use-item and block-interact actions) stamps the player into a usedSomething set, and the next ItemSwitchEvent for that player must arrive at least MIN_SWITCH_TICKS after the previous switch or it is punished with one VL under the check's 0.999 reward decay. The default MIN_SWITCH_TICKS is 1 tick, and the check is explicitly aimed at autotool and scaffold modules that flip the held slot immediately before every use or placement.

For an Eagle user the relevant pattern is the block-slot switch that precedes each placement while bridging: switch to the block slot, place, repeat. When those switches land inside the one-tick minimum, the check flags regardless of the sneak state. Eagle's contribution is timing-neutral: it neither helps nor hurts the slot-change cadence, so the check's gate applies to the module's users exactly as it does to manual bridgers.

The boundary: ItemSwitchSpeed never reads sneak state, so it cannot see Eagle's keybind writes at all. A player who switches slots slowly while sneaking with Eagle passes; the check exists to bound the fast slot-switch automation that typically accompanies the same bridging playstyle.

anticheat InventoryListener (consumption timing)

InventoryListener.java87 lines · Java
1
package me.vrekt.arc.listener.inventory;
2
3
import me.vrekt.arc.Arc;
4
import me.vrekt.arc.check.CheckType;
5
import me.vrekt.arc.check.inventory.FastConsume;
6
import me.vrekt.arc.data.inventory.InventoryData;
7
import me.vrekt.arc.listener.ACheckListener;
8
import org.bukkit.Bukkit;
9
import org.bukkit.ChatColor;
10
import org.bukkit.Material;
11
import org.bukkit.entity.Player;
12
import org.bukkit.event.EventHandler;
13
import org.bukkit.event.EventPriority;
14
import org.bukkit.event.Listener;
15
import org.bukkit.event.block.Action;
16
import org.bukkit.event.inventory.InventoryClickEvent;
17
import org.bukkit.event.player.PlayerInteractEvent;
18
import org.bukkit.event.player.PlayerItemConsumeEvent;
19
import org.bukkit.inventory.Inventory;
20
import org.bukkit.inventory.ItemStack;
21
22
public class InventoryListener implements Listener, ACheckListener {
23
    private final FastConsume FAST_CONSUME = (FastConsume) CHECK_MANAGER.getCheck(CheckType.FASTCONSUME);
24
25
    @EventHandler(priority = EventPriority.LOWEST)
26
    public void onConsume(PlayerItemConsumeEvent event) {
27
        Player player = event.getPlayer();
28
        InventoryData data = InventoryData.getData(player);
29
30
        boolean canCheckFastConsume = CHECK_MANAGER.canCheckPlayer(player, CheckType.FASTCONSUME);
31
        if (canCheckFastConsume) {
32
            // check and cancel if we failed.
33
            boolean cancel = FAST_CONSUME.check(player, data);
34
            event.setCancelled(cancel);
35
        }
36
37
    }
38
39
    @EventHandler(priority = EventPriority.HIGHEST)
40
    public void onInteract(PlayerInteractEvent event) {
41
        Action action = event.getAction();
42
        ItemStack item = event.getItem();
43
44
        if (item == null) {
45
            return;
46
        }
47
48
        if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) {
49
            Player player = event.getPlayer();
50
            InventoryData data = InventoryData.getData(player);
51
            // check if we are consuming an item.
52
            if (item.getType().isEdible() || item.getType() == Material.POTION) {
53
                // update data.
54
                data.setConsumeTime(System.currentTimeMillis());
55
            }
56
        }
57
58
    }
59
60
    /**
61
     * Handle the GUI stuff.
62
     */
63
    @EventHandler
64
    public void onClick(InventoryClickEvent event) {
65
66
        Inventory inventory = event.getInventory();
67
        if (inventory.getTitle().contains("Summary for ")) {
68
            event.setCancelled(true);
69
70
            ItemStack item = event.getCurrentItem();
71
            Player viewer = (Player) event.getWhoClicked();
72
            if (item.getType() == Material.IRON_SWORD) {
73
                Player player = Bukkit.getPlayer(inventory.getTitle().split(" ")[2]);
74
                if (player == null) {
75
                    viewer.sendMessage(ChatColor.RED + "This player has logged out.");
76
                    viewer.closeInventory();
77
                    return;
78
                }
79
80
                Arc.getArcPlayerManager().scheduleBan(player);
81
            }
82
83
        }
84
85
    }
86
87
}

How it counteracts this module

Vrekt-Arc-v2's InventoryListener is the event front end for the FastConsume check. The onInteract handler stamps InventoryData.consumeTime on any RIGHT_CLICK_AIR or RIGHT_CLICK_BLOCK with an edible item or potion in hand, and onConsume runs FAST_CONSUME.check when a PlayerItemConsumeEvent fires, canceling the eat if the consumption cadence is too fast. The third handler is an operator GUI that schedules bans from an inventory menu and is unrelated to movement.

The tie to Eagle is the bridging playstyle, not the module's code: a player holding a bridge with Eagle frequently eats golden apples between placements, and the consume-time ledger is exactly the surface that gates how quickly a second bite can follow a first. Eagle sends nothing and stamps nothing, so the listener's data is entirely driven by the player's real interactions, and the check stays fully effective against an Eagle user.

The boundary: FastConsume measures consumption only. It has no view of the sneak keybind, the placement stream, or any other module behavior, so an Eagle user who never eats while bridging is completely invisible to this listener. It is included here as the consumption-timing companion that constrains the same safe-walk session.

← Back to Analysis Hub