
Anti-Exploit
Drop-in Fabric server mod that prevents common combat, interaction and packet-based exploits. This works great with other anti-cheats, such as GrimAC. It also will fix a common problem with Anti xray where a player is able to hit blocks in freecam to reveal ores.
- Combat: Prevents players from hitting through walls, checks for excessive reach, and validates hit angles.
- Player Actions: Restricts actions for dead players, and prevents various entity interaction exploits.
- Block Interaction: Manages block placement and breaking rules, including checks for air placement, distance, angle, and preventing interaction through walls. Also includes checks for long-range block breaking and usage.
- Packets: Hardens the client-server communication by removing sensitive data from packets. This includes stripping teleport data for entities out of view, removing health and equipment details, sanitizing dropped item tags (preserving visible visuals and stack size), and obfuscating sound coordinates to prevent location exploits.
Configuring
config/PandaAntiExploit.json generated at runtime.
Reload at runtime: /panda-anti-exploit reloadConfig
{
"doLogging": false,
"combat": {
"preventWallHit": true,
"checkHitDistance": true,
"checkHitAngle": true,
"fixAttributeSwap": true //Patch attribute swap exploit
},
"player": {
"preventDeadPlayerActions": true
},
"blockPlacement": {
"preventAirPlacement": true,
"checkPlacementDistance": true,
"preventThroughBlockPlacement": true,
"checkPlacementAngle": true,
"preventLongRangeBlockBreaking": true,
"preventLongRangeBlockUsage": true
},
"packet": {
"removeTeleportData": true, //Strip other player's teleport data from packet
"removeHealthTags": true, //Remove health information of other players
"removeHealthTagsFromMobs": true,
"removeEquipmentTags": true, //Remove extra information from equipment (enchants and more)
"removeDroppedItemTags": true, //Remove extra information from dropped items (enchants and more)
"patchSoundExploits": true, //Obsfucate where global sounds came from so triangulation is harder
"patchSoundExploitsStrict": true, //Make global sounds play from same block as player, making triangulation impossible
"preventBlockBreakExploits": true, //Prevent Anti-Xray bypass
"capNetherViewDistance": true, //Make nether view distance match vanilla fog
"capNetherViewDistanceBuffer": false, //Extra 1 chunk buffer for laggy connections
"checkBookNBTSize": true, //Prevent book ban exploits
"maxBookNBTSizeKB": 10 //Maximum book NBT size in KB
}
}
Try it out
hardcoreanarchy.gay (Deathban Anarchy)
sky.hardcoreanarchy.gay (Skyblock Anarchy)
GrimAC Compatability
GrimAC doesn't cancel START_DESTROY_BLOCK packets properly, it also has really poor place/break checks. In order for it to not interfere with how this mod fixes anti-xray, go into your
config/GrimAC/punishments.yml
and comment out Break/Place checks
Misc:
remove-violations-after: 300
checks:
- "Vehicle"
- "NoSlow"
- "Sprint"
- "MultiActions"
#- "Place"
- "Baritone"
#- "Break"
More mods
-
[Dupe Fix](https://modrinth.com/mod/dupefix) - A simple drop-in mod to prevent all forms of duping. TNT-Duping, Gravity block duping, and much more will not work with this mod enabled.
-
[No Lag](https://modrinth.com/mod/nolag) - Stop common causes of lag on your server. Configure to your likings.
-
[TNT Fusion](https://modrinth.com/mod/tntfusion) - Stop massive amounts of TNT from lagging or crashing your server
-
[Attribute Swapping Fix](https://modrinth.com/mod/attribute-swapping-fix) - Simple drop-in mod to stop Attribute Swapping / Breach Swapping on Fabric
Issues
Bugs and problems go on GitHub Issues. There is no Discord support.
License
How to Install Anti-Exploit (Mod)
Anti-Exploit by TreeOfSelf is verified for Fabric across Minecraft versions 1.21.10, 1.21.11, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9 (latest release: 2.1.13+26.3, file size: 316 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.10, 1.21.11, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Anti-Exploit file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Sanitize equipment when the packet is made instead of in write(), send far clamped teleports with no velocity (the fake one flung entities off)
- Fix immortal sulfur cubes: shearing the TNT off and igniting in the same tick (or a dispenser shearing a primed cube) left the cube permanently invulnerable and never exploding. Such cubes are now unprimed, including ones already stuck (
player.fixImmortalSulfurCube, default on).
- Fixed players getting kicked with "Failed to encode packet set_entity_data": health is now stripped from entity data when the packet is made on the server thread instead of while it is being encoded
- Fix mining the same block over and over: digging at a block that is air on the server now sends the real block back, so a ghost block on the client disappears on the first hit.
- Fix: blocks no longer keep showing the mining crack and particles forever after you stop mining. In 26.3 the server sends mining effects until it gets the client's stop packet; when an anticheat check (or this mod's own visibility check) dropped that packet, mining never ended server-side. The server now stops mining when the client stops punching for 20 ticks, or when a stop/abort is refused. Finishing a block still breaks it normally.
- 26.3
- Lag-compensated reach, angle and line-of-sight checks
- Enforce the delay between mined blocks with a real-time budget, so packet mine and insta mine can't outpace a normal client
- Fix attribute swapping the same way as Paper, and reset the attack charge when the held item changes
- fix through block on fence
- 26.2
- More accurate through-block
- Fix bug with place checks
- 26.x
- Fix config issue
- Fix through-block accuracy
- 1.21.11
- Book banning fix
- 1.21.9-1.21.10
- Patch attribute swapping
- Fix lily pads not being able to be placed on water
- Fix riptide attacks not doing damage
- Nether view distance now matches [vanilla fog](<https://minecraft.wiki/w/Fog#Nether_and_ender_dragon>), so hacks & disabling fog won't let you see further
- Fix time out after death with preventDeadPlayerActions
- Fix stripping important visual information off equipment
- Add stripping components off dropped items


