Still loading

SBlock mines beside a barrier shielding diamond ore.
Minecraft · Guide

Configure Paper Anti-Xray for your worlds

Choose a Paper Anti-Xray mode, configure each world, and test its trade-offs and limitations.

On this page

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 .

Official Paper server engine and Anti-Xray guide

PaperMC official project iconPaperMCShips built-in server-side Anti-Xray obfuscation engine modes 1, 2, and 3.Docs

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 .

Data table

Paper built-in Anti-Xray engine-mode trade-offs

Paper built-in Anti-Xray engine-mode trade-offs
Engine modeHow it masks oresBandwidth / CPUBest server profile
engine-mode: 1Replaces solid-buried ores with stone/deepslateGenerally lowest overhead; measureBudget VPS survival hosts
engine-mode: 2Scatters fake ores through solid terrainHigher network cost; measureCompetitive Lifesteal & public SMP
engine-mode: 3Layer-uniform fake ore scatteringCan reduce network load vs mode 2Compare 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 .

Minimal mode 1 example; extend the block list using Paper’s guide.
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: false

Include 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 .

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 .

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 .

Paper Anti-Xray verification steps

  • Set enabled: true and pick engine-mode: 1, 2, or 3 inside config/paper-world-defaults.yml .
  • Select hidden blocks and height from Paper’s recommendations for each world and version.
  • Configure the Nether world’s own paper-world.yml using the path and example in Paper’s guide .
  • Keep use-permission: false on normal servers unless testing bypass roles .
  • Perform a full server restart so obfuscation initializes cleanly across all regions .

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 .

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 .

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 .

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 .

Continue with TAB, PlaceholderAPI, and crates

Java SMP server setup guidePaper plugin troubleshooting

Sources & evidence

Was this article helpful?

Share this post