Paper Anti-Xray: How to Configure and Test Ore Protection
Set up Paper Anti-Xray with a practical checklist for world configuration, engine modes, bypass permissions, performance testing, and ore protection limits.
Fabricio Souza
Founder, GeneX Plugins · 7+ years building Minecraft plugins
Paper includes Anti-Xray functionality that changes information sent to clients about hidden blocks. To deploy it, use the configuration reference for your exact Paper version, choose the intended worlds and engine mode, then test with an ordinary player account. Do not judge protection solely by whether the server starts.
The official Paper Anti-Xray guide explains its modes, settings, and limitations. This article provides an implementation checklist rather than a universal configuration to paste into every server.
What Paper Anti-Xray protects
Anti-Xray aims to make hidden block information less useful to a modified client. It is different from detecting every form of cheating or deciding whether an individual player's mining route deserves a punishment.
Treat ore protection and moderation as separate responsibilities. A protection system can reduce exposed information while staff still need evidence and a consistent review process. Our anti-cheat guide covers the broader choice of server protections.
Before changing anything, define your goal. Are you protecting survival mining, a resource world, or several dimensions with different gameplay rules? Record those worlds and the behavior you want to verify.
Find the configuration your server actually uses
Paper supports world defaults and world-specific configuration. Its configuration documentation explains how those layers interact. Check the documentation for your build instead of assuming that a file path from an older tutorial still applies.
Make a backup before editing. Record whether a setting is inherited or overridden in each target world. An override left behind in one dimension can explain why protection appears to work in one location but not another.
Avoid copying the entire defaults file into every world. Keep intentional overrides small enough that you can understand which setting wins when you revisit the server months later.
Choose an engine mode deliberately
Read Paper's current mode descriptions and compare their behavior with your requirements. Modes differ in the information they send and the work involved. A higher mode number is not a complete deployment decision.
Build a small comparison plan:
| Check | What to record |
|---|---|
| Intended worlds | Every dimension or resource world being protected |
| Configuration | Effective mode and relevant block settings |
| Test player | Ordinary permissions and any bypass permission |
| Player experience | Mining, exploration, visual updates, and reconnects |
| Server impact | Representative performance before and after the change |
Use the official Anti-Xray reference for the available options. Do not combine settings from different generations of Paper without confirming that your build supports them.
Test protection with a non-admin player
Prepare a separate test environment and a controlled underground area. Use an account with the same permissions as a normal survival player. Review documented bypass behavior before interpreting the result; an administrator is not always a representative test subject.
Test the intended worlds, move into newly loaded areas, mine toward hidden blocks, and reconnect. Verify normal mining behavior as well as the protection goal. If you use custom world generation or other plugins that manipulate blocks, include those features in the exercise.
Keep notes about the exact build and configuration. A vague claim that “Anti-Xray does nothing” is difficult to investigate without a world, permission context, and reproduction.
Measure impact during representative gameplay
Compare similar workloads before and after the change. A quiet empty test world does not establish how the server behaves when players explore and load chunks.
Use our Paper performance guide for an investigation workflow. Change one configuration group at a time so you can attribute a regression to something specific. If your measurements show a problem, compare supported modes and settings rather than disabling unrelated protections at random.
Frequently asked questions
Does Anti-Xray replace an anti-cheat plugin?
It addresses a particular information-exposure problem. Movement checks, combat behavior, administrative moderation, and other protections remain separate concerns.
Why does it behave differently between worlds?
Check the effective world configuration, block settings, engine mode, and test account permissions. Also confirm that you are comparing the same server build and testing conditions.
Should I ban someone because they found several ores?
Use your moderation policy and supporting evidence. Ore discovery alone does not establish a reliable explanation of how someone found it.
For a custom mining feature, describe the intended mechanics and integrations before changing the protection model. Keep a tested server backup so configuration experiments remain reversible.
Last updated . Spotted a mistake? Let us know.