Download Paper and open official Anti-Xray docs
Paper includes a configurable Anti-Xray system that changes block information sent to clients. It can make common X-ray tools less useful, but it has documented limitations and does not replace moderation or backups 1.
Official Paper server engine and Anti-Xray guide
Compare engine-mode 1, 2, and 3 trade-offs
Paper provides three modes. Mode 1 replaces enclosed hidden blocks with ordinary dimension blocks. Mode 2 replaces both hidden and replacement blocks with randomized hidden blocks; mode 3 randomizes by chunk layer and can reduce network load compared with mode 2. Exposed ores and other bypasses remain possible, so read Paper’s limitations and test your choice 1.
Paper built-in Anti-Xray engine-mode trade-offs
| Engine mode | How it masks ores | Bandwidth / CPU | Best server profile |
|---|---|---|---|
| engine-mode: 1 | Replaces solid-buried ores with stone/deepslate | Generally lowest overhead; measure | Budget VPS survival hosts |
| engine-mode: 2 | Scatters fake ores through solid terrain | Higher network cost; measure | Competitive Lifesteal & public SMP |
| engine-mode: 3 | Layer-uniform fake ore scattering | Can reduce network load vs mode 2 | Compare with mode 2 on your server |
Configure hidden-blocks cleanly in paper-world-defaults.yml
Stop the server and back up your configuration. In config/paper-world-defaults.yml, edit the existing anticheat.anti-xray section. This small mode 1 example illustrates the structure; use Paper’s complete recommended block lists for your world and game version, and set the height according to the ores you want to protect 1.
anticheat:
anti-xray:
enabled: true
engine-mode: 1
hidden-blocks:
- diamond_ore
- deepslate_diamond_ore
max-block-height: 64
replacement-blocks: []
update-radius: 2
use-permission: falseInclude ancient_debris inside world_nether overrides
Paper’s guide provides a separate Nether example with ancient_debris, nether_gold_ore, and nether_quartz_ore. Locate the paper-world.yml for the actual Nether world in your server version; folder layouts differ. Copy the example for your selected mode from Paper’s documentation and test it 1.
Test phantom ores safely on Bedrock and slow home Wi-Fi
Test your selected mode on representative clients and connections. Paper notes that adding air to hidden-blocks can make exposed ores harder to find in modes 2 and 3, but can reduce client FPS. Measure performance and review Paper’s documented limitations before deployment 1.
Anti-Xray deployment verification checklist
Restart the server after editing and test with a non-operator account that does not have a bypass permission. Check enclosed and exposed ores in a test world and measure the impact on your clients and server 1.
Paper Anti-Xray verification steps
- Set
enabled: trueand pickengine-mode: 1,2, or3insideconfig/paper-world-defaults.yml1. - Select hidden blocks and height from Paper’s recommendations for each world and version.
- Configure the Nether world’s own
paper-world.ymlusing the path and example in Paper’s guide 1. - Keep
use-permission: falseon normal servers unless testing bypass roles 1. - Perform a full server restart so obfuscation initializes cleanly across all regions 1.
Frequently asked questions
Will Paper Anti-Xray turn legitimate diamonds inside player-mined caves invisible forever?
Anti-Xray changes the block data sent to clients, not the underlying world blocks. Test mining and visibility with your chosen mode and configuration 1.
Can players see chest ESP outlines through walls when engine-mode 2 or 3 hides chests?
Protection depends on the mode, surrounding blocks and configuration. Paper notes that exposed blocks and world-seed knowledge can bypass obfuscation; do not rely on it as a guarantee 1.
Which engine-mode saves bandwidth on crowded mobile crossplay servers?
Paper describes mode 3 as reducing network load compared with mode 2. Measure both with your own clients and server; protection has limitations 1.
Why does an installed X-ray pack still show ores inside open ravines on engine-mode 1?
Mode 1 does not hide ores exposed to air or water. Modes 2 and 3 can still expose air-adjacent ores unless configured to hide air, which may affect client FPS 1.
Continue with TAB, PlaceholderAPI, and crates
Sources & evidence
- Anti-Xray Documentation (PaperMC)
- World Configuration (PaperMC)
- Paper downloads (PaperMC)

