
ModGuard
a basic server‑side anti‑cheat and mod‑protection system
About this Mod

Is a security and anti-cheat mod for Minecraft servers, featuring a strict mod whitelist system and real-time X-Ray detection to ensure fair gameplay. Guard your server from unauthorized client modifications and track suspicious mining activity effortlessly.
Features
Mod Whitelist System
- Client Validation - Actively validates client mods against a secure whitelist.
- Strict Enforcement - Automatically kicks players with unauthorized or missing mods and actively blocks mod-bypass attempts.
X-Ray Detection System
- Real-Time Tracking - Tracks ore-mining patterns in real-time across 9 supported ore types.
- Admin Alerts & Tools - Features persistent violation tracking and immediate admin alerts, complete with quick teleport and spectate options.
Configuration & Installation
- Easy Setup - Place
modguard-1.0.0.jarin yourmods/folder. Config files auto-generate inconfig/(modguard_config.jsonandmodguard_violations.json). - Custom Whitelist - Add your server's allowed mod names directly to
"allowedMods"in the config file. - Ore Detection Limits - Configure each ore with specific
threshold,timeWindowSeconds, andenabledtoggles. (Default examples: Diamond triggers at 10 in 300s; Ancient Debris triggers at 5 in 300s. Others are disabled by default).
Commands (OP Level 2)
- General Administration - Use
/modguard listmodsto list loaded mods or/modguard spectate <player>to stealthily observe suspects. - X-Ray Management - Control detection via
/modguard xraylist(show all settings),/modguard xrayvalues <ore> <threshold> <seconds>(adjust limits), and/modguard xray <ore> enable|disable(toggle tracking). - Violation Logs - View records with
/modguard xraylogor wipe the slate clean using/modguard xraylog clear all.
Dependencies:
- Fabric API
Server-Side & Client-Side - Required on both the server and the client. All players must install the same mod in their mods/ folder to connect; missing the mod results in an automatic kick from the server.
Available Versions
How to Install ModGuard on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.4).
Install Mod
Open the mod browser in the dashboard and search for "ModGuard". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.4
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
ModGuard server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.4). You can switch loaders with one click in the panel.
Is ModGuard compatible with fabric?
ModGuard officially supports fabric for Minecraft 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with ModGuard – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if ModGuard consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install ModGuard with just one click on your server.