{"id":2791,"date":"2023-03-13T02:31:47","date_gmt":"2023-03-13T02:31:47","guid":{"rendered":"https:\/\/xgamingserver.com\/blog\/?p=2791"},"modified":"2026-06-15T19:20:07","modified_gmt":"2026-06-15T19:20:07","slug":"enabling-anti-xray-on-your-minecraft-server","status":"publish","type":"post","link":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/","title":{"rendered":"Enabling Anti-Xray on your Minecraft server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">X-ray cheating is one of the oldest and most corrosive exploits in multiplayer Minecraft. Whether through a modified client, a resource pack that makes stone transparent, or a fullbright\/cave-finder hack, an x-rayer can see every diamond, ancient debris, and buried chest in your world without ever digging blind. On a survival server that runs on scarcity and fair competition, that ruins the economy and drives away honest players. The good news: if you run <strong>Paper<\/strong> (or a Paper fork like Purpur or Folia), you do not need a plugin at all. Anti-xray is built directly into the server and configured in a single file. This guide walks through exactly how to enable it, what each engine mode actually does to your CPU and bandwidth, and how to tune the block lists so cheaters see nothing but a sea of fake ore.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What anti-xray actually does<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Anti-xray is a server-side obfuscation system. The server normally sends every nearby chunk to the client in full detail, which is what lets x-ray mods read the block data and highlight ores. Anti-xray intercepts that chunk data <em>before it leaves the server<\/em> and rewrites it so that hidden ores are disguised. Either they are replaced with common stone, or the entire underground is flooded with thousands of fake ore signatures so the cheater cannot tell which glints are real. Because the obfuscation happens on the server, no client mod, texture pack, or anti-cheat on the player&#8217;s end can defeat it. The trade-off is that rewriting chunk packets costs CPU time and, in the heavier modes, extra bandwidth. Choosing the right engine mode is mostly about balancing protection against that cost.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Paper, and why Spigot\/vanilla need a plugin instead<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is the single most important thing to get straight before you touch any config. Built-in anti-xray exists <strong>only on Paper and its descendants<\/strong> (Purpur, Folia, and other Paper forks). It does not exist on vanilla Mojang <code>server.jar<\/code>, and it does not exist on plain Spigot or CraftBukkit.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Vanilla (<code>server.jar<\/code> from Mojang):<\/strong> cannot load plugins at all and has no obfuscation feature. There is no native way to stop x-ray. You must switch to Paper, or accept the exposure.<\/li>\n<li><strong>Spigot \/ CraftBukkit:<\/strong> can load plugins but has no built-in anti-xray. You would install a third-party Orebfuscator-style plugin to get equivalent protection.<\/li>\n<li><strong>Paper \/ Purpur \/ Folia:<\/strong> ship anti-xray in the core. No plugin, no extra dependency, no Vault bridge \u2014 just a config setting.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you are still on vanilla, the cleanest move is to migrate to Paper. It is a drop-in replacement that loads your existing world and keeps full vanilla survival behavior while adding anti-xray, performance patches, and plugin support. Most managed hosts make this a one-click jar swap. On our platform you can switch jars and review the relevant config from the control panel \u2014 see the <a href=\"https:\/\/xgamingserver.com\/docs\/minecraft\">Minecraft setup documentation<\/a> for the panel walkthrough, or grab a ready-tuned box from our <a href=\"https:\/\/xgamingserver.com\/minecraft-server-hosting\">managed Minecraft hosting<\/a> where Paper is already the default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Where the config lives: paper-world-defaults.yml<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On modern Paper, world settings are split into two files. <code>paper-world-defaults.yml<\/code> holds the defaults applied to <em>every<\/em> world on the server, and each world can carry its own <code>paper-world.yml<\/code> inside the world folder to override those defaults. Anti-xray lives under the <code>anticheat.anti-xray<\/code> section in either file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To enable it for all worlds at once, open <code>paper-world-defaults.yml<\/code> in your server&#8217;s root directory and find the block below. The four keys you care about are <code>enabled<\/code>, <code>engine-mode<\/code>, <code>hidden-blocks<\/code>, and <code>replacement-blocks<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>anticheat:\n  anti-xray:\n    enabled: true\n    engine-mode: 1\n    max-block-height: 64\n    update-radius: 2\n    lava-obscures: false\n    use-permission: false\n    hidden-blocks:\n      - copper_ore\n      - deepslate_copper_ore\n      - gold_ore\n      - deepslate_gold_ore\n      - iron_ore\n      - deepslate_iron_ore\n      - lapis_ore\n      - deepslate_lapis_ore\n      - redstone_ore\n      - deepslate_redstone_ore\n      - diamond_ore\n      - deepslate_diamond_ore\n      - emerald_ore\n      - deepslate_emerald_ore\n      - ancient_debris\n    replacement-blocks:\n      - stone\n      - oak_planks\n      - deepslate<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Set <code>enabled: true<\/code>, pick your <code>engine-mode<\/code>, save the file, and fully restart the server (Paper reads these world configs at startup, so a reload is not enough). Note that <code>max-block-height<\/code> defaults to <code>64<\/code> \u2014 anti-xray only obfuscates at or below that Y level, since there is no point burning CPU disguising blocks players can already see in the open air. If your ores generate deeper (or you want protection higher up in a custom world), raise it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The three keys that control protection<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">enabled<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A simple boolean. <code>enabled: false<\/code> turns the whole system off; <code>enabled: true<\/code> activates obfuscation for that world. That is the master switch.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">hidden-blocks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is the list of blocks you actually want to protect \u2014 the ores and valuables that x-ray cheaters hunt for. The default list covers all the standard ores (iron, gold, diamond, emerald, lapis, redstone, copper) in both their stone and deepslate variants, plus <code>ancient_debris<\/code> in the Nether. You can add anything else worth hiding: buried chests are not blocks, but you can add blocks like spawners, suspicious sand\/gravel, or modded ores if you run them. Anything in this list is what gets disguised.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">replacement-blocks<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This list only matters in <strong>engine modes 2 and 3<\/strong>. It tells the server which solid blocks to randomly sprinkle <em>fake<\/em> ores into. In mode 1, hidden ores are simply swapped for a single solid block and this list is ignored. In modes 2 and 3, both the real hidden blocks and these replacement blocks get scrambled with random fake-ore data, so the cheater sees ore signatures everywhere and cannot distinguish genuine veins from noise. A common tactic is to include the most common stone types (<code>stone<\/code>, <code>deepslate<\/code>, <code>netherrack<\/code>) so the fakes blend into the natural terrain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">engine-mode 1 vs 2 vs 3: how each works and what it costs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>engine-mode<\/code> value is the heart of the system. It accepts <code>1<\/code>, <code>2<\/code>, or <code>3<\/code>, and the difference between them is the strategy used to hide ore and the resource cost that strategy carries.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">engine-mode 1 \u2014 hide enclosed ores (cheapest)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mode 1 takes every block in your <code>hidden-blocks<\/code> list that is fully enclosed by solid blocks and replaces it with a single, dimension-appropriate solid block: <code>stone<\/code> in the Overworld (or <code>deepslate<\/code> below Y 0), <code>netherrack<\/code> in the Nether, and <code>end_stone<\/code> in the End. To the client, an enclosed diamond vein simply looks like more stone. This is extremely cheap on CPU and adds essentially no bandwidth, because you are sending the same simple block data you would anyway.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The weakness of mode 1 is in the word &#8220;enclosed.&#8221; It only hides ores that are completely surrounded by solid blocks. An ore exposed to a cave, an air pocket, water, or lava is left visible \u2014 because the server can tell the client could legitimately see it. A determined x-rayer can still spot ores that touch cave systems. For most small to mid-size survival servers that just want to deter casual x-ray packs, mode 1 is the sensible default: near-zero cost, meaningful protection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">engine-mode 2 \u2014 fake ore everywhere (strongest)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mode 2 is the heavy artillery. Instead of hiding real ores, it disguises both your <code>hidden-blocks<\/code> and your <code>replacement-blocks<\/code> by scattering randomized fake ore throughout the terrain. The cheater&#8217;s x-ray now lights up like a Christmas tree \u2014 fake diamonds and gold are everywhere, real and fake are indistinguishable, and even ores exposed to caves are buried in noise. This is the most thorough protection available because it does not rely on whether an ore is enclosed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The cost is real. Mode 2 has to compute and inject fake ore data across large volumes of every chunk, which is heavier on CPU, and because the obfuscated chunk data is more complex and less compressible, it increases the bandwidth needed to send chunks to players. On a busy server with high <code>view-distance<\/code>, that overhead adds up. Use mode 2 when protection matters more than raw performance \u2014 large competitive survival or anarchy-adjacent servers, for example.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">engine-mode 3 \u2014 mode 2 with smarter network timing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Mode 3 behaves like mode 2 \u2014 it floods the world with the same randomized fake ore \u2014 but it randomizes the obfuscation per chunk-layer in a way that reduces the network load concentrated at the moment a player joins or loads a fresh batch of chunks. The protection level is essentially the same as mode 2, but the bandwidth spike during heavy chunk-streaming (logins, fast travel, elytra flight) is smoothed out. If you want mode-2-grade protection but your players are reporting lag or rubber-banding while loading terrain, mode 3 is the version to try.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Engine mode<\/th><th>Strategy<\/th><th>Hides cave-exposed ore?<\/th><th>CPU cost<\/th><th>Bandwidth cost<\/th><th>Best for<\/th><\/tr><\/thead><tbody><tr><td><strong>1<\/strong><\/td><td>Replace enclosed ores with one solid block<\/td><td>No (enclosed only)<\/td><td>Very low<\/td><td>None<\/td><td>Most servers; the safe default<\/td><\/tr><tr><td><strong>2<\/strong><\/td><td>Random fake ore across hidden + replacement blocks<\/td><td>Yes<\/td><td>High<\/td><td>High<\/td><td>Competitive \/ high-stakes survival<\/td><\/tr><tr><td><strong>3<\/strong><\/td><td>Like mode 2, randomized per chunk-layer<\/td><td>Yes<\/td><td>High<\/td><td>High, smoothed at join<\/td><td>Mode-2 protection with less join lag<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Per-world overrides<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The settings in <code>paper-world-defaults.yml<\/code> apply to every world. But you rarely want identical anti-xray everywhere. A creative or lobby world has nothing to protect, and obfuscating it just wastes CPU. A high-value resource world might justify mode 3 even if your main world runs mode 1.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To override per world, open the <code>paper-world.yml<\/code> inside that specific world&#8217;s folder and add only the keys you want to change. Anything you do not specify falls back to the defaults file. For example, to turn anti-xray off in a creative world while leaving the global default on:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Inside creative_world\/paper-world.yml\nanticheat:\n  anti-xray:\n    enabled: false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or to push your resource world up to mode 3 while the rest of the server stays on mode 1:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Inside resource_world\/paper-world.yml\nanticheat:\n  anti-xray:\n    enabled: true\n    engine-mode: 3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Restart the server after editing any of these files. If you run multiple worlds through a plugin like Multiverse, each managed world gets its own folder and therefore its own <code>paper-world.yml<\/code>, so you can tune them independently. See our guide on the <a href=\"https:\/\/xgamingserver.com\/blog\/multiverse-minecraft-plugin\/\">Multiverse plugin for running multiple worlds<\/a> for how those world folders are created and named.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tuning the block lists for your server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The default <code>hidden-blocks<\/code> list is sensible, but it is worth reviewing for your specific server. A few practical considerations:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Don&#8217;t over-hide.<\/strong> Every extra block type in <code>hidden-blocks<\/code> is more work for the server. Hiding common stone or dirt is pointless and wastes cycles \u2014 protect only what cheaters actually scan for.<\/li>\n<li><strong>Match your dimensions.<\/strong> <code>ancient_debris<\/code> only matters in the Nether. If you run a Nether-heavy economy, make sure it is in the list (it is, by default).<\/li>\n<li><strong>Modded ores.<\/strong> If you run a modpack-aware Paper fork or datapack ores, add their block IDs to <code>hidden-blocks<\/code> so they are covered too.<\/li>\n<li><strong>Pick believable replacements.<\/strong> In modes 2 and 3, your <code>replacement-blocks<\/code> should be the dominant terrain blocks (<code>stone<\/code>, <code>deepslate<\/code>, <code>netherrack<\/code>) so the fake ore noise blends naturally instead of standing out in obvious patterns.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">After you make changes, test them. Join with an x-ray pack or mod on a throwaway account (or ask a trusted staff member to) and confirm you cannot pick out real veins. With mode 1 you should see ores vanish into stone; with mode 2 or 3 you should see fake ore scattered everywhere, making real finds hopeless to identify.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Anti-xray is not your whole anti-cheat plan<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Obfuscation stops players from <em>seeing<\/em> ore through walls, but it does nothing about flight hacks, kill-aura, reach, or fast-break. Paper&#8217;s <code>anticheat<\/code> section is narrow \u2014 it is primarily the anti-xray system, not a full cheat-detection suite. For movement and combat cheats you still want a dedicated anti-cheat plugin, plus the usual server hardening: keep <code>online-mode=true<\/code> so cheaters cannot spoof usernames, lock down ops, and use a whitelist or proxy for sensitive servers. Anti-xray is one strong, free layer \u2014 treat it as part of a stack, not the entire defense.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Does anti-xray work on Spigot or vanilla Minecraft servers?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. Built-in anti-xray is a Paper feature found under <code>anticheat.anti-xray<\/code> in <code>paper-world-defaults.yml<\/code>. Vanilla Mojang <code>server.jar<\/code> has no obfuscation at all and cannot even load plugins, and plain Spigot\/CraftBukkit has no native anti-xray either. On Spigot you would install a third-party Orebfuscator-style plugin; on vanilla you would need to migrate to Paper first. Because Paper is a drop-in replacement that keeps full survival behavior, switching to it is the simplest path to anti-xray.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Which engine mode should I use \u2014 1, 2, or 3?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Start with <strong>engine-mode 1<\/strong>. It costs almost nothing in CPU or bandwidth and hides every ore that is fully enclosed by solid blocks, which stops the vast majority of casual x-ray users. Move to <strong>mode 2<\/strong> only if you run a competitive or high-stakes survival server and need to also hide ores exposed to caves \u2014 accept that it raises both CPU and bandwidth. If you want mode-2-level protection but players report lag while loading chunks, use <strong>mode 3<\/strong>, which spreads the network cost out so the join-time spike is smaller.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why can players still see some ores after I enabled engine-mode 1?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is expected behavior for mode 1. It only obfuscates ores that are <em>completely enclosed<\/em> by solid blocks. Any ore touching a cave, air pocket, water, or lava is left visible, because the server treats it as something a player could legitimately see. If cave-exposed ore is being x-rayed on your server, switch to <code>engine-mode: 2<\/code> or <code>3<\/code>, which flood the terrain with fake ore regardless of whether real ore is enclosed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Do I have to restart the server after editing paper-world-defaults.yml?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Paper reads its world configuration files at startup, so a full server restart is required for anti-xray changes to take effect \u2014 a <code>\/reload<\/code> will not reliably apply them. Edit <code>enabled<\/code>, <code>engine-mode<\/code>, and your block lists, save the file, then restart. The same applies to any per-world <code>paper-world.yml<\/code> override.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Will anti-xray hurt my server&#8217;s performance or lag players?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It depends on the mode. Engine-mode 1 is extremely light \u2014 it sends essentially the same simple block data it would anyway, so the impact is negligible. Modes 2 and 3 are heavier because they compute and inject randomized fake ore across chunks, raising CPU usage and bandwidth (obfuscated chunk data is larger and less compressible). On servers with high <code>view-distance<\/code> and many players this overhead is noticeable. If mode 2 causes load spikes when players load terrain, mode 3 smooths that network cost over time without sacrificing protection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I enable anti-xray on some worlds but not others?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes \u2014 that is exactly what per-world overrides are for. <code>paper-world-defaults.yml<\/code> sets the default for all worlds, and each world&#8217;s own <code>paper-world.yml<\/code> (inside the world folder) overrides only the keys you specify. Set <code>enabled: false<\/code> in a creative or lobby world to skip the obfuscation cost where there is nothing to protect, or bump a resource world up to <code>engine-mode: 3<\/code> while the rest of the server stays on mode 1. Restart after editing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Minecraft server guides<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/xgamingserver.com\/blog\/how-to-change-the-level-type-of-your-minecraft-server\/\">How to change the level-type of your Minecraft server<\/a><\/li>\n<li><a href=\"https:\/\/xgamingserver.com\/blog\/how-to-disable-animals-spawning-on-your-minecraft-server\/\">How to disable animals spawning on your Minecraft server<\/a><\/li>\n<li><a href=\"https:\/\/xgamingserver.com\/blog\/how-to-temp-ban-a-player-in-your-minecraft-server\/\">How to temp-ban a player on your Minecraft server<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Enable anti-xray, pick the engine mode your server can afford, tune the block lists, and you have shut down one of the most damaging exploits in multiplayer Minecraft \u2014 without paying for a single plugin.<\/p>\n\n\n<!-- xg-tools-mesh -->\n\n<div class=\"wp-block-group xg-tools-box is-layout-flow wp-block-group-is-layout-flow\" style=\"border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:18px 22px;margin-top:8px;background:rgba(76,175,80,.04);\">\n<h3 class=\"wp-block-heading\">Free Minecraft Tools<\/h3>\n<p class=\"wp-block-paragraph\">Speed up your server with our free Minecraft tools:<\/p>\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/xgamingserver.com\/tools\/minecraft\/give-command\">Give Command Generator<\/a><\/li><li><a href=\"https:\/\/xgamingserver.com\/tools\/minecraft\/ore-distribution\">Ore Distribution Chart<\/a><\/li><li><a href=\"https:\/\/xgamingserver.com\/tools\/minecraft\/enchantment-calculator\">Enchantment Calculator<\/a><\/li><li><a href=\"https:\/\/xgamingserver.com\/tools\/minecraft\/achievement-generator\">Achievement Generator<\/a><\/li><\/ul>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>X-ray cheating is one of the oldest and most corrosive exploits in multiplayer Minecraft. Whether through a modified client, a resource pack that makes stone transparent, or a fullbright\/cave-finder hack, an x-rayer can see every diamond, ancient debris, and buried chest in your world without ever digging blind. On a survival server that runs on [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2792,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_gspb_post_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[67,19],"tags":[],"class_list":["post-2791","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-manage-minecraft-server","category-minecraft-server-docs"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.5 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Enabling Anti-Xray on your Minecraft server - XGamingServer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Enabling Anti-Xray on your Minecraft server\" \/>\n<meta property=\"og:description\" content=\"X-ray cheating is one of the oldest and most corrosive exploits in multiplayer Minecraft. Whether through a modified client, a resource pack that makes stone transparent, or a fullbright\/cave-finder hack, an x-rayer can see every diamond, ancient debris, and buried chest in your world without ever digging blind. On a survival server that runs on [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\" \/>\n<meta property=\"og:site_name\" content=\"XGamingServer\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/web.facebook.com\/xgamingserver69\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-13T02:31:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-15T19:20:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png\" \/>\n\t<meta property=\"og:image:width\" content=\"770\" \/>\n\t<meta property=\"og:image:height\" content=\"433\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Youssef Ayman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:site\" content=\"@xgamingserver\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Youssef Ayman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\"},\"author\":{\"name\":\"Youssef Ayman\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e\"},\"headline\":\"Enabling Anti-Xray on your Minecraft server\",\"datePublished\":\"2023-03-13T02:31:47+00:00\",\"dateModified\":\"2026-06-15T19:20:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\"},\"wordCount\":2367,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png\",\"articleSection\":[\"Manage Minecraft server\",\"Minecraft\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\",\"name\":\"Enabling Anti-Xray on your Minecraft server - XGamingServer\",\"isPartOf\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png\",\"datePublished\":\"2023-03-13T02:31:47+00:00\",\"dateModified\":\"2026-06-15T19:20:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/xgamingserver.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Minecraft\",\"item\":\"https:\/\/xgamingserver.com\/blog\/category\/minecraft-server-docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enabling Anti-Xray on your Minecraft server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#website\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"name\":\"XGamingServer\",\"description\":\"Dedicated Game Server Hosting\",\"publisher\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#organization\",\"name\":\"XGamingServer\",\"url\":\"https:\/\/xgamingserver.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"contentUrl\":\"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg\",\"width\":\"1024\",\"height\":\"1024\",\"caption\":\"XGamingServer\"},\"image\":{\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/web.facebook.com\/xgamingserver69\/\",\"https:\/\/x.com\/xgamingserver\",\"https:\/\/www.instagram.com\/xgamingserver\/\",\"https:\/\/www.linkedin.com\/company\/xgamingserver\/\",\"https:\/\/www.pinterest.com\/xgamingserver\/\",\"https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e\",\"name\":\"Youssef Ayman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g\",\"caption\":\"Youssef Ayman\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Enabling Anti-Xray on your Minecraft server - XGamingServer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/","og_locale":"en_US","og_type":"article","og_title":"Enabling Anti-Xray on your Minecraft server","og_description":"X-ray cheating is one of the oldest and most corrosive exploits in multiplayer Minecraft. Whether through a modified client, a resource pack that makes stone transparent, or a fullbright\/cave-finder hack, an x-rayer can see every diamond, ancient debris, and buried chest in your world without ever digging blind. On a survival server that runs on [&hellip;]","og_url":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/","og_site_name":"XGamingServer","article_publisher":"https:\/\/web.facebook.com\/xgamingserver69\/","article_published_time":"2023-03-13T02:31:47+00:00","article_modified_time":"2026-06-15T19:20:07+00:00","og_image":[{"url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png","width":770,"height":433,"type":"image\/png"}],"author":"Youssef Ayman","twitter_card":"summary_large_image","twitter_creator":"@xgamingserver","twitter_site":"@xgamingserver","twitter_misc":{"Written by":"Youssef Ayman","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#article","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/"},"author":{"name":"Youssef Ayman","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e"},"headline":"Enabling Anti-Xray on your Minecraft server","datePublished":"2023-03-13T02:31:47+00:00","dateModified":"2026-06-15T19:20:07+00:00","mainEntityOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/"},"wordCount":2367,"commentCount":0,"publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage"},"thumbnailUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png","articleSection":["Manage Minecraft server","Minecraft"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/","url":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/","name":"Enabling Anti-Xray on your Minecraft server - XGamingServer","isPartOf":{"@id":"https:\/\/xgamingserver.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage"},"thumbnailUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png","datePublished":"2023-03-13T02:31:47+00:00","dateModified":"2026-06-15T19:20:07+00:00","breadcrumb":{"@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#primaryimage","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/xgamingserver.com\/blog\/enabling-anti-xray-on-your-minecraft-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xgamingserver.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Minecraft","item":"https:\/\/xgamingserver.com\/blog\/category\/minecraft-server-docs\/"},{"@type":"ListItem","position":3,"name":"Enabling Anti-Xray on your Minecraft server"}]},{"@type":"WebSite","@id":"https:\/\/xgamingserver.com\/blog\/#website","url":"https:\/\/xgamingserver.com\/blog\/","name":"XGamingServer","description":"Dedicated Game Server Hosting","publisher":{"@id":"https:\/\/xgamingserver.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xgamingserver.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/xgamingserver.com\/blog\/#organization","name":"XGamingServer","url":"https:\/\/xgamingserver.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","contentUrl":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2020\/09\/logo.svg","width":"1024","height":"1024","caption":"XGamingServer"},"image":{"@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/web.facebook.com\/xgamingserver69\/","https:\/\/x.com\/xgamingserver","https:\/\/www.instagram.com\/xgamingserver\/","https:\/\/www.linkedin.com\/company\/xgamingserver\/","https:\/\/www.pinterest.com\/xgamingserver\/","https:\/\/www.youtube.com\/channel\/UCHnOtWxpzaL2r3jM9Jm40EQ"]},{"@type":"Person","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/d76089853704ac189e01449b0e449e3e","name":"Youssef Ayman","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xgamingserver.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fa92e71017a2bb7ab969b798cba0c8f3f827d2d4733dbe2cacf7f195db920fe1?s=96&d=mm&r=g","caption":"Youssef Ayman"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/xgamingserver.com\/blog\/wp-content\/uploads\/2023\/03\/blog-background-13.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/2791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/comments?post=2791"}],"version-history":[{"count":6,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/2791\/revisions"}],"predecessor-version":[{"id":22344,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/posts\/2791\/revisions\/22344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media\/2792"}],"wp:attachment":[{"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/media?parent=2791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/categories?post=2791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xgamingserver.com\/blog\/wp-json\/wp\/v2\/tags?post=2791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}