
anti xray
mod for server so that if someone mines 10 iron/diamonds in 1 minute in survival mode they get banned for 1 day
00—FreefabricServer1.21.1mod
Anti X-Ray Mod
Overview
This server-side mod catches x-ray hackers by detecting when players mine valuable ores too quickly. If someone mines 10 iron or diamond ores within 1 minute in survival mode, they get automatically banned for 1 day.
Features
- Tracks iron ore and diamond ore mining (including deepslate variants)
- Detects suspiciously fast mining patterns
- Automatic 1-day ban for players who exceed the threshold
- Only affects survival mode players (creative/spectator are ignored)
How to Use
Just install the mod on your server - no configuration needed! The protection starts automatically when the server launches.
The mod works silently in the background:
- Players mining normally won't notice anything
- Players using x-ray to find and mine ores quickly will be caught and banned
Tips & Tricks
- The 1-day ban gives players a warning without being too harsh
- Legitimate miners won't trigger this - you'd need incredibly lucky mining to find 10 valuable ores in 1 minute legitimately
- Check your server logs for "Banning player" messages to see who got caught
Known Limitations
- Does not detect x-ray itself, only the suspicious mining speed
- Very fast legitimate miners in extremely ore-rich areas could theoretically trigger false positives (extremely rare)