Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk11 min

How to Stop X-Ray on a Minecraft Server with Paper Anti-Xray Settings

A practical Paper guide to stopping X-ray: configure the correct world file, choose between Anti-Xray modes, build complete hidden and replacement lists, test cave exposure, and close bypass and seed-related gaps.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The most effective baseline is Paper’s built-in Anti-Xray enabled separately for each world, usually with engine-mode: 2 or engine-mode: 3, a complete hidden-blocks list, and a matching replacement-blocks list. Mode 1 is cheaper but leaves ores visible when they touch cave air or water. Modes 2 and 3 hide those exposed ores more effectively, although hiding air can increase client rendering work and reduce FPS for some players. Anti-Xray should be combined with restricted bypass permissions, seed-hardening settings and a behavior-focused anti-cheat because no block-obfuscation system is infallible.

What Paper Anti-Xray can and cannot do

Paper Anti-Xray changes the block data sent to ordinary clients. Instead of revealing every underground ore and container in a chunk, the server sends selected blocks as harmless or randomized substitutes until the player legitimately exposes the area. The setting is configurable per world, so a survival world, a resource world and a creative world can use different policies.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This stops the common form of X-ray that searches the client’s received chunk data for diamond, ancient debris, chests or other valuable blocks. It does not prove that every client is honest. A modified client can extend the range at which it displays real blocks, and a client that obtains the world seed can calculate generated ore positions. Paper describes Anti-Xray as preventing the majority of X-raying while explicitly warning that it is not infallible.

  • It protects only worlds where the setting is enabled and correctly loaded.
  • It does not retroactively change a client’s already cached view until chunks are resent.
  • It does not detect suspicious movement, mining speed, inventory activity or coordinated player behavior.
  • It can conceal blocks only within the configured height range and block lists.

Use Anti-Xray as one layer: obfuscation protects the data stream, seed-hardening reduces predictable world-generation information, and anti-cheat or staff review handles behavior that block replacement cannot see.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter | 4Pack Type C Female to A Male Cable Converter for Apple Duo 17 16 15 14 Plus,iWatch Watch 12 11 10,iPad 9 8 Air,Airpods 5 4
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Choose the right engine mode

Paper provides three Anti-Xray engines. The practical choice is a trade-off between concealment, server work, network behavior and client performance.

Mode How it replaces blocks Exposure to cave air or water Cost and side effects Best use
1 Listed hidden blocks become dimension-appropriate common blocks such as stone, deepslate below Y=0, netherrack or end stone. Ores that are directly exposed to air or water remain visible. Least computationally intensive and usually the safest for performance. Small servers where performance matters more than hiding exposed ore, or as a conservative starting point.
2 Hidden blocks and replacement blocks are replaced with randomly generated hidden blocks. Can hide ores exposed to air when air is included in hidden-blocks. More work than mode 1; hiding air can increase client FPS load. Most survival servers that want stronger concealment without mode 3’s chunk-layer behavior.
3 Works like mode 2 but randomizes replacements per chunk layer. Provides the same stronger exposure protection as mode 2 when configured with air. Layer-based randomization can reduce network load during joining and improve chunk-packet compression; Paper notes an approximately twofold reduction in join network load as a design result, not as a universal benchmark. Servers prioritizing strong concealment and efficient chunk delivery, after testing client FPS and CPU use.

For most public survival servers, start with mode 3 if the server and clients tolerate the visual and rendering cost. Choose mode 2 when you want the same basic concealment model but prefer simpler per-chunk behavior. Choose mode 1 only when the lower overhead is more important than hiding ores visible from caves and water.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Before editing: prerequisites and safe preparation

  • Run Paper rather than an unrelated server implementation. Exact file names and available keys vary by Paper release, so check the configuration reference for the version you actually run.
  • Stop the server before editing world configuration. Keep a copy of the configuration and a recent world backup.
  • Identify every world that needs protection. The setting is per world; changing the default does not necessarily override an existing world-specific file.
  • Have a non-administrator test account. A player with the Anti-Xray bypass permission will not see the same result as a normal player.
  • Record the Minecraft version’s ore distribution before setting the height limit. A value that covers ores in one version may omit newly introduced or relocated blocks in another.

Do not paste a configuration fragment into a random YAML file. Paper’s current distributions commonly expose global defaults in a config directory and per-world overrides alongside each world, but the exact path and precedence depend on the Paper version. Open the world-configuration reference for that release and edit the file Paper reports for the target world.

Enable Anti-Xray for a world

In the relevant Paper world configuration, set the Anti-Xray section as follows. YAML indentation is significant; use spaces, not tabs.

anticheat:
  anti-xray:
    enabled: true
    engine-mode: 3
    max-block-height: 64
    update-radius: 2
    use-permission: false
    hidden-blocks:
      - air
      - stone
      - deepslate
      - netherrack
      - end_stone
      - coal_ore
      - deepslate_coal_ore
      - iron_ore
      - deepslate_iron_ore
      - copper_ore
      - deepslate_copper_ore
      - gold_ore
      - deepslate_gold_ore
      - redstone_ore
      - deepslate_redstone_ore
      - lapis_ore
      - deepslate_lapis_ore
      - diamond_ore
      - deepslate_diamond_ore
      - emerald_ore
      - deepslate_emerald_ore
      - ancient_debris
      - chest
      - trapped_chest
      - barrel
      - spawner
    replacement-blocks:
      - stone
      - deepslate
      - netherrack
      - end_stone
      - granite
      - diorite
      - andesite
      - tuff
      - calcite
      - dirt
      - gravel
      - sand
      - sandstone
      - oak_planks
      - spruce_planks
      - cobblestone
      - mossy_cobblestone

The sample follows Paper’s documented mode-3 pattern: it includes air, valuable ores and container-like blocks in hidden-blocks, uses a height limit of 64, sets an update radius of 2 and leaves permission-based activation disabled. Treat the lists as a template, not a universal final list. Add blocks that matter on your server and remove blocks you deliberately want players to see.

Rank #2
Sale
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter | USB C Dongle with 90W Max Power Delivery, 3×5Gbps USB A Data Ports, for MacBook, Dell, and More (Charger Not Included)
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Understand each key

  • enabled: true turns the feature on for this world.
  • engine-mode accepts 1, 2 or 3. Paper’s documented default is disabled with mode 1 as the default engine value, so explicitly set both instead of relying on defaults.
  • hidden-blocks identifies blocks whose real locations should be obfuscated. Include every ore variant used by your Minecraft version, including deepslate variants, and include valuable containers if your server wants them protected.
  • replacement-blocks supplies ordinary blocks that can be shown instead of hidden data in the stronger engines. Use blocks that are visually plausible in the dimension and biome range where they may appear.
  • max-block-height limits how high the obfuscation is applied. Paper’s example uses 64; raise it if valuable blocks on your version generate above that level, and lower it only after confirming that no protected block remains outside the range.
  • update-radius controls how far around a block update Paper refreshes obfuscated data. The documented example uses 2. A larger value can refresh more surrounding blocks but may increase work.
  • use-permission: false means Anti-Xray is applied without requiring a player permission. If you turn it on, verify the permission model carefully so ordinary players do not accidentally receive an exemption.

After saving, start the server and watch the console for YAML parse errors or configuration warnings. If Paper rejects the file, restore the backup, correct indentation or block names, and restart again. Avoid treating a hot reload as proof that the world configuration was applied; a full stop and start is the dependable way to load changed world settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why mode 1 still shows ores in caves

Mode 1 replaces hidden blocks with predictable, dimension-appropriate material. It does not conceal an ore that is already exposed to air or water. A player who enters a cave, ravine or underwater opening may therefore see real ore faces even though ore deeper inside the rock is replaced.

This is expected behavior, not necessarily a failed installation. If cave exposure is the reason players can still find visible ore, switch to mode 2 or 3 and add air to hidden-blocks. Paper documents that, with air included, mode 2 can effectively hide ores even when they are exposed to air. Mode 3 uses the same basic concealment approach with layer-specific randomization.

The FPS trade-off when hiding air

Sending fake blocks in place of air creates more geometry for some clients to render. Paper warns that players may experience FPS drops when air is hidden. The impact depends on client hardware, view distance, resource packs and the amount of underground terrain being loaded; there is no single FPS percentage that applies to every server.

Test with the lowest-end hardware commonly used by your community. If the visual protection is worth keeping but performance is poor, reduce the configured simulation or view distance through the server’s normal performance settings, narrow the protected height only where your ore distribution allows it, or compare mode 2 with mode 3. Do not remove air blindly if exposed-ore concealment is your primary goal.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Set the height and block lists for your version

A list that omits a block variant creates a specific hole in protection. Modern worlds commonly have separate stone and deepslate forms of several ores. Nether and End dimensions also need different replacement material to avoid implausible results. Review the complete block registry for the Minecraft version you run and include:

  • Every valuable ore variant, including stone and deepslate forms where both exist.
  • Rare Nether materials such as ancient debris if players have a reason to X-ray for them.
  • Emerald and other biome-dependent ores if they have economic value on your server.
  • Containers, spawners or custom blocks that should not be revealed through chunk data.
  • air when you need protection against ore faces exposed in caves or water and accept the possible client cost.

Set max-block-height high enough to cover the vertical distribution you intend to protect. Paper’s example value of 64 is a starting point, not a guarantee for every release or custom world generator. If your server uses amplified terrain, custom ores or a modded dimension, verify that the relevant blocks do not generate outside the selected range.

Remove accidental bypasses

Paper documents paper.antixray.bypass as the permission that allows a player to bypass Anti-Xray. Restrict it to trusted administrators who genuinely need to inspect un-obfuscated worlds. Do not grant it to a broad staff group merely because that group has unrelated moderation permissions.

Check permission inheritance as well as direct assignments. A permissions plugin, an operator role or a wildcard node can grant the bypass indirectly. Test with a normal account after every permissions change. If an administrator needs to inspect real blocks, use a separate, explicitly documented account or remove the bypass immediately after the inspection.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Harden the seed and add behavior detection

A client that learns the world seed may derive generated ore locations and work around block obfuscation. Paper recommends seed-hardening measures involving feature-seeds together with Spigot structure-seed options, while also stating that these measures are not complete. Enable the relevant settings for your Paper and Spigot versions, then treat them as risk reduction rather than a guarantee.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray | Data transfer & Fast charging for MacBook, iPhone 17/16/15, iPad, Samsung Galaxy, Apple Watch
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Anti-Xray cannot identify every suspicious action. Add an anti-cheat layer that evaluates mining patterns, movement, reach, interaction rate and other behavior. Configure alerts conservatively and review false positives, especially for experienced players, unusual tunnels and laggy connections. Staff should preserve logs and investigate patterns instead of banning solely because a player found a small number of ores quickly.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Apply and test the configuration

  1. Back up the world and configuration. Keep a copy made before editing and note the Paper build and Minecraft version.
  2. Edit the correct world file. Confirm that the file belongs to the world players use, not only to a global default that an existing world overrides.
  3. Set the mode and lists. Enable Anti-Xray, choose mode 2 or 3, set an appropriate height, and include all ore and container variants you want hidden.
  4. Stop and start the server. Read the startup log for malformed YAML, unknown block names or warnings about ignored keys.
  5. Use a non-bypass account. Ensure the test account does not inherit paper.antixray.bypass.
  6. Load fresh chunks. Travel into terrain that the account has not already cached, or disconnect and reconnect after the server has resent the relevant chunks.
  7. Check several environments. Test solid underground stone, a cave opening, water exposure, the Nether and the End if those worlds are part of your server.
  8. Check legitimate gameplay. Mine toward a hidden ore with ordinary tools and confirm that the real block appears when the player legitimately reaches it.
  9. Measure impact. Watch server tick behavior and memory while several players join and explore. Ask players on lower-end hardware whether underground FPS changed.

Do not use an operator account for the acceptance test. An apparently perfect result on a bypassed account can conceal a permission mistake, while a failed result on a cached chunk can make a working configuration look broken.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshooting: players can still see real ores

Only cave-exposed ores are visible

This is the normal limitation of mode 1. Use mode 2 or 3 and include air in hidden-blocks if hiding exposed faces is worth the client-performance cost.

All underground ores are visible to one player

Check that the player does not have paper.antixray.bypass, directly or through inherited permissions. Then confirm that the server loaded the file for the correct world and that enabled is true in the active configuration.

Some ore types are hidden but others are not

Compare the missing type with your list. A deepslate variant, a newly introduced ore or a custom block must be listed separately when its block ID differs from the stone form. Also verify that the ore is inside max-block-height.

Best Value
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

The configuration appears to do nothing after editing

Look for YAML indentation errors, misspelled keys and edits made while the server was running. Stop the server, restore a known-good file if necessary, apply the change again and restart. Confirm in the startup log that Paper recognized the world configuration.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Players report visual glitches or FPS loss

Hiding air can increase client rendering work. Compare mode 2 and mode 3, test with a smaller community view distance, and identify whether the problem affects only older hardware or all clients. Do not replace the hidden list with a short list until you understand which protection is being removed.

Players still appear to know ore locations

Anti-Xray may be working while a client uses seed-derived locations, extended-range rendering or a different information leak. Review seed-hardening settings, verify that bypass permissions are restricted, and use behavior-focused anti-cheat and staff investigation for the remaining cases.

Performance and maintenance checklist

  • Keep the mode, height and block lists documented beside the world’s version and generator settings.
  • Revisit the lists after every Minecraft upgrade that adds, renames or relocates ores and containers.
  • Test a representative join burst because mode 3’s layer randomization is intended to improve chunk packet compression, while the exact result depends on the server and clients.
  • Monitor CPU, memory, tick timing and client FPS separately; a setting can be acceptable for the server but uncomfortable for players.
  • Keep paper.antixray.bypass limited and audit inherited permissions after staff-role changes.
  • Combine obfuscation with seed-hardening and anti-cheat rather than treating any one control as a complete defense.

Recommended starting profile

For a normal public survival world, enable mode 3, use a height that covers the ores generated by your exact Minecraft version, include air plus all valuable ore variants and protected containers, and start with Paper’s documented update-radius: 2 and use-permission: false. Test on fresh chunks with a non-bypass account. If players on modest hardware experience unacceptable FPS loss, compare mode 2 and adjust performance settings before reducing the hidden-block coverage. If your server cannot tolerate either engine’s cost, mode 1 remains useful for concealing ores buried inside solid blocks, but you must accept that cave-exposed ores will remain visible.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.