2.0.0-26.2
Compatibility
Changes
CAntiXray v2.0.0 for Minecraft 26.2
File: cantixray-2.0.0+mc26.2.jar
Requires: Minecraft 26.2 (26.2.x), Fabric Loader 0.15+, Fabric API, Java 25.
Install: on the server only. Players don't need it. It also works in singleplayer and on LAN.
Minecraft 26.2
- Updated to Fabric API
0.161.0+26.2. - Replaces v1.0.4 for 26.2.
Tested
- Built and self-tested on a real 26.2 dedicated server. Checks: buried ores are disguised in the chunk packet, the real chunk data stays byte-for-byte unchanged, mining next to an ore reveals it, and mode 2 sends fake ores.
How it works
In the packets sent to players, buried ores look like the stone around them. When a block next to an ore is broken, blown up, moved or washed away, the real ore is sent right away. The world on disk is never changed.
Changes since v1.0.4
Fixes
- Anti-xray now actually runs. In v1.0.4 the section-masking mixin wasn't listed in
cantixray.mixins.json, so no ores were ever hidden. v2 hides ores during chunk packet creation, and the packet buffer size always matches the masked data. - The live world is never modified. Hiding works on a copy of each chunk section.
/cantixraynow needs operator level 2 under the 26.x permission system.
Better anti-xray
- Camouflage that matches the surroundings. A hidden ore copies the most common natural stone touching it: tuff, granite, deepslate, netherrack, blackstone and so on. Ores no longer show up as stone patches inside tuff or deepslate.
- New engine mode 2 (obfuscate). It scatters deterministic fake ores through buried stone, so x-ray shows only noise. Deepslate variants are used inside deepslate. Density is set with
fakeOreDensity. - Correct exposure rules. Glass, leaves, slabs and other blocks you can see through count as exposure. Water and lava are configurable. Ores on lake and ocean floors stay visible, so players don't see fake stone they can legitimately see.
- Reveals on every kind of change. Mining, explosions, pistons and fluids all trigger reveals, not just mining. In mode 2 nearby fake ores are corrected too.
- Per-dimension settings for on/off, a
maxYlimit, fallback blocks and the fake-ore pool. The End is off by default. - Raw iron and raw copper blocks (the big ore veins) are hidden by default.
- Unknown and unloaded neighbouring chunks are never loaded or generated just to check exposure.
Performance
- Sections without any hidden block are skipped through a palette check, without scanning blocks.
- Per-block lookups use flat arrays indexed by block-state id. v1 built strings for every block.
- Nothing above
maxYis scanned (64 in the overworld by default). - The fake-ore layout is seeded once per server start, so resent chunks look the same.
Commands (op only)
/cantixray about | status | toggle | mode <1|2> | radius <1-6> | density <0-1> | reload | inspect | stats reset
status(aliaslogs) shows the settings plus live counters: chunks masked, blocks hidden, fake ores, reveals, and average cost per chunk.inspectshows how many ores in your current chunk are disguised.reloadre-readsconfig/cantixray.jsonwithout a restart.
Config
config/cantixray.jsonis now versioned (configVersion: 2). v1 files are upgraded in place and keep their values.- New keys:
engineMode,treatTransparentAsExposure,fakeOreDensity,dimensions. - A broken config file is backed up as
cantixray.json.brokeninstead of being silently overwritten.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:1jK1JRNv:dtxguC1u"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:1jK1JRNv:dtxguC1u"
}

