Compatibility
Minecraft: Java Edition
1.21.x
Platforms
Tags
Creators
Details
Licensed MIT
Published 2 months ago
KeranAntiXray is a high-performance Anti-Xray and Anti-Freecam plugin designed specifically for Paper, Folia, and Canvas 1.21+. It provides advanced Nether Roof protection to prevent players from using Freecam to inspect areas above or below the bedrock layer.
Core Features
World-Based Anti-Xray
- Separate configuration for:
- Overworld
- Nether
- Hide blocks below a configurable Y-level
- Optimized for high-performance servers
Nether Roof Protection (Anti-Freecam) When a player is below the bedrock roof:
- All blocks above the configured roof Y-level are sent as air
- Freecam cannot see bases or builds on the Nether roof when the player is below the bedrock roof
- Full chunk data is restored automatically
- No interference with legitimate roof gameplay
Compatibility
- ✅ Paper 1.21+
- ✅ Folia
- ✅ Canvas
- ✅ Java 21+
- ❌ No ProtocolLib required
- ❌ No external AntiCheat required
Configuration Example
antixray:
enabled: true
worlds:
world:
hide-below-y: 16
world_nether:
anti-freecam:
enabled: true
roof-y: 128
cloak-below-roof-when-on-roof: true
hide-roof-until-player-above-roof: true
Configuration Explanation
roof-y→ Height of the Nether bedrock roofhide-roof-until-player-above-roof→ Sends AIR above roof until player climbs upcloak-below-roof-when-on-roof→ Disables restriction once player is above roof
Designed For
- Survival Servers
- SMP
- Anarchy
- Skyblock with Nether
- Folia / Canvas performance servers
Prevents:
- Freecam roof base scouting
- Xray under bedrock
- Unauthorized structure inspection
Notes
- Operates at chunk data level (server-side)
- Does not modify actual blocks on the server
- Does not interfere with entities
- Fully region-thread safe for Folia


