Anti-Xray

Hide valuable blocks from x-ray cheats.

On this page

X-Ray is a cheat that lets players see valuable blocks (diamond, gold, etc.) through walls. On a Java server, anti-xray can be enabled to conceal valuable blocks from cheating clients.

Enable Anti-Xray#

Anti-xray is configured in server.properties (or via paper-world-defaults.yml if using Paper/Purpur).

Via server.properties#

  1. Open Files → server.properties.
  2. Find and set the following line:
    properties
    anti-xray-enabled=true
    
  3. Save and Restart the server.

Via Paper/Purpur (Stronger)#

Open config/paper-world-defaults.yml and find the anti-xray section:

yaml
anti-xray:
  enabled: true
  engine-mode: 2
  hidden-blocks:
    - diamond_ore
    - deepslate_diamond_ore
    - emerald_ore
    - gold_ore
    - ancient_debris
  replacement-blocks:
    - stone
    - deepslate

Save and restart.

Engine Mode Explained#

ModeBehavior
1Light, good for small servers.
2Conceals more thoroughly, slightly heavier.
3Most aggressive, affects performance.

Tip

Start with `engine-mode: 2`. Increase only if too much still slips through.

Note#

Caution

Anti-xray does not 100% eliminate x-ray (certain mod-based cheats may still bypass it). Add an anti-cheat plugin for layered protection.

Need Help?#

Contact SupportOpen a ticket or ask directly on the Arqonara Discord.