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.
No ratings yet
Be the first to rate it.
Community listing page
Community listing page, reviews may not be monitored by the author.
Community voices
Reviews
Log in to review this mod
Reviews are written by ModDex members. Log in and you'll come right back to the review form.
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Runs entirely on the server. Also works in singleplayer.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
Description
CAntiXray is a lightweight anti-xray mod for Fabric 1.20.1-1.20.6 and 26.1.x-26.3. It works on dedicated servers and in client singleplayer worlds, obfuscates vanilla ores (including ancient debris) in chunk data, then reveals real blocks when they're actually exposed. This makes xray cheats ineffective while keeping gameplay natural.
Key Points
- Works on dedicated servers and in client singleplayer/integrated worlds.
- Players do not need the mod on the client in multiplayer.
- Configurable radius and block list.
- Supports overworld and nether ores, including ancient debris.
- Live chat commands:
/cantixray about,/cantixray logs, and/cantixray toggle.
Config
On first run it creates config/cantixray.json. You can edit:
enabled: toggle on/offrevealRadius: how close blocks must be to air/fluid to showtreatFluidsAsExposure: reveal near water/lavahiddenBlocks: list of blocks to obfuscate
Note:
/cantixray toggleupdates the config file immediately.
Notes
- Lightweight and focused on server performance.
- Available for Minecraft
1.20.1-1.20.6and26.1.x-26.3. - The changelog has already been updated for the tested
26.1.2support release.
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.
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
Stats
- Downloads
-
5k
1k
4k
- Used in
- 1 modpack
- Followers
- 0
- In stacks
- 0
- Created
-
- Last synced
-
Nov 30, 2026 7:21 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works
External Links
Stats
- Downloads
-
5k
1k
4k
- Used in
- 1 modpack
- Followers
- 0
- In stacks
- 0
- Created
-
- Last synced
-
Nov 30, 2026 7:21 PM UTC
New file updates sync automatically.
When ModDex last fully re-synced this project from CurseForge or Modrinth. A new file release triggers a resync usually within minutes, and every project is also re-synced on a schedule. Edits that don't ship a file, such as a new description or screenshots, are checked every few hours and can appear before the above date changes.
How syncing works