
X-ray Fix
X-ray Fix 是一款高性能的 Minecraft 服务器插件,旨在击败视觉型 X-ray 模组和基于种子的 X-ray 漏洞利用。它通过将矿石生成与世界种子解耦,并使用高级数据包级别的混淆技术来向客户端隐藏地下方块来实现这一目标。
功能特性
- 基于种子的 X-ray 防护 — 使用私有服务器密钥剥离并重新放置矿石。即使玩家知道世界种子,也无法预测矿石位置。
- 视觉型 X-ray 防护 — 对于所有隐藏的地下方块,向客户端发送虚假的方块数据(随机矿石和石头)。
- 多维支持 — 为主世界和下界提供自定义混淆规则和虚假材质池。
- 兼容 Folia — 完全线程安全,同时兼容 Folia 和传统 Paper 服务器。
- 性能优化 — 使用
ChunkSnapshot 进行高效扫描,并使用批处理的 sendMultiBlockChange 更新,确保对服务器的 MSPT(每刻毫秒数)零影响。
工作原理
矿石剥离与替换
当区块生成时(或在安装后首次加载时),X-ray Fix 会扫描该区块并移除所有自然生成的矿石。新的矿石位置通过 PRNG(伪随机数生成器)计算得出,种子由区块坐标与私有服务器端秘密组合而成——这使得放置位置对服务器一致,但对玩家来说完全不可预测。
数据包混淆
当区块发送给玩家时,X-ray Fix 会识别所有被隐藏的方块(未暴露在空气或透明方块旁的方块),并在出站数据包中将其替换为从可配置的虚假材质池中随机选择的材质。只要方块未被实际暴露,玩家就看不到真实的方块。
动态揭示
当方块被破坏、放置或炸毁时,X-ray Fix 会立即发送高优先级的多方块更改数据包给所有 6 个相邻邻居——确保新暴露的方块立即显示,且无视觉故障。
要求
- 服务器: Spigot, Bukkit, Paper, Purpur, Pufferfish 或 Folia (1.21.1+)
- Java: 21+
- ProtocolLib (必需)
安装方法
- 下载并将 JAR 文件放入服务器的
plugins 文件夹中。
- 启动服务器以生成
config.yml。
- (可选) 在
config.yml 中设置自定义 secret。如果留空,系统将自动生成一个。
- 根据需要调整
max_y 和 fake_materials。
- 重启服务器,保护生效。

X-ray Fix
X-ray Fix is a high-performance Minecraft server plugin designed to defeat both visual X-ray mods and seed-based X-ray exploits. It works by decoupling ore generation from the world seed and using advanced packet-level obfuscation to hide underground blocks from clients.
Features
- Seed-Based X-ray Protection — Ores are stripped and re-placed using a private server secret. Even if a player knows the world seed, they cannot predict ore locations.
- Visual X-ray Protection — Sends fake block data (random ores and stone) to the client for all hidden underground blocks.
- Multi-Dimension Support — Custom obfuscation rules and fake material pools for both the Overworld and the Nether.
- Folia Compatible — Fully thread-safe and compatible with both Folia and traditional Paper servers.
- Performance Optimized — Uses
ChunkSnapshot for efficient scanning and batched sendMultiBlockChange updates, ensuring zero impact on server MSPT.
How It Works
Ore Stripping & Replacement
When a chunk is generated (or loaded for the first time after installation), X-ray Fix scans it and removes all naturally generated ores. New ore positions are then calculated using a PRNG seeded with the chunk coordinates combined with a private server-side secret — making placement consistent for the server, but completely unpredictable for players.
Packet Obfuscation
When a chunk is sent to a player, X-ray Fix identifies all blocks that are hidden (not exposed to air or transparent blocks) and replaces them in the outgoing packet with random selections from a configurable pool of fake materials. Players never see the real blocks until they're actually exposed.
Dynamic Revealing
When a block is broken, placed, or blown up, X-ray Fix instantly sends high-priority multi-block change packets for all 6 adjacent neighbors — ensuring newly exposed blocks are revealed immediately with no visual glitches.
Requirements
- Server: Spigot, Bukkit, Paper, Purpur, Pufferfish, or Folia (1.21.1+)
- Java: 21+
- ProtocolLib (Required)
Installation
- Download and drop the JAR into your server's
plugins folder.
- Start the server to generate
config.yml.
- (Optional) Set a custom
secret in config.yml. If left empty, one will be auto-generated.
- Adjust
max_y and fake_materials to suit your needs.
- Restart the server and you're protected.
评论 0
登录后参与评分
还没有评论,来抢沙发吧