ViperAntiXray (1.21.x 26.x)
什么是 ViperAntiXray?
ViperAntiXray 是一个仅限服务端的 Fabric 模组,它通过混淆发送给客户端的区块数据包,彻底消除 X-ray(透视)作弊行为。与基于材质包或客户端“反作弊”模组的解决方案不同,ViperAntiXray 在网络层运作:服务器为未暴露的矿石发送虚假方块数据,仅当玩家合法挖掘相邻方块、触发爆炸或获得直接视线时,才会显示真实方块。
关键区别: 无需安装任何客户端即可实现逐 tick 的数据包精确控制,从而消除高延迟下的虚假矿石发现。原版玩家正常连接并看到正常的世界生成结果。使用 X-ray 的玩家只能看到石头、深板岩以及可配置的虚假矿石。
核心抗 X-ray 引擎(未修改)
ViperAntiXray 的核心是 Paper 的异步抗 X-ray 补丁的忠实移植版——自 1.17 以来,这一经过实战考验的引擎一直保护着成千上万的 Paper/Spigot 服务器。我们没有修改核心的混淆逻辑。相反,我们将其封装在 Fabric/Architectury 模块中,并通过事件驱动的功能模块进行了扩展。
引擎模式
| 模式 |
名称 |
行为 |
性能消耗 |
适用场景 |
| 1 |
隐藏 (Hide) |
将 hiddenBlocks 中所有完全被遮挡(周围无空气)的方块替换为 replacementBlocks 中的方块 |
CPU 占用最低 |
预算有限的服务器,基础防护 |
| 2 |
倍增 (Multiply) |
将 hiddenBlocks 和 replacementBlocks 中的所有方块替换为来自 hiddenBlocks 的随机方块 |
CPU 占用中等 |
高价值经济服,无政府服 |
| 3 |
智能 (推荐) |
工作方式与引擎模式 2 非常相似,但在慢速连接下表现更好 |
CPU 占用中等 |
通用用途,混合延迟环境 |
工作原理(简化版)
发送区块数据包 -> 异步工作线程 -> 调色板分析 -> 方块分类
是否揭示? -> 相邻是否有空气/透明方块? -> 是否为隐藏方块?
是 -> 发送真实方块 否 -> 发送虚假/替换方块
- 异步处理: 区块数据包转换在专用的工作线程上运行(可配置池大小)
- 零主线程影响: 世界生成、实体 ticking 和玩家移动绝不会因混淆操作而阻塞
- 按维度配置: 每个维度可以使用不同的引擎模式、高度范围和方块列表
增强你的服务器设置! 请查看我在 Fabric Server Essentials 上的其他服务端模组
配置
文件: config/viperantixray-fabric.toml(首次运行时自动生成)
默认配置
# 默认值
enabled = false
usePermission = false
# 特定世界的值
[overworld]
enabled = true
engineMode = 3
maxBlockHeight = 256
updateRadius = 2
lavaObscures = false
hiddenBlocks = ["#c:ores", "raw_copper_block", "raw_iron_block", "raw_gold_block", "!#viperantixray:hidden_only_ores"]
replacementBlocks = ["#viperantixray:hidden_only_ores", "stone", "deepslate", "andesite", "calcite", "diorite", "dirt", "granite", "gravel", "sand", "tuff", "mossy_cobblestone", "obsidian", "clay", "infested_stone", "amethyst_block", "budding_amethyst", "chest"]
[the_nether]
enabled = true
engineMode = 1
maxBlockHeight = 128
updateRadius = 2
lavaObscures = true
hiddenBlocks = ["ancient_debris", "nether_quartz_ore", "nether_gold_ore", "gold_block", "gilded_blackstone"]
配置选项概览
| 选项 |
类型 |
描述 |
enabled |
bool |
如果设置为 true,指定世界中的抗 X-ray 功能将生效 |
engineMode |
int |
可以是 1、2 或 3 —— 参见 引擎模式 |
maxBlockHeight |
int |
控制应进行混淆的最高方块高度 |
updateRadius |
int |
控制从已显示的方块起多远开始进行混淆(如果你的玩家看到了虚假矿石,请增加此值) |
lavaObscures |
bool |
如果为 true,熔岩旁边的方块将被遮挡 |
hiddenBlocks |
string[] |
要隐藏的方块列表(引擎模式 1)或用于混淆的方块列表(引擎模式 2/3) |
replacementBlocks |
string[] |
将被混淆但不用作假设方块的方块列表(仅限引擎模式 2/3) |
注意: 方块/方块标签前缀 ! 可从方块列表中移除它们。规则从左到右应用;移除项应指定在添加项之后。(自 1.4.10 起)
自定义维度
要在自定义维度中配置 ViperAntiXray,请指定维度 ID:
[dimensions."custom:cool_world"]
enabled = true
engineMode = 3
maxBlockHeight = 256
updateRadius = 2
lavaObscures = false
hiddenBlocks = ["#c:ores", "raw_copper_block"]
replacementBlocks = ["stone", "deepslate"]
引擎模式详情
引擎模式 1 隐藏 (Hide)
将 hiddenBlocks 中所有完全被遮挡(周围无空气)的方块替换为 replacementBlocks 中的方块。只有完全被其他方块包围的隐藏方块才会受到影响。
引擎模式 2 倍增 (Multiply)
将 hiddenBlocks 和 replacementBlocks 中的所有方块替换为来自 hiddenBlocks 的随机方块。创建一片虚假矿石场,以淹没 X-ray HUD 显示。
引擎模式 3 智能 (推荐)
工作方式与引擎模式 2 非常相似,但在慢速连接下表现更好。使用数据包合并来减少高延迟玩家的同步问题。
合法玩家视角
安装此模组后,合法玩家不会注意到任何变化(除非他们具有高延迟或同时修改大量方块,例如爆炸)。
模组开发者
添加到 #viperantixray:hidden_only_ores 方块标签中的矿石方块将从世界中隐藏,但不作为虚假矿石使用。如果你的矿石具有可能导致问题的效果(粒子、声音),这将非常有用。
// data/viperantixray/tags/block/hidden_only_ores.json
{
"replace": false,
"values": [
"mymod:custom_ore",
"mymod:rare_gem_ore"
]
}
新增内容(11 个新功能模块)
所有功能均实现为 me.drex.viperantixray.common.features.* 中的独立模块,通过 Fabric 事件挂钩,且绝不触碰核心引擎。
1. 蜜罐 / 假矿石陷阱
在地底深处生成假的矿脉,只有使用透视外挂的玩家才能看到。挖掘它们会立即标记作弊者。
- 放置: 每个区块的密度可配置(默认:Y=16 以下区块的 0.1%)
- 方块: 钻石、绿宝石、远古残骸、通过标签
#viperantixray:honey_pots 自定义的矿石
- 检测: 当玩家挖掘蜜罐方块时:
- 在
viperantixray:player_data NBT 中增加 suspicion_score(可疑度分数)
- 向拥有
viperantixray.alerts 权限的所有 OP 发送警报
- 可选 Discord Webhook 嵌入消息(包含玩家、坐标、方块、时间戳)
- 记录到
logs/viperantixray/honeypot.log(JSONL 格式,用于 SIEM 数据摄入)
2. 挖矿分析与可疑度评分
追踪每位玩家的每一次方块破坏行为,计算挖矿效率比(矿石/石头),并标记统计异常值。
- 指标:
total_blocks_mined(总挖掘方块数)、ores_mined(按类型统计的矿石数)、stone_broken(破坏的石头数)、efficiency_ratio = ores / stone(效率比)、session_time(会话时长)、chunks_visited(访问过的区块数)、depth_distribution(深度分布)
- 可疑度算法: 每个维度滚动计算平均值和标准差;当
efficiency_ratio > mean + (threshold * stddev) 时触发标记(默认阈值:3.5)
- 命令:
/viperantixray audit <player>、/viperantixray auditlist
3. 邻近性与光线投射衰减
利用快速体素光线投射,动态禁用玩家视线直接路径上的混淆效果。
- 光线投射频率: 每 N 刻执行一次(默认:4 刻 = 每秒 5 次/玩家)
- 半径: 可配置圆锥角度(默认:15)和距离(默认:48 格)
- 带宽节省: 在高人口服务器上,发送给客户端的假方块数量减少约 40%
4. 自适应引擎模式
在负载过高时自动降级引擎模式,以防止幽灵方块、不同步和 TPS 崩溃。
| 触发条件 |
条件 |
行动 |
恢复 |
| 低 TPS |
TPS < 18.0 持续 10 秒 |
降至 Mode 32, Mode 21 |
TPS > 19.5 持续 30 秒后升级 |
| 高延迟 |
平均延迟 > 250ms |
降至 Mode 32, Mode 21 |
延迟 < 200ms 持续 60 秒后升级 |
| 数据包队列 |
异步队列占用 > 80% |
立即降级 |
队列占用 < 40% 后升级 |
| 内存 |
堆内存使用 > 85% |
立即降至 Mode 31 |
堆内存使用 < 70% 后升级 |
5. 异步线程池
将整个区块数据包混淆流水线卸载到主线程之外。
- 工作线程数: 可配置(默认:CPU 核心数 / 2,最小 2,最大 8)
- 队列: 有界阻塞队列(默认:128 个区块)
- 背压机制: 如果队列已满,则回退到同步处理(并记录日志)
6. 子区块剔除
将混淆限制在位于或低于玩家 Y 坐标 + 余量的子区块(16x16x16)范围内。
- 剔除逻辑: 仅处理满足
sectionY <= (playerY >> 4) + cullingMargin 的区块部分
- 默认余量: 2 个子区块(玩家上方 32 格)
- 节省: 对于地表附近的玩家,每个区块数据包的数据包分析次数减少约 60%
7. 声音与光照隐藏
对完全被包围的方块静音,以击败基于声音的 ESP/透视外挂。
- 受影响的方块: 紫水晶风铃、潜影贝振动、岩浆爆裂声、滴水石锥滴水声
- 机制: 完全被包围的发声方块永远不会发送触发声音的状态
8. 爆炸与矿工链式挖掘保护
在大范围方块破坏期间,通过单个数据包批量揭示所有隐藏的矿石。
- 触发条件: TNT、床、重生锚、VeinMiner/Excavator(矿工插件)、WorldEdit、大型苦力怕
- 机制: 收集 5 刻窗口内的变化,发送一个整合后的区块数据包
- 防止: 幽灵石头渲染卡顿、不同步、客户端 FPS 下降
9. 内置维度配置文件
为零配置保护 vanilla 和流行的模组维度提供支持。
预配置文件包括:主世界、下界、末地、深暗之域、天境(Aether)、暮色森林、Betweenlands(如果安装了相应模组则自动检测)。
10. 游戏内管理员检查
处于旁观模式的 OP 可以切换“反透视视野”,即时查看玩家看到的画面,无需重新登录。
- 命令:
/viperantixray inspect [on|off|toggle]
- 视觉效果: 被混淆的方块带有绿色轮廓粒子高亮显示(仅限客户端)
- HUD 显示: 引擎模式、剔除状态、异步队列深度、TPS 影响
11. 实时列表编辑
在运行时修改隐藏/替换方块列表,支持即时热重载,无需重启服务器。
| 命令 |
示例 |
描述 |
/viperantixray addhidden <block> |
addhidden minecraft:copper_ore |
添加到隐藏列表 |
/viperantixray removehidden <block> |
removehidden minecraft:copper_ore |
从隐藏列表中移除 |
/viperantixray addreplacement <block> |
addreplacement minecraft:dirt |
添加到替换列表 |
/viperantixray removereplacement <block> |
removereplacement minecraft:dirt |
从替换列表中移除 |
/viperantixray listhidden |
|
显示当前隐藏方块 |
/viperantixray listreplacements |
|
显示当前替换方块 |
/viperantixray reload |
|
热重载 config.toml |
- 支持标签:
#c:ores、#minecraft:deepslate_ores、#viperantixray:honey_pots
- 否定操作:
!#tag 从列表中移除(从左到右处理)
命令参考
| 命令 |
别名 |
权限 |
描述 |
/viperantixray |
/vx, /antixray |
viperantixray.admin |
显示帮助信息 |
/viperantixray status |
st |
viperantixray.admin |
引擎状态、TPS、队列、工作线程 |
/viperantixray inspect [on|off|toggle] |
ins |
viperantixray.inspect |
切换透视视野 |
/viperantixray audit <player> |
aud |
viperantixray.admin |
显示挖掘统计与可疑度 |
/viperantixray auditlist |
audl |
viperantixray.admin |
前20名可疑玩家列表 |
/viperantixray addhidden <block> |
ah |
viperantixray.admin |
添加到隐藏块列表 |
/viperantixray removehidden <block> |
rh |
viperantixray.admin |
从隐藏块列表中移除 |
/viperantixray addreplacement <block> |
ar |
viperantixray.admin |
添加到替换块列表 |
/viperantixray removereplacement <block> |
rr |
viperantixray.admin |
从替换块列表中移除 |
/viperantixray listhidden |
lh |
viperantixray.admin |
列出隐藏块 |
/viperantixray listreplacements |
lr |
viperantixray.admin |
列出替换块 |
/viperantixray reload |
rl |
viperantixray.admin |
热重载配置 |
/viperantixray alerts |
al |
viperantixray.alerts |
查看诱饵触发记录 |
/viperantixray version |
ver |
|
显示模组版本 |
权限默认值: 所有 viperantixray.* 默认仅限 管理员(op) 使用。请使用 LuckPerms 授予工作人员角色。
性能基准测试
测试环境:i7-12700K, 32GB DDR5-5600, Paper 1.21.1 基线,通过 Spark 分析器模拟 20 名玩家
| 场景 |
玩家数 |
模式 |
TPS 影响 |
堆内存 |
平均区块延迟 |
| 原版生存 |
20 |
3 |
<0.5% |
+12 MB |
1.2 ms |
| 高负载 |
80 |
3 |
0.8% |
+28 MB |
2.1 ms |
| 区块加载风暴 |
50 |
3 |
1.2% |
+15 MB |
3.4 ms |
| 异步 + 剔除优化 |
100 |
3 |
0.6% |
+35 MB |
1.8 ms |
| TNT 连锁爆炸 (100+) |
30 |
3 |
1.5% |
+8 MB |
4.2 ms (批量处理) |
安装指南
前置要求
- Fabric Loader: 0.14.21+ (适用于 1.21.x) / 0.19.3+ (适用于 26.x)
- Fabric API: 匹配你的 Minecraft 版本
- Java: 21 (适用于 1.21.x) 或 25 (适用于 26.x)
步骤
- 下载对应 Minecraft 版本的 JAR 文件
- 放入
mods/ 文件夹(仅服务器需要,客户端非必需)
- 启动服务器一次以生成
config/viperantixray-fabric.toml
- 根据需要编辑配置文件(维度配置、诱饵、分析等)
- 运行
/viperantixray reload 或重启服务器
- 通过
/viperantixray status 验证是否生效
从其他反透视模组迁移
从 Paper/Spigot 原生反透视迁移
- 配置语法几乎相同(
paper.yml 对应 viperantixray-fabric.toml)
- 引擎模式 1:1 兼容
- 维度 ID 映射:
world → minecraft:overworld, world_nether → minecraft:the_nether 等
从 Orebfuscator / EngineMode2 / AntiXray (Bukkit) 迁移
- 引擎模式直接对应
- 方块列表:将
hidden-materials 复制为 hiddenBlocks,replacement-materials 复制为 replacementBlocks
- 不再需要按世界设置
update-radius,现在是在 TOML 中按维度设置
从客户端模组迁移
- 无需更改客户端 ViperAntiXray 是 100% 服务端模组
- 从玩家资源包中移除相关客户端模组以减少混淆
故障排除 / 常见问题
Q: 玩家看到“幽灵方块”/ 挖矿后方块重新出现
A: 增加维度配置中的 updateRadius(默认为 2)。高延迟玩家可能需要设置为 3-4。请检查 /viperantixray status 中的异步队列深度。
Q: 大量玩家加入时 TPS 下降
A: 启用 async.enabled=true,增加 async.workerThreads,将 culling.marginSections 减少至 1。
Q: 诱饵未触发
A: 验证 honeypot.enabled=true,检查 honeypot.minY/maxY 是否与世界高度匹配,确保 hiddenBlocks 包含目标矿石。
Q: 模组添加的矿石未被隐藏
A: 在维度配置中将它们添加到 hiddenBlocks,或在模组的自定义数据包中使用 #viperantixray:hidden_only_ores 标签。
Q: 配置更改未生效
A: 运行 /viperantixray reload;部分设置(如引擎模式、方块列表)支持热重载;但维度的增删需要重启服务器。
ViperAntiXray (1.21.x 26.x)
What Is ViperAntiXray?
ViperAntiXray is a server-side only Fabric mod that completely eliminates X-ray cheating by obfuscating chunk packets sent to clients. Unlike texture-pack based solutions or client-side "anti-cheat" mods, ViperAntiXray operates at the network layer the server sends fake block data for unexposed ores, and only reveals real blocks when players legitimately mine adjacent blocks, trigger explosions, or gain direct line-of-sight.
Key differentiator: Zero client installation required for per tick packet precisison, to eliminate fake ore discovery even on high ping. Vanilla players connect normally and see legitimate world generation. X-ray users see only stone, deepslate, and configurable fake ores.
Core Anti-Xray Engine (Unmodified)
The heart of ViperAntiXray is a faithful port of Paper's Async Anti-Xray patch the same battle-tested engine protecting thousands of Paper/Spigot servers since 1.17. We did not modify the core obfuscation logic. Instead, we wrapped it in a Fabric/Architectury module and extended it with event-driven feature modules.
Engine Modes
| Mode |
Name |
Behavior |
Performance |
Best For |
| 1 |
Hide |
Replace all fully obscured (no air around) blocks from hiddenBlocks with blocks from replacementBlocks |
Lowest CPU |
Budget servers, basic protection |
| 2 |
Multiply |
Replace all blocks from hiddenBlocks and replacementBlocks with random blocks from hiddenBlocks |
Medium CPU |
High-value economies, anarchy |
| 3 |
Smart (Recommended) |
Works very similar to engine mode 2, but works better with slow connections |
Medium CPU |
General purpose, mixed ping |
How It Works (Simplified)
Chunk Packet Sent Async Worker Thread Palette Analysis Block Classification
Reveal? Adjacent Air/Transparent? Hidden Block?
Yes Send Real Block No Send Fake/Replacement
- Async processing: Chunk packet transformation runs on dedicated worker threads (configurable pool size)
- Zero main-thread impact: World generation, entity ticking, and player movement never block on obfuscation
- Per-dimension config: Each dimension can use different engine modes, heights, and block lists
Enhance your server setup! Check out my other server-side mods over at : Fabric Server Essentials
Configuration
File: config/viperantixray-fabric.toml (auto-generated on first run)
Default Configuration
# Default values
enabled = false
usePermission = false
# World specific values
[overworld]
enabled = true
engineMode = 3
maxBlockHeight = 256
updateRadius = 2
lavaObscures = false
hiddenBlocks = ["#c:ores", "raw_copper_block", "raw_iron_block", "raw_gold_block", "!#viperantixray:hidden_only_ores"]
replacementBlocks = ["#viperantixray:hidden_only_ores", "stone", "deepslate", "andesite", "calcite", "diorite", "dirt", "granite", "gravel", "sand", "tuff", "mossy_cobblestone", "obsidian", "clay", "infested_stone", "amethyst_block", "budding_amethyst", "chest"]
[the_nether]
enabled = true
engineMode = 1
maxBlockHeight = 128
updateRadius = 2
lavaObscures = true
hiddenBlocks = ["ancient_debris", "nether_quartz_ore", "nether_gold_ore", "gold_block", "gilded_blackstone"]
Config Option Overview
| Option |
Type |
Description |
enabled |
bool |
If set to true, anti-xray will be active in the specified world |
engineMode |
int |
Can be 1, 2, or 3 see Engine Modes |
maxBlockHeight |
int |
Controls the max height at which blocks should get obfuscated |
updateRadius |
int |
Controls how many blocks away from shown blocks obfuscation should start (if your players see fake ores, increase this value) |
lavaObscures |
bool |
If true, blocks next to lava will get obscured |
hiddenBlocks |
string[] |
List of blocks to hide (Engine mode 1) or list of blocks to use for obfuscation (Engine mode 2/3) |
replacementBlocks |
string[] |
List of blocks that will be obfuscated, but not used as fake blocks (Engine mode 2/3 only) |
Note: Blocks / block tags can be prefixed ! to remove them from the block list. Rules are applied left-to-right; removals should be specified after additions. (since 1.4.10)
Custom Dimensions
To configure ViperAntiXray in custom dimensions, specify the dimension ID:
[dimensions."custom:cool_world"]
enabled = true
engineMode = 3
maxBlockHeight = 256
updateRadius = 2
lavaObscures = false
hiddenBlocks = ["#c:ores", "raw_copper_block"]
replacementBlocks = ["stone", "deepslate"]
Engine Mode Details
EngineMode 1 Hide
Replaces all fully obscured (no air around) blocks from hiddenBlocks with blocks from replacementBlocks. Only hidden blocks completely surrounded by other blocks are affected.
EngineMode 2 Multiply
Replaces all blocks from hiddenBlocks and replacementBlocks with random blocks from hiddenBlocks. Creates a field of fake ores that overwhelm X-ray HUDs.
EngineMode 3 Smart (Recommended)
Works very similar to engine mode 2, but works better with slow connections. Uses packet coalescing to reduce desync for high-ping players.
Legit Player View
Legit players won't notice any changes when this mod is installed (unless they have high ping or modify a lot of blocks at once, e.g., explosions).
Mod Developers
Ore blocks added to the #viperantixray:hidden_only_ores block tag will be hidden from the world, but not used as fake ore. This is useful if your ore has effects (particles, sounds) that could cause problems.
// data/viperantixray/tags/block/hidden_only_ores.json
{
"replace": false,
"values": [
"mymod:custom_ore",
"mymod:rare_gem_ore"
]
}
What Was Added (11 New Feature Modules)
All features are implemented as independent modules in me.drex.viperantixray.common.features.* they hook via Fabric events and never touch the core engine.
1. Honey-Pot / Fake Ore Traps
Generates fake ore veins deep underground that only X-ray users can see. Mining them instantly flags the cheater.
- Placement: Configurable density per chunk (default: 0.1% of blocks below Y=16)
- Blocks: Diamond, Emerald, Ancient Debris, custom ores via tag
#viperantixray:honey_pots
- Detection: When a player mines a honey-pot block:
- Increments
suspicion_score in viperantixray:player_data NBT
- Sends alert to all ops with
viperantixray.alerts permission
- Optional Discord webhook with embed (player, coords, block, timestamp)
- Logs to
logs/viperantixray/honeypot.log (JSONL format for SIEM ingestion)
2. Mining Analytics & Suspicion Scoring
Tracks every block break per player, computes Mining Efficiency Ratio (ores/stone), and flags statistical outliers.
- Metrics:
total_blocks_mined, ores_mined (by type), stone_broken, efficiency_ratio = ores / stone, session_time, chunks_visited, depth_distribution
- Suspicion Algorithm: Rolling mean/stddev per dimension; flagged when
efficiency_ratio > mean + (threshold * stddev) (default: 3.5)
- Commands:
/viperantixray audit <player>, /viperantixray auditlist
3. Proximity & Raycast Decaying
Dynamically disables obfuscation along the player's direct line of sight using fast voxel raycasting.
- Raycast every N ticks (default: 4 ticks = 5x/sec per player)
- Radius: Configurable cone angle (default: 15) and distance (default: 48 blocks)
- Bandwidth savings: ~40% fewer fake blocks sent to clients on high-pop servers
4. Adaptive Engine Modes
Automatically downgrades engine mode under load to prevent ghost blocks, desync, and TPS crashes.
| Trigger |
Condition |
Action |
Recovery |
| Low TPS |
TPS < 18.0 for 10s |
Mode 32, Mode 21 |
TPS > 19.5 for 30s upgrade |
| High Ping |
Avg ping > 250ms |
Mode 32, Mode 21 |
Ping < 200ms for 60s upgrade |
| Packet Queue |
Async queue > 80% |
Immediate downgrade |
Queue < 40% upgrade |
| Memory |
Heap > 85% |
Mode 31 immediately |
Heap < 70% upgrade |
5. Async Thread Pool
Offloads entire chunk packet obfuscation pipeline off the main thread.
- Worker threads: Configurable (default: CPU cores / 2, min 2, max 8)
- Queue: Bounded blocking queue (default: 128 chunks)
- Backpressure: Falls back to synchronous processing if queue full (logged)
6. Sub-Chunk Culling
Restricts obfuscation to sub-chunks (161616) at or below player's Y-level + margin.
- Culling logic: Only process sections where
sectionY <= (playerY >> 4) + cullingMargin
- Default margin: 2 sections (32 blocks above player)
- Savings: ~60% fewer palette analyses per chunk packet on surface players
7. Sound & Light Concealment
Mutes block sounds for fully encased blocks, defeating sound-based ESP/X-ray.
- Blocks covered: Amethyst chimes, Sculk vibrations, Lava pops, Pointed dripstone drips
- Mechanism: Fully surrounded sound-emitting blocks never send the state that triggers sounds
8. Explosion & Vein-Miner Protection
Batch-reveals all hidden ores in a single packet during large-scale block destruction.
- Triggers: TNT, beds, respawn anchors, VeinMiner/Excavator, WorldEdit, large creepers
- Mechanism: Collects changes in 5-tick window, sends ONE consolidated chunk packet
- Prevents: Ghost stone rendering lag, desync, client FPS drops
9. Built-in Dimension Profiles
Zero-config protection for vanilla and popular modded dimensions.
Pre-configured profiles for: Overworld, Nether, End, Deep Dark, Aether, Twilight Forest, Betweenlands (auto-detected if mod present).
10. In-Game Admin Inspection
Ops in spectator mode can toggle "Anti-Xray Vision" to see exactly what players see instantly, no relog.
- Command:
/viperantixray inspect [on|off|toggle]
- Visual: Obfuscated blocks highlighted with green outline particles (client-side only)
- HUD: Engine mode, culling status, async queue depth, TPS impact
11. Live Block List Editing
Modify hidden/replacement blocks at runtime with instant hot-reload no server restart.
| Command |
Example |
Description |
/viperantixray addhidden <block> |
addhidden minecraft:copper_ore |
Add to hidden list |
/viperantixray removehidden <block> |
removehidden minecraft:copper_ore |
Remove from hidden list |
/viperantixray addreplacement <block> |
addreplacement minecraft:dirt |
Add to replacement list |
/viperantixray removereplacement <block> |
removereplacement minecraft:dirt |
Remove from replacement list |
/viperantixray listhidden |
|
Show current hidden blocks |
/viperantixray listreplacements |
|
Show current replacement blocks |
/viperantixray reload |
|
Hot-reload config.toml |
- Supports tags:
#c:ores, #minecraft:deepslate_ores, #viperantixray:honey_pots
- Negation:
!#tag removes from list (processed left-to-right)
Commands Reference
| Command |
Aliases |
Permission |
Description |
/viperantixray |
/vx, /antixray |
viperantixray.admin |
Show help |
/viperantixray status |
st |
viperantixray.admin |
Engine status, TPS, queue, workers |
/viperantixray inspect [on|off|toggle] |
ins |
viperantixray.inspect |
Toggle X-ray vision |
/viperantixray audit <player> |
aud |
viperantixray.admin |
Show mining stats & suspicion |
/viperantixray auditlist |
audl |
viperantixray.admin |
Top 20 suspicious players |
/viperantixray addhidden <block> |
ah |
viperantixray.admin |
Add to hidden list |
/viperantixray removehidden <block> |
rh |
viperantixray.admin |
Remove from hidden list |
/viperantixray addreplacement <block> |
ar |
viperantixray.admin |
Add to replacement list |
/viperantixray removereplacement <block> |
rr |
viperantixray.admin |
Remove from replacement list |
/viperantixray listhidden |
lh |
viperantixray.admin |
List hidden blocks |
/viperantixray listreplacements |
lr |
viperantixray.admin |
List replacement blocks |
/viperantixray reload |
rl |
viperantixray.admin |
Hot-reload config |
/viperantixray alerts |
al |
viperantixray.alerts |
View honeypot triggers |
/viperantixray version |
ver |
|
Show mod version |
Permission defaults: All viperantixray.* default to op only. Use LuckPerms to grant to staff roles.
Performance Benchmarks
Tested on: i7-12700K, 32GB DDR5-5600, Paper 1.21.1 baseline, 20 players simulated via Spark profiler
| Scenario |
Players |
Mode |
TPS Impact |
Heap |
Avg Chunk Latency |
| Vanilla survival |
20 |
3 |
<0.5% |
+12 MB |
1.2 ms |
| High pop |
80 |
3 |
0.8% |
+28 MB |
2.1 ms |
| Chunk load storm |
50 |
3 |
1.2% |
+15 MB |
3.4 ms |
| Async + Culling |
100 |
3 |
0.6% |
+35 MB |
1.8 ms |
| TNT chain (100+) |
30 |
3 |
1.5% |
+8 MB |
4.2 ms (batched) |
Installation
Requirements
- Fabric Loader: 0.14.21+ (1.21.x) / 0.19.3+ (26.x)
- Fabric API: Matching your Minecraft version
- Java: 21 (1.21.x) or 25 (26.x)
Steps
- Download the correct JAR for your Minecraft version
- Place in
mods/ folder (server only client not required)
- Start server once generates
config/viperantixray-fabric.toml
- Edit config if needed (dimension profiles, honeypot, analytics, etc.)
- Run
/viperantixray reload or restart
- Verify with
/viperantixray status
Migration from Other Anti-Xray
From Paper/Spigot Native
- Config syntax nearly identical (
paper.yml viperantixray-fabric.toml)
- Engine modes 1:1 compatible
- Dimension IDs:
world minecraft:overworld, world_nether minecraft:the_nether, etc.
From Orebfuscator / EngineMode2 / AntiXray (Bukkit)
- Engine modes map directly
- Block lists: copy
hidden-materials hiddenBlocks, replacement-materials replacementBlocks
- No more
update-radius per-world now per-dimension in TOML
From Client-Side Mods
- No client changes needed ViperAntiXray is 100% server-side
- Remove client mods from player packs to reduce confusion
Troubleshooting / FAQ
Q: Players see "ghost blocks" / blocks reappear after mining
A: Increase updateRadius in dimension config (default 2). High ping players may need 3-4. Check /viperantixray status for async queue depth.
Q: TPS drops when many players join
A: Enable async.enabled=true, increase async.workerThreads, reduce culling.marginSections to 1.
Q: Honeypots not triggering
A: Verify honeypot.enabled=true, check honeypot.minY/maxY matches world height, ensure hiddenBlocks includes target ores.
Q: Modded ores not hidden
A: Add to hiddenBlocks in dimension config, or use #viperantixray:hidden_only_ores tag in your mod's data pack.
Q: Config changes not applying
A: Run /viperantixray reload some settings (engine mode, block lists) hot-reload; dimension add/remove requires restart.
评论 0
登录后参与评分
还没有评论,来抢沙发吧