Spicy AntiBot module 2 files, 348 lines

Spicy AntiBot: Full Source Analysis

Spicy's Antibot is a two-mode entity filter that descends from the same lineage as Sigma 4.11's AntiBot.

info/spicyclient/modules/combat/Antibot.java · GitHub source ↗

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

Packets This Module Uses

Analysis

Overview

Spicy's Antibot is a two-mode entity filter that descends from the same lineage as Sigma 4.11's AntiBot. The single AntibotMode setting only ever resolves to Advanced, and the mode label shown in the HUD switches on the server IP: Hypixel runs hypixelAntibot(), a per-tick scan that classifies watchdog clones, shop stands and lobby NPCs by name and invisibility state and removes the marked players from the client world on the post update; every other server runs the Advanced path, which cancels S0CPacketSpawnPlayer spawns within 17 blocks above the player and sweeps the loaded entity list for invisible entities, removing each one it finds. The module keeps two private lists, dontRemove and removeThese, so genuine NPCs and shop stands are whitelisted before anything is removed, and removal is deferred to the post phase inside a try/catch so a ConcurrentModificationException on the world's entity list cannot crash the tick. It also publishes a static target field that other combat modules read as the filtered combat target.

Architecture

The module declares a single ModeSetting, AntibotMode, whose options list contains only the value Advanced, so the setting is effectively a label. onEvent handles EventUpdate and EventPacket: the packet branch only acts in Advanced mode and only on servers whose IP does not contain hypixel, cancelling inbound S0CPacketSpawnPlayer packets; the update branch decides between hypixelAntibot() and the Advanced invisible-entity sweep with the same server-IP test. onEnable and onDisable both clear the two persistent lists, dontRemove and removeThese, so no entity survives a toggle as a stale candidate. The static EntityLivingBase target field is the module's exported state: other combat features read it as the current filtered target, which makes the bot filter a shared input to the client's aim and attack logic.

Advanced mode

The Advanced path has two layers. The packet layer (line 76) decodes S0CPacketSpawnPlayer fixed-point coordinates and cancels the spawn when it is within 17 blocks of the player, more than one block above it, and not exactly at the player's own coordinates, the identical predicate to Sigma 4.11's Packet mode, which marks this code as a direct port. The tick layer (line 122) iterates mc.theWorld.loadedEntityList and removes every invisible entity that is not the local player, posting a private-chat message per removal. The sweep mutates the world's entity list inside the loop, and unlike the Hypixel path it does not defer or guard the removal, so the module depends on the iteration behavior of the loaded list; the Hypixel path exists precisely because that pattern can throw, and it wraps the same operation in an explicit try/catch that reports ConcurrentModificationException to the user.

Hypixel mode

hypixelAntibot() (line 184) walks the loaded entity list and classifies every remote player with the same signature chain as the Sigma original: an invisible player whose formatted display name lacks a red prefix but ends with a reset marker, whose custom name tag equals the entity name, positioned 10-13 blocks above and within 3 blocks horizontally of the local player, and absent from the tab list (PlayerUtils.getTabPlayerList) is queued for removal; an invisible entity whose custom tag contains a doubled red marker while the name contains a red marker is also queued; a display name with a section prefix that is not invisible and does not contain 'npc' is kept, and anything else is queued; a custom tag containing both red and reset markers queues the entity as a watchdog bot with a chat message. Display names containing the lobby NPC prefix go to dontRemove instead, as do entities with a non-empty custom tag that lacks a red marker and bedwars shop stands (no section prefix, reset suffix). The pre phase fills the lists, the post phase drains removeThese through mc.theWorld.removeEntity inside the try/catch, and the dontRemove whitelist is what keeps genuine NPCs and shop entities alive.

source Antibot.java (module)

Antibot.java269 lines · JavaOriginal ↗
1
package info.spicyclient.modules.combat;
2
3
import java.util.ArrayList;
4
import java.util.ConcurrentModificationException;
5
import java.util.List;
6
import java.util.concurrent.CopyOnWriteArrayList;
7
8
import org.lwjgl.input.Keyboard;
9
10
import info.spicyclient.chatCommands.Command;
11
import info.spicyclient.events.Event;
12
import info.spicyclient.events.listeners.EventPacket;
13
import info.spicyclient.events.listeners.EventUpdate;
14
import info.spicyclient.modules.Module;
15
import info.spicyclient.settings.ModeSetting;
16
import info.spicyclient.util.PlayerUtils;
17
import net.minecraft.entity.Entity;
18
import net.minecraft.entity.EntityLivingBase;
19
import net.minecraft.entity.player.EntityPlayer;
20
import net.minecraft.network.play.server.S0CPacketSpawnPlayer;
21
import net.minecraft.util.MathHelper;
22
23
public class Antibot extends Module {
24
	
25
	public static EntityLivingBase target = null;
26
	
27
	private ModeSetting AntibotMode = new ModeSetting("Antibot Mode", "Advanced", "Advanced");
28
	
29
	public Antibot() {
30
		super("Antibot", Keyboard.KEY_NONE, Category.COMBAT);
31
		resetSettings();
32
	}
33
	
34
	@Override
35
	public void resetSettings() {
36
		this.settings.clear();
37
		this.addSettings(AntibotMode);
38
	}
39
	
40
	public void onEnable() {
41
		
42
		removeThese.clear();
43
		dontRemove.clear();
44
		
45
	}
46
	
47
	public void onDisable() {
48
		
49
		removeThese.clear();
50
		dontRemove.clear();
51
		
52
	}
53
	
54
	public void onEvent(Event e) {
55
		
56
		if (e instanceof EventUpdate) {
57
			
58
			if (e.isPre()) {
59
				
60
				if (!mc.isSingleplayer() && mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel")) {
61
					this.additionalInformation = "Hypixel";
62
				}else {
63
					this.additionalInformation = "Advanced";
64
				}
65
				
66
			}
67
			
68
		}
69
		
70
		if (e instanceof EventPacket && AntibotMode.is("Advanced")) {
71
			
72
			if (e.isIncoming() && e.isPre()) {
73
				
74
				EventPacket packet = (EventPacket) e;
75
				
76
				if (packet.packet instanceof S0CPacketSpawnPlayer && !(mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel"))) {
77
					
78
	                S0CPacketSpawnPlayer p = (S0CPacketSpawnPlayer) packet.packet;
79
	                double entX = p.getX() / 32D;
80
	                double entY = p.getY() / 32D;
81
	                double entZ = p.getZ() / 32D;
82
	                double diffX = mc.thePlayer.posX - entX;
83
	                double diffY = mc.thePlayer.posY - entY;
84
	                double diffZ = mc.thePlayer.posZ - entZ;
85
	                
86
	                float distance = MathHelper.sqrt_double(diffX * diffX + diffY * diffY + diffZ * diffZ);
87
	                
88
	                if (distance <= 17 && entY > mc.thePlayer.posY + 1 && (entX != mc.thePlayer.posX && entY != mc.thePlayer.posY && entZ != mc.thePlayer.posZ)) {
89
	                	//Entity entity = mc.theWorld.getEntityByID(p.getEntityID());
90
	                	//Command.sendPrivateChatMessage("The " + entity.getDisplayName().getFormattedText() + " bot was removed from your game");
91
	                	packet.setCanceled(true);
92
	                	Command.sendPrivateChatMessage("A bot was removed from your game");
93
	                }
94
					
95
				}
96
				else if (packet.packet instanceof S0CPacketSpawnPlayer && !mc.isSingleplayer() && mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel")) {
97
98
					//hypixelAntibot();
99
					/*
100
					S0CPacketSpawnPlayer p = (S0CPacketSpawnPlayer) packet.packet;
101
					Entity entity = mc.theWorld.getEntityByID(p.getEntityID());
102
					
103
					if (entity == null) {
104
						return;
105
					}
106
					
107
	                if (entity.getDisplayName().getFormattedText().startsWith("\u00a7") && !entity.isInvisible() && !entity.getDisplayName().getFormattedText().toLowerCase().contains("npc")) {
108
	                	
109
	                }else {
110
	                	Command.sendPrivateChatMessage("The " + entity.getDisplayName().getFormattedText() + " bot was removed from your game");
111
	                	packet.setCanceled(true);
112
	                }
113
					*/
114
				}
115
				
116
			}
117
			
118
		}
119
		
120
		if (e instanceof EventUpdate) {
121
			
122
			if (e.isPre() && AntibotMode.is("Advanced") && !mc.isSingleplayer() && !(mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel"))) {
123
				
124
				for (Object entity : mc.theWorld.loadedEntityList) {
125
					
126
					if (((Entity)entity).isInvisible() && entity != mc.thePlayer) {
127
						
128
						//Command.sendPrivateChatMessage("a bot was removed from your game");
129
						Command.sendPrivateChatMessage("A bot was removed from your game");
130
						mc.theWorld.removeEntity(((Entity)entity));
131
						
132
					}
133
					
134
				}
135
				
136
			}
137
			else if (!mc.isSingleplayer() && mc.getCurrentServerData().serverIP.toLowerCase().contains("hypixel")) {
138
				
139
				if (e.isPre()) {
140
					hypixelAntibot();
141
				}
142
				else if (e.isPost()) {
143
					
144
					for (EntityPlayer ent : removeThese) {
145
						
146
						try {
147
							mc.theWorld.removeEntity(ent);
148
						} catch (ConcurrentModificationException e2) {
149
							Command.sendPrivateChatMessage("Could not remove bot due to ConcurrentModificationException, please report this to a dev");
150
						} catch (Exception e2) {
151
							Command.sendPrivateChatMessage("Could not remove bot due to an unknown error, please report this to a dev");
152
						}
153
						
154
					}
155
					
156
				}
157
				
158
				/*
159
				S0CPacketSpawnPlayer p = (S0CPacketSpawnPlayer) packet.packet;
160
				Entity entity = mc.theWorld.getEntityByID(p.getEntityID());
161
				
162
				if (entity == null) {
163
					return;
164
				}
165
				
166
                if (entity.getDisplayName().getFormattedText().startsWith("\u00a7") && !entity.isInvisible() && !entity.getDisplayName().getFormattedText().toLowerCase().contains("npc")) {
167
                	
168
                }else {
169
                	Command.sendPrivateChatMessage("The " + entity.getDisplayName().getFormattedText() + " bot was removed from your game");
170
                	packets.add(p);
171
                	packet.setCanceled(true);
172
                }
173
                */
174
			}
175
			
176
		}
177
		
178
	}
179
	
180
	// Prevents non bots from being removed
181
	private static transient List<EntityPlayer> dontRemove = new ArrayList<>();
182
	private static transient CopyOnWriteArrayList<EntityPlayer> removeThese = new CopyOnWriteArrayList<EntityPlayer>();
183
	
184
	private void hypixelAntibot() {
185
		
186
		for (Object o : mc.theWorld.getLoadedEntityList()) {
187
			
188
            if (o instanceof EntityPlayer) {
189
            	
190
                EntityPlayer ent = (EntityPlayer) o;
191
                
192
                
193
                
194
                if (ent != mc.thePlayer && !dontRemove.contains(ent)) {
195
                	
196
                	String customName = ent.getCustomNameTag();
197
                	String formattedName = ent.getDisplayName().getFormattedText();
198
                    String name = ent.getName();
199
                    
200
                    if(ent.isInvisible() && !formattedName.startsWith("§c") && formattedName.endsWith("§r") && customName.equals(name)){
201
                    	
202
    					double diffX = Math.abs(ent.posX - mc.thePlayer.posX);
203
    					double diffY = Math.abs(ent.posY - mc.thePlayer.posY);
204
    					double diffZ = Math.abs(ent.posZ - mc.thePlayer.posZ);
205
    					double diffH = Math.sqrt(diffX * diffX + diffZ * diffZ);
206
    					
207
    					if(diffY < 13 && diffY > 10 && diffH < 3){
208
    						
209
    						List<EntityPlayer> list = PlayerUtils.getTabPlayerList();
210
    						
211
    						if(!list.contains(ent)){
212
    							
213
    							//Command.sendPrivateChatMessage("The bot " + name + " bot was removed from your game");
214
                          		removeThese.add(ent);
215
                          		
216
    						}
217
    						
218
    					}
219
    				
220
    				}
221
                    
222
                    if(ent.isInvisible()){
223
                    	
224
                    	if(!customName.equalsIgnoreCase("") && customName.toLowerCase().contains("§c§c") && name.contains("§c")){
225
                    		//Command.sendPrivateChatMessage("The bot " + name + " bot was removed from your game");
226
                    		removeThese.add(ent);
227
                    	}
228
                    	
229
                    }
230
                    
231
	                if (formattedName.startsWith("\u00a7") && !ent.isInvisible() && !formattedName.toLowerCase().contains("npc")) {
232
	                	
233
	                }else {
234
	                	//Command.sendPrivateChatMessage("The " + ent.getDisplayName().getFormattedText() + " bot was removed from your game");
235
	                	removeThese.add(ent);
236
	                }
237
                    
238
                    // Watchdog bots
239
                    if(!customName.equalsIgnoreCase("") && customName.toLowerCase().contains("§c") && customName.toLowerCase().contains("§r")){
240
                    	Command.sendPrivateChatMessage("A watchdog bot named " + name + "was removed from your game");
241
                    	removeThese.add(ent);
242
                    }
243
                    
244
                    // npcs
245
                    if(formattedName.contains("§8[NPC]")){
246
                    	
247
                    	dontRemove.add(ent);
248
                    	
249
                    }
250
                    
251
                    if(!formattedName.contains("§c") && !customName.equalsIgnoreCase("")){
252
253
                    	dontRemove.add(ent);
254
                    }
255
                    
256
                    // bedwars shop
257
                    if(!formattedName.startsWith("§") && formattedName.endsWith("§r")){
258
                    	dontRemove.add(ent);
259
                    }
260
                    
261
                }
262
                
263
            }
264
            
265
        }
266
		
267
	}
268
	
269
}

What this file does

The module declares one setting, AntibotMode, whose only option is Advanced, plus the static EntityLivingBase target field that other combat modules consume. onEnable and onDisable both clear dontRemove and removeThese, the two lists that drive the Hypixel path, so no classification survives a module toggle. The EventUpdate branch sets the HUD label by server IP (hypixel versus anything else), and the EventPacket branch implements the Advanced spawn filter: it cancels S0CPacketSpawnPlayer when the decoded fixed-point position is within 17 blocks, more than one block above the player, and not exactly at the player's coordinates (line 88), then posts a private-chat confirmation per cancelled spawn.

The Advanced tick layer (lines 122-136) is a blunt sweep: every invisible entity in loadedEntityList that is not the local player is removed with mc.theWorld.removeEntity and announced in chat. It runs on non-Hypixel servers only, and it does not consult the tab list or any name rule, so it removes any invisible entity in range including legitimate invisibility-potion players and the anticheat bait described in the countering section.

The Hypixel path (hypixelAntibot, line 184) is the careful half. It applies the watchdog signature (invisible, formatted name without red prefix but with reset suffix, custom name equal to entity name, 10-13 blocks above and under 3 blocks horizontally, absent from the tab list), the doubled-red invisible rule, the red-and-reset watchdog custom tag rule, the keep/remove split on section-prefixed display names, and the lobby NPC prefix rule. Matches are appended to the CopyOnWriteArrayList removeThese during the pre update and drained to removeEntity on the post update inside a try/catch that reports ConcurrentModificationException; entities matching the NPC, shop and no-red-custom-tag rules are appended to dontRemove so the drain never touches them.

source PlayerUtils.java (tab-list helper)

PlayerUtils.java79 lines · JavaOriginal ↗
1
package info.spicyclient.util;
2
3
import java.util.ArrayList;
4
import java.util.List;
5
import java.util.concurrent.CopyOnWriteArrayList;
6
7
import net.minecraft.client.Minecraft;
8
import net.minecraft.client.gui.GuiPlayerTabOverlay;
9
import net.minecraft.client.network.NetHandlerPlayClient;
10
import net.minecraft.client.network.NetworkPlayerInfo;
11
import net.minecraft.entity.Entity;
12
import net.minecraft.entity.player.EntityPlayer;
13
import net.minecraft.util.EntitySelectors;
14
15
public class PlayerUtils {
16
	
17
	public static List<EntityPlayer> getTabPlayerList() {
18
        final NetHandlerPlayClient var4 = Minecraft.getMinecraft().thePlayer.sendQueue;
19
        final List<EntityPlayer> list = new ArrayList<>();
20
        final List players = GuiPlayerTabOverlay.field_175252_a.sortedCopy(var4.getPlayerInfoMap());
21
        for (final Object o : players) {
22
            final NetworkPlayerInfo info = (NetworkPlayerInfo) o;
23
            if (info == null) {
24
                continue;
25
            }
26
            list.add(Minecraft.getMinecraft().theWorld.getPlayerEntityByName(info.getGameProfile().getName()));
27
        }
28
        return list;
29
    }
30
	
31
    /**
32
     * Gets the closest player to the entity within the specified distance (if distance is less than 0 then ignored).
33
     * Args: entity, dist
34
     */
35
    public static EntityPlayer getClosestPlayerToEntity(Entity entityIn, double distance)
36
    {
37
        return getClosestPlayer(entityIn.posX, entityIn.posY, entityIn.posZ, distance);
38
    }
39
40
    /**
41
     * Gets the closest player to the point within the specified distance (distance can be set to less than 0 to not
42
     * limit the distance). Args: x, y, z, dist
43
     */
44
    public static EntityPlayer getClosestPlayer(double x, double y, double z, double distance)
45
    {
46
        double d0 = -1.0D;
47
        EntityPlayer entityplayer = null;
48
        
49
        CopyOnWriteArrayList<EntityPlayer> playerEntities = Minecraft.getMinecraft().theWorld.playerEntities;
50
        
51
        if (playerEntities.contains(Minecraft.getMinecraft().thePlayer)) {
52
        	playerEntities.remove(Minecraft.getMinecraft().thePlayer);
53
        }
54
        
55
        for (int i = 0; i < playerEntities.size(); ++i)
56
        {
57
            EntityPlayer entityplayer1 = (EntityPlayer)Minecraft.getMinecraft().theWorld.playerEntities.get(i);
58
            
59
            if (entityplayer1 == Minecraft.getMinecraft().thePlayer) {
60
            	
61
            }else {
62
            	if (EntitySelectors.NOT_SPECTATING.apply(entityplayer1))
63
                {
64
                    double d1 = entityplayer1.getDistanceSq(x, y, z);
65
66
                    if ((distance < 0.0D || d1 < distance * distance) && (d0 == -1.0D || d1 < d0))
67
                    {
68
                        d0 = d1;
69
                        entityplayer = entityplayer1;
70
                    }
71
                }
72
            }
73
            
74
        }
75
76
        return entityplayer;
77
    }
78
	
79
}

What this file does

getTabPlayerList mirrors Sigma's helper: it takes the connection's player info map (netHandler.getPlayerInfoMap), sorts it with GuiPlayerTabOverlay.field_175252_a.sortedCopy, and resolves each entry's game profile name back to a world player via getPlayerEntityByName. The result is the list the Hypixel watchdog signature cross-checks against: an entity that is invisible, name-anomalous and absent from this list is treated as a bot. Because the tab list is rebuilt on every call, the check reflects the server's current tab state rather than a cached snapshot.

The rest of the file is the client's general targeting utility: getClosestPlayer and getClosestPlayerToEntity scan the world's player entities through EntitySelectors.NOT_SPECTATING and return the nearest one within a distance bound, excluding the local player. Combat modules use these for target selection, which is how the antibot filter's output becomes a shared input across the client's combat features rather than a private list.

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 KillAura_AntiBotDetection (skip-the-bait NPC probe)

KillAura_AntiBotDetection.java124 lines · Java
1
package me.sendpacket.anticheat.anticheat.Checks.KillAura.Modes;
2
3
import com.comphenix.protocol.PacketType;
4
import com.comphenix.protocol.events.PacketEvent;
5
import me.sendpacket.anticheat.anticheat.AntiCheat;
6
import me.sendpacket.anticheat.anticheat.Managers.CheckManager;
7
import me.sendpacket.anticheat.anticheat.Checks.SubCheck;
8
import me.sendpacket.anticheat.anticheat.Utils.AlarmUtil;
9
import me.sendpacket.anticheat.anticheat.Utils.NPC;
10
import me.sendpacket.anticheat.anticheat.Utils.PlayerUtil;
11
import org.bukkit.Bukkit;
12
import org.bukkit.entity.Player;
13
import org.bukkit.event.entity.EntityDamageByEntityEvent;
14
15
import java.util.HashMap;
16
17
public class KillAura_AntiBotDetection extends SubCheck {
18
    public KillAura_AntiBotDetection() {
19
        super("KillAura AntiBotDetection", CheckManager.KillAura_Check);
20
    }
21
22
    public static HashMap<Player, NPC> BotList = new HashMap<>();
23
    public static HashMap<Player, Integer> BotTimer = new HashMap<>();
24
    public static HashMap<Player, Boolean> BotHit = new HashMap<>();
25
    public static HashMap<Player, Boolean> DidBotCheck = new HashMap<>();
26
    public static HashMap<Player, Integer> CombatTimer = new HashMap<>();
27
    public static HashMap<Player, Integer> Hits = new HashMap<>();
28
29
    public void onTickUpdate() {
30
        for (Player p : Bukkit.getOnlinePlayers()) {
31
            if (BotList.get(p) != null) {
32
                BotList.get(p).teleport(PlayerUtil.getBlockBehindPlayer(p, -1), false);
33
            }
34
            CombatTimer.put(p, CombatTimer.get(p) != null ? CombatTimer.get(p) + 1 : 1);
35
            if (CombatTimer.get(p) > 10) {
36
                Hits.put(p, 0);
37
            }
38
            if (CombatTimer.get(p) > 40) {
39
                if (BotList.get(p) != null) {
40
                    BotList.get(p).destroy();
41
                    BotList.put(p, null);
42
                }
43
                DidBotCheck.put(p, false);
44
            }
45
46
        }
47
    }
48
49
    public void onEnityDamageByEntity(EntityDamageByEntityEvent event)
50
    {
51
        if(event.getDamager() instanceof Player && event.getEntity() instanceof Player)
52
        {
53
            Player player = (Player)event.getDamager();
54
            Player entity = (Player)event.getEntity();
55
56
            CombatTimer.put(player, 0);
57
58
            Hits.put(player, Hits.get(player) != null ? Hits.get(player) + 1 : 1);
59
60
            if (player.getAllowFlight())
61
                return;
62
63
            if(Hits.get(player) != null)
64
            {
65
                if(Hits.get(player) > 1)
66
                {
67
                    if(DidBotCheck.get(player) != null)
68
                    {
69
                        if(DidBotCheck.get(player) == false)
70
                        {
71
                            if(BotList.get(player) == null)
72
                            {
73
                                NPC new_npc = new NPC(player.getName(), player.getLocation(), AntiCheat.Plugin);
74
                                BotHit.put(player, false);
75
                                new_npc.setRecipientType(NPC.Recipient.LISTED_RECIPIENTS);
76
                                new_npc.addRecipient(player);
77
                                new_npc.teleport(PlayerUtil.getBlockBehindPlayer(player, -1), false);
78
                                new_npc.spawn(false, false);
79
                                NPC.Action new_act = new NPC.Action();
80
                                new_act.setInvisible(true);
81
                                new_npc.setAction(new_act);
82
                                BotList.put(player, new_npc);
83
                            }else{
84
                                BotTimer.put(player, BotTimer.get(player) != null ? BotTimer.get(player) + 1 : 1);
85
                                if(BotTimer.get(player) > 10) {
86
                                    if (BotHit.get(player) != null) {
87
                                        if (BotHit.get(player) == false) {
88
                                            AlarmUtil.AddViolation(player, CheckManager.KillAura_Check, CheckManager.KillAura_Check.kick_max, "KillAura AntiBotDetection.");
89
                                        }
90
                                    }
91
                                    BotTimer.put(player, 0);
92
                                    DidBotCheck.put(player, true);
93
                                    BotList.get(player).destroy();
94
                                    BotList.put(player, null);
95
                                    BotHit.put(player, false);
96
                                }
97
                            }
98
                        }
99
                    }
100
                }
101
            }
102
        }
103
    }
104
105
    public void onPacketReceiving(PacketEvent event) {
106
        if(event.getPacket().getType().equals(PacketType.Play.Client.USE_ENTITY)) {
107
            Player player = event.getPlayer();
108
109
            int targetID = event.getPacket().getIntegers().read(0);
110
111
            if (BotList.get(player) != null) {
112
                if (targetID == BotList.get(player).getEntityId()) {
113
                    if (player.getAllowFlight())
114
                        return;
115
                    DidBotCheck.put(player, true);
116
                    BotHit.put(player, true);
117
                    BotList.get(player).destroy();
118
                    BotList.put(player, null);
119
                    CombatTimer.put(player, 0);
120
                }
121
            }
122
        }
123
    }
124
}

How it counteracts this module

network-dev's AntiBotDetection probes the client that classifies entities as bots and then refuses to attack the server-planted decoy. On the second hit of a real player (Hits > 1 with CombatTimer reset on every damage event) it spawns an invisible NPC named after the attacker one block behind him, delivered only to that player, and starts a 10-tick BotTimer. A USE_ENTITY packet targeting the NPC's entity id sets BotHit true and destroys the probe; ten ticks without a hit add a KillAura violation and destroy it. The probe re-arms on every second hit, so it follows the player through the whole fight.

Spicy's Hypixel path is a direct target: the probe is invisible, its custom name equals its entity name, and it never appears in any tab list, which is exactly the primary watchdog signature hypixelAntibot classifies. The module queues the NPC into removeThese, the post-phase drain deletes it from the client world, and the killaura's target list never contains it, which is precisely the state the probe rewards with a violation. The Advanced sweep removes it even faster: any invisible entity in loadedEntityList is deleted on the next pre update, well inside the 10-tick probe window.

Tolerance and bypass surface: the check only arms after two hits within the 10-tick combat window and skips players with flight enabled. A killaura that does not filter invisible entities hits the NPC and clears the probe, which is the outcome the module is designed to prevent. Attacking the probe once to clear it and then filtering it passes this check, at the cost of a decoy hit that the companion BotHit check scores.

anticheat KillAura_BotHit (hit-the-bait NPC probe)

KillAura_BotHit.java86 lines · Java
1
package me.sendpacket.anticheat.anticheat.Checks.KillAura.Modes;
2
3
import com.comphenix.protocol.PacketType;
4
import com.comphenix.protocol.events.PacketEvent;
5
import me.sendpacket.anticheat.anticheat.AntiCheat;
6
import me.sendpacket.anticheat.anticheat.Managers.CheckManager;
7
import me.sendpacket.anticheat.anticheat.Checks.SubCheck;
8
import me.sendpacket.anticheat.anticheat.Utils.AlarmUtil;
9
import me.sendpacket.anticheat.anticheat.Utils.NPC;
10
import me.sendpacket.anticheat.anticheat.Utils.PlayerUtil;
11
import org.bukkit.Bukkit;
12
import org.bukkit.entity.Player;
13
import org.bukkit.event.entity.EntityDamageByEntityEvent;
14
15
import java.util.HashMap;
16
import java.util.Random;
17
18
public class KillAura_BotHit  extends SubCheck {
19
    public KillAura_BotHit() {
20
        super("KillAura BotHit", CheckManager.KillAura_Check);
21
    }
22
23
    public static HashMap<Player, NPC> PlayerNPC = new HashMap<>();
24
    public static HashMap<Player, Integer> NPCHits = new HashMap<>();
25
    public static HashMap<Player, Integer> NPCTimer = new HashMap<>();
26
    static Random rnd = new Random();
27
28
    public void onTickUpdate() {
29
        for (Player p : Bukkit.getOnlinePlayers()) {
30
            if (PlayerNPC.get(p) != null) {
31
                PlayerNPC.get(p).teleport(PlayerUtil.getLocationFront(p, -2), false);
32
            }
33
            NPCTimer.put(p, NPCTimer.get(p) != null ? NPCTimer.get(p) + 1 : 1);
34
            if (NPCTimer.get(p) > 20) {
35
                if (NPCHits.get(p) != null) {
36
                    if (NPCHits.get(p) > 2) {
37
                        AlarmUtil.AddViolation(p, CheckManager.KillAura_Check, "KillAura BotHit " + NPCHits.get(p) + " hits.");
38
                    }
39
                }
40
                NPCHits.put(p, 0);
41
                NPCTimer.put(p, 0);
42
            }
43
        }
44
    }
45
46
    public void onEnityDamageByEntity(EntityDamageByEntityEvent event)
47
    {
48
        if (event.getDamager() instanceof Player) {
49
            Player player = (Player) event.getDamager();
50
51
            if(PlayerNPC.get(player) == null)
52
            {
53
                NPC new_npc = new NPC(player.getName(), PlayerUtil.getLocationFront(player, 1), AntiCheat.Plugin);
54
55
                new_npc.setRecipientType(NPC.Recipient.LISTED_RECIPIENTS);
56
                new_npc.addRecipient(player);
57
                new_npc.spawn(false,false);
58
59
                NPC.Action new_act = new NPC.Action();
60
                new_act.setInvisible(true);
61
                new_npc.setAction(new_act);
62
63
                PlayerNPC.put(player, new_npc);
64
            }
65
        }
66
    }
67
68
    public void onPacketReceiving(PacketEvent event)
69
    {
70
        if(event.getPacket().getType().equals(PacketType.Play.Client.USE_ENTITY))
71
        {
72
            Player player = event.getPlayer();
73
74
            int targetID = event.getPacket().getIntegers().read(0);
75
            if(PlayerNPC.get(player) != null)
76
            {
77
                if(targetID == PlayerNPC.get(player).getEntityId())
78
                {
79
                    if (player.getAllowFlight())
80
                        return;
81
                    NPCHits.put(player, NPCHits.get(player) != null ? NPCHits.get(player) + 1 : 1);
82
                }
83
            }
84
        }
85
    }
86
}

How it counteracts this module

BotHit is the complementary probe: it watches for the client that attacks the decoy at all. On the first damage event it spawns an invisible NPC one block in front of the player and re-teleports it to two blocks in front every tick; each USE_ENTITY packet targeting its entity id increments NPCHits, and every 20 ticks more than 2 hits yields a KillAura violation carrying the hit count. The probe is spawned once and follows the player for his whole session.

Spicy's Hypixel autoblock and killaura run their own target selection on the loaded entity list. If the antibot filter has not yet classified the probe (its name rules require either a missing custom tag or a specific format, and the probe's name equals the player's), the NPC remains a valid in-range target and the aura attacks it: the module's own default APS of 10 puts three hits inside the 20-tick window in under half a second. The Advanced path's invisible sweep normally removes the NPC first, so BotHit tends to fire only in the gap between spawn and sweep, but that gap is exactly where an unfiltered aura is exposed.

The two probes together bracket the design space: a killaura that filters the decoy fails AntiBotDetection, one that does not fails BotHit. Spicy survives only if its filter reaches every target decision while the aura never touches the decoy, which requires the static target field and the removal lists to be consulted by every combat path.

anticheat KABot (fake-mob bait, Kauri)

KABot.java50 lines · Java
1
package dev.brighten.ac.check.impl.combat.killaura;
2
3
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientAnimation;
4
import com.github.retrooper.packetevents.wrapper.play.client.WrapperPlayClientInteractEntity;
5
import dev.brighten.ac.api.check.CheckType;
6
import dev.brighten.ac.check.Check;
7
import dev.brighten.ac.check.CheckData;
8
import dev.brighten.ac.check.WAction;
9
import dev.brighten.ac.data.APlayer;
10
import dev.brighten.ac.utils.annotation.Bind;
11
import lombok.val;
12
13
@CheckData(name = "KillAura (Bot)", checkId = "kabot", type = CheckType.KILLAURA)
14
public class KABot extends Check {
15
16
    public KABot(APlayer player) {
17
        super(player);
18
    }
19
20
    private float buffer, buffer2;
21
22
    @Bind
23
    WAction<WrapperPlayClientAnimation> arm = packet -> {
24
        // Lower both buffers on each arm swing to prevent false positives for legitimate players.
25
        // In vanilla 1.8.8, every attack is accompanied by a swing animation, so a legit player's
26
        // attack count and swing count should be roughly equal (net-zero buffer change).
27
        if(buffer > 0) buffer-= 0.05f;
28
        if(buffer2 > 0) buffer2-= 0.25f;
29
    };
30
31
    @Bind
32
    WAction<WrapperPlayClientInteractEntity> packet = packet -> {
33
        val optional = player.getWorldTracker().getCurrentWorld().get().getTrackedEntity(packet.getEntityId());
34
35
        if(optional.isPresent()
36
                && (player.getEntityTrackHandler().clientHasEntity.get()
37
                || !optional.get().getFakeMobs().isEmpty()))  {
38
            if(++buffer > 3) {
39
                flag("Attacked player without attacking bot!");
40
            }
41
        } else buffer = 0;
42
43
        if(player.getMob().getEntityId() == packet.getEntityId()) {
44
            if(++buffer2 > 3) {
45
                buffer = 2;
46
                flag("Player attacked bot");
47
            }
48
        } else buffer2 = 0;
49
    };
50
}

How it counteracts this module

Kauri's KABot check plants fake entities and reads what the client attacks. The world tracker mirrors every spawned entity into a TrackedEntity and attaches invisible fake mobs (three size-10 magma cubes at -1.25/0/+1.25 offsets around a tracked entity plus a size-5 slime kept on the player's aim ray), with clientHasEntity set on a keepalive action once the client acknowledges the spawns. A second bait, a single FakeMob stored on APlayer, is respawned on world change and re-teleported to follow the player's aim line every movement packet.

The first branch (buffer) flags 'Attacked player without attacking bot!' when the client attacks a tracked entity carrying fake mobs more than 3 net times without ever attacking one of them: each C02 on the real entity adds 1 and each C0A swing subtracts only 0.05. The second branch (buffer2) flags 'Player attacked bot' when the client attacks the personal bait's entity id more than 3 net times, and preloads the first buffer to 2. Attacking a fake mob id clears the first buffer, so the check rewards exactly the entity-filtering behavior that antibot modules exist to produce.

The Advanced sweep is the direct hit: Spicy removes every invisible entity in the loaded list, and Kauri's bait mobs are all invisible. Once the sweep deletes them client-side, the killaura attacks the real entity while clientHasEntity is still true, and buffer climbs on each C02. The Hypixel path fails the same way through classification: the bait matches the invisible, name-anomalous, untabbed signature. Either way the module converts Kauri's bait into skipped entities, which is the exact pattern the check scores, and the one state that passes, hitting the bait, is the state the module's whole purpose forbids.

← Back to Analysis Hub