
Modrinth · Minecraft mod
CAntiXray
CAntiXray is a lightweight anti-xray mod for Fabric 1.20.1-1.20.6 and 26.1.x. It works on dedicated servers and in singleplayer worlds, hiding ores until they’re exposed so xray cheats are ineffective without requiring a client mod.
Quick answer
Which CAntiXray release matches 26.2?
CAntiXray 2.0.0-26.2 targets 26.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is CAntiXray required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does CAntiXray 2.0.0-26.2 need?
2.0.0-26.2 on 26.2. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add CAntiXray without breaking your instance.
Built for CAntiXray 2.0.0-26.2 on 26.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 2.0.0-26.2. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 2.0.0-26.2. It opens that exact file at the source.
About this project
What does CAntiXray add?
CAntiXray is a lightweight, server-side anti-xray mod for Fabric on Minecraft 1.20.1–1.20.6 and 26.1–26.3. Ores buried in stone are sent to players disguised as the stone around them. The real block is sent the moment it becomes exposed, whether by mining, an explosion, a piston or water. X-ray clients see solid rock, and normal players notice nothing.
The real world is never changed. Only the data sent to players is changed, so turning the mod off or removing it is completely safe.
Key Points
- Server-side only: players don't need the mod to join. It also works in singleplayer and on LAN worlds.
- Disguise that blends in: a hidden ore copies the most common stone touching it (stone, deepslate, tuff, granite, netherrack, blackstone and so on), so it doesn't stand out as a stone patch inside tuff or deepslate.
- Two engine modes:
- Mode 1 (hide): buried ores look like the stone around them. This is the lightest option and the default.
- Mode 2 (obfuscate): also scatters fake ores through buried stone, so x-ray only shows noise.
- Natural visibility rules: ores you can really see, such as behind glass or leaves or on lake and ocean floors, are never hidden.
- Instant reveal: ores show up the moment they're uncovered, so you never mine into a "stone" that turns out to be diamond.
- Per-dimension settings: turn each dimension on or off and set a height limit. The End is off by default.
- Fast: chunk sections with no hidden blocks are skipped entirely, nothing above the height limit is scanned, and unloaded chunks are never loaded just to check.
- Hides all vanilla ores in the Overworld and the Nether, including ancient debris and raw iron and copper blocks.
Commands (operators only)
| Command | What it does |
|---|---|
/cantixray about |
Version info |
/cantixray status (or logs) |
Current settings plus live stats: chunks masked, blocks hidden, fake ores, reveals, average cost per chunk |
/cantixray toggle |
Turn anti-xray on or off |
/cantixray mode <1|2> |
Switch between hide and obfuscate |
/cantixray radius <1-6> |
Set the reveal radius |
/cantixray density <0-1> |
Set the share of buried stone turned into fake ores in mode 2 |
/cantixray inspect |
Show how many ores in your current chunk are disguised |
/cantixray reload |
Reload the config without restarting |
/cantixray stats reset |
Reset the counters |
Note: changes made with commands are saved to the config immediately. They apply to chunks sent from then on; rejoin to refresh chunks you've already loaded.
Config
On first run CAntiXray creates config/cantixray.json:
enabled: master on/off switchengineMode:1= hide,2= obfuscaterevealRadius: how close a see-through block must be for an ore to show (default1)treatFluidsAsExposure: ores next to water or lava are visible (defaulttrue)treatTransparentAsExposure: ores next to glass, leaves, slabs and similar blocks are visible (defaulttrue)fakeOreDensity: share of buried stone turned into fake ores in mode 2 (default0.2)hiddenBlocks: list of blocks to hidedimensions: per-dimensionenabled,maxY, fallback blocks and fake-ore list. Default height limits are 64 in the Overworld and 128 in the Nether.
Config files from v1.x are upgraded automatically and keep their settings. A broken config is saved as cantixray.json.broken instead of being overwritten.
Notes
- Requires Fabric Loader and Fabric API.
- Java 17+ for 1.20.x (Java 21 for 1.20.5 and up), Java 25 for 26.x.
- One file per version line:
1.20.x,26.1.x,26.2and26.3. - Each version was tested on a real dedicated server. See the changelog for each version for details.
Project description from Modrinth.
Pick your setup
CAntiXray by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.2
1 loader build26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader build1.20.6
1 loader build1.20.5
1 loader build1.20.4
1 loader build1.20.3
1 loader build1.20.2
1 loader build1.20.1
1 loader build1.20
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
CAntiXray versions and loaders
2.0.0-26.2
cantixray-2.0.0+mc26.2.jar
30 Nov 2026
Looking for an older file? The official Modrinth project page is in Resources.