---
title: "Paper Anti-Xray Settings: Engine Modes and Testing | ZCS"
description: "Set up Paper anti-xray with the right engine mode, hidden blocks and world overrides, then test it so ore stays hidden without hurting performance."
url: "https://www.zcraftstudios.com/blog/paper-anti-xray-settings-guide"
updated: "2026-11-02T01:59:09.107096+00:00"
source: "ZCraft Studios"
---

> Site index for AI agents: https://www.zcraftstudios.com/llms.txt (full reference: https://www.zcraftstudios.com/llms-full.txt). Every page is available as Markdown by adding `.md` to its URL or sending `Accept: text/markdown`.

1. [Home](https://www.zcraftstudios.com/)
2. [Blog](https://www.zcraftstudios.com/blog)
3. Paper Anti-Xray Settings: Engine Modes and Testing

[ All posts](https://www.zcraftstudios.com/blog)

# Paper Anti-Xray Settings: Engine Modes and Testing

ZCraft StudiosOct 15, 2026Updated Nov 2, 2026

Set up Paper anti-xray with the right engine mode, hidden blocks and world overrides, then test it so ore stays hidden without hurting performance.

## In this guide

- [Where the configuration lives](#where-the-configuration-lives)
- [What the engine modes mean](#what-the-engine-modes-mean)
- [A configuration fragment to recognize](#a-configuration-fragment-to-recognize)
- [Test what players actually see](#test-what-players-actually-see)
- [Understanding block lists](#understanding-block-lists)
- [Performance and compatibility testing](#performance-and-compatibility-testing)
- [Troubleshooting](#troubleshooting)
- [Release checklist](#release-checklist)
- [Related guides](#related-guides)
- [Frequently asked questions](#frequently-asked-questions)
- [More guides](#more-guides)

**Quick answer:** Enable anti-xray in the per-world Paper config, choose an engine mode, list the hidden and replacement blocks, and test it, since it adds some CPU cost.

Paper's Anti-Xray feature changes what ore information the server sends to clients. It is intended to reduce the effectiveness of certain client-side ore-location methods, but it should not be described as preventing every form of unfair play.

## Where the configuration lives

On contemporary Paper versions, world defaults are documented under `config/paper-world-defaults.yml`. More specific worlds can have their own Paper configuration overrides, including under namespaced dimension paths on supported versions.

**Before editing:** confirm the server build, take a backup and consult the exact [Paper world configuration reference](https://docs.papermc.io/paper/reference/world-configuration/). The available keys and defaults can change by release.

## What the engine modes mean

| Mode | Concept                                                    | Trade-off                                                   |
| ---- | ---------------------------------------------------------- | ----------------------------------------------------------- |
| 1    | Replace some hidden ores with substitute blocks in packets | Simple obfuscation; visibility varies by surroundings       |
| 2    | Use a more extensive replacement strategy                  | Potentially different client visual and processing behavior |
| 3    | Uses a layer-oriented replacement approach                 | Evaluate support and impact on your own release             |

Do not copy a mode number from an old video without checking current documentation. The correct mode depends on your environment, settings and gameplay needs.

## A configuration fragment to recognize

The following is illustrative structure rather than a drop-in config. Use the values and supported key names published for your exact Paper build:

```
anticheat:
  anti-xray:
    enabled: true
    engine-mode: 1
```

The real config may include additional keys for block lists, maximum height and other behavior. Avoid replacing the entire world-defaults file with a tiny snippet.

## Test what players actually see

Create a staging copy and connect with a normal client account. Compare behavior in Overworld, Nether and any other intended world. Verify that ordinary mining and legitimate resource discovery still feel natural. Review console errors and profiler output if there is a measurable cost.

Do not claim a plugin or built-in feature makes cheating impossible. Pair technical controls with consistent staff review and a clear appeal process.

## Understanding block lists

The official Paper reference distinguishes blocks to hide from replacement candidates. A block that is always visible in normal gameplay may be a poor candidate for obfuscation. Follow current project guidance on tile entities and special blocks. Copying incompatible lists can create unexpected visuals.

## Performance and compatibility testing

Observe MSPT during similar chunk delivery and exploration workloads before and after a change. If you compare at different player counts or without comparable exploration, the result is unreliable.

For profiling, see [How to Read a Spark Profiler Report](https://www.zcraftstudios.com/blog/how-to-read-spark-profiler-minecraft).

## Troubleshooting

| Symptom                                | Check first                                  |
| -------------------------------------- | -------------------------------------------- |
| Setting appears ignored                | Correct world override and restart behavior  |
| Unexpected visuals                     | Engine mode and replacement lists            |
| More lag during exploration            | Measured chunk-processing workload           |
| Players still find ores unfairly       | Anti-Xray limitations and moderation process |
| Different behavior in different worlds | Per-world overrides                          |

## Release checklist

- To do:  
Verified setting names in official version-specific reference
- To do:  
Saved original configuration
- To do:  
Applied minimal changes
- To do:  
Tested with a non-OP player
- To do:  
Compared representative performance
- To do:  
Documented a rollback plan

## Related guides

- [Paper Configuration Files Explained](https://www.zcraftstudios.com/blog/minecraft-paper-configuration-files-explained)
- [Anti-Cheat Plugins Compared](https://www.zcraftstudios.com/blog/minecraft-anticheat-plugins-compared)
- [Minecraft Server Performance Troubleshooting](https://www.zcraftstudios.com/blog/reduce-minecraft-server-lag)

**Conclusion:** Anti-Xray is one control in a broader fair-play strategy. Configure it from current documentation and test the actual player experience.

## Frequently asked questions

**Which engine mode should I use?** The lighter mode replaces hidden blocks with a plain block, while the heavier mode inserts fake ores. Check the Paper docs for your version.

**Does anti-xray cause lag?** It adds CPU cost, so profile after enabling it.

**Does it replace anti-cheat?** No. It only hides ores.

## More guides

- [Minecraft Whitelist Not Working? Fixes for Access Errors](https://www.zcraftstudios.com/blog/minecraft-server-whitelist-not-working)
- [Setting Up CoreProtect: Block Logging and Rollback](https://www.zcraftstudios.com/blog/coreprotect-block-logging-setup)
- [In-Game Report System Setup for Minecraft Servers](https://www.zcraftstudios.com/blog/minecraft-server-report-system-setup)
- [Minecraft Staff Training Checklist: Permissions and Logs](https://www.zcraftstudios.com/blog/minecraft-server-staff-onboarding)
- [Minecraft RCON Explained: Errors and Security Checklist](https://www.zcraftstudios.com/blog/minecraft-server-rcon-security-guide)

## Continue reading

- [ReplayCore: Minecraft Replay Plugin for Anti-Cheat Evidence](https://www.zcraftstudios.com/blog/replaycore-minecraft-replay-plugin-anti-cheat-evidence)
- [Best server.properties Settings: Performance and Security](https://www.zcraftstudios.com/blog/minecraft-server-properties-explained)
- [Update a Minecraft Server to 26.1+: Java 25, Paper, Plugins](https://www.zcraftstudios.com/blog/minecraft-26-1-server-update-guide)
- [Update a Paper Plugin for Minecraft 26.1: Java 25 Guide](https://www.zcraftstudios.com/blog/update-paper-plugin-to-minecraft-26-1)

[ Previous guide Paper Reload vs Restart: Why Plugins Break After /reload](https://www.zcraftstudios.com/blog/paper-reload-versus-restart-explained)[ Next guide Velocity Modern Forwarding Setup and Security Checklist](https://www.zcraftstudios.com/blog/velocity-modern-forwarding-setup-checklist)

<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","alternateName":["ZCS","ZCraft","ZCraftStudios"],"logo":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192},"image":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192},"url":"https://www.zcraftstudios.com","description":"ZCraft Studios (ZCS) creates Minecraft plugins, server configs and tools. Browse resources, compatibility details and setup guides.","email":"Support@zcraftstudios.com","slogan":"Minecraft resources, configurations and custom server development.","knowsAbout":["Minecraft plugins","Minecraft server configuration","Java plugin development","Minecraft server optimization"],"sameAs":["https://dsc.gg/zcraftstudios","https://x.com/ZCraftNetwork","https://www.youtube.com/@zcraft_studios","https://www.instagram.com/ZCraftStudios"],"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"Support@zcraftstudios.com","availableLanguage":["English"],"areaServed":"Worldwide"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","@id":"https://www.zcraftstudios.com/#website","url":"https://www.zcraftstudios.com","name":"ZCraft Studios","alternateName":["ZCS","ZCraft"],"description":"ZCraft Studios (ZCS) creates Minecraft plugins, server configs and tools. Browse resources, compatibility details and setup guides.","inLanguage":"en","publisher":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com"}}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://www.zcraftstudios.com/blog/paper-anti-xray-settings-guide#article","headline":"Paper Anti-Xray Settings: Engine Modes and Testing","url":"https://www.zcraftstudios.com/blog/paper-anti-xray-settings-guide","mainEntityOfPage":"https://www.zcraftstudios.com/blog/paper-anti-xray-settings-guide","isPartOf":{"@type":"WebSite","@id":"https://www.zcraftstudios.com/#website","name":"ZCraft Studios","url":"https://www.zcraftstudios.com"},"speakable":{"@type":"SpeakableSpecification","cssSelector":["h1","main"]},"description":"Set up Paper anti-xray with the right engine mode, hidden blocks and world overrides, then test it so ore stays hidden without hurting performance.","datePublished":"2026-10-15T17:05:11.186576+00:00","dateModified":"2026-11-02T01:59:09.107096+00:00","author":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com/about"},"publisher":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com","logo":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192}},"inLanguage":"en","image":"https://www.zcraftstudios.com/api/og/blog/paper-anti-xray-settings-guide?v=shq0kv"}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zcraftstudios.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://www.zcraftstudios.com/blog"},{"@type":"ListItem","position":3,"name":"Paper Anti-Xray Settings: Engine Modes and Testing","item":"https://www.zcraftstudios.com/blog/paper-anti-xray-settings-guide"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Which engine mode should I use?","acceptedAnswer":{"@type":"Answer","text":"The lighter mode replaces hidden blocks with a plain block, while the heavier mode inserts fake ores. Check the Paper docs for your version."}},{"@type":"Question","name":"Does anti-xray cause lag?","acceptedAnswer":{"@type":"Answer","text":"It adds CPU cost, so profile after enabling it."}},{"@type":"Question","name":"Does it replace anti-cheat?","acceptedAnswer":{"@type":"Answer","text":"No. It only hides ores."}}]}</script>
