{"id":98825,"date":"2026-06-05T19:15:45","date_gmt":"2026-06-05T16:15:45","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/"},"modified":"2026-06-05T19:15:45","modified_gmt":"2026-06-05T16:15:45","slug":"max-ml-anti-xray","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/","title":{"rendered":"[MAX] ML Anti XRay"},"content":{"rendered":"<p># AI Anti-Xray Detection Plugin<\/p>\n<p>This plugin is designed to help Minecraft server administrators detect and prevent x-ray cheating using a simple AI model. It monitors players&#8217; ore mining behavior and collects various data points to determine if a player is likely using x-ray mods.<\/p>\n<p>&#8212;<\/p>\n<p>## Key Features<\/p>\n<p>&#8211; **AI-Driven Detection:**<br \/>\n  The plugin uses two sets of model weights (for legit and x-ray behavior) to compute a confidence score indicating the likelihood that a player is x-raying.<\/p>\n<p>&#8211; **Comprehensive Data Collection:**<br \/>\n  &#8211; **Distance Calculation:** Tracks the distance from the last mined ore.<br \/>\n  &#8211; **Exposure Analysis:** Determines whether an ore was naturally visible or revealed due to  nearby block breaking.<br \/>\n  &#8211; **Ore Vein Grouping:** Data is only recorded once per ore vein to avoid duplicate counts.<br \/>\n  &#8211; **Mining History:** Maintains a rolling history of ore mining events (default: 10 minutes).<br \/>\n  &#8211; **Rotation from last ore**: Checks how big of a rotation you&#8217;d have to do in order to reach an ore from the last one.<\/p>\n<p>&#8211; **Dynamic Training System:**<br \/>\n  Use the `\/train <legit|xray>` command to adjust the AI model weights based on player behavior. This allows the model to learn and improve over time:<br \/>\n  &#8211; **Legit Training:** Adjusts the model if a player is confidently a legitimate miner.<br \/>\n  &#8211; **Xray Training:** Adjusts the model when a player is detected as using x-ray mods.<\/p>\n<p>&#8211; **Customizable Configuration:**<br \/>\n  Configure the plugin via `config.yml` to set:<br \/>\n  &#8211; Flag threshold (confidence percentage).<br \/>\n  &#8211; Flag messages.<br \/>\n  &#8211; List of ores to monitor.<br \/>\n  &#8211; Mining time window for data collection.<br \/>\n  &#8211; And more&#8230;<\/p>\n<p>&#8211; **Automatic File Management:**<br \/>\n  The plugin automatically creates necessary folders and files (e.g., ML\/legit.dat, ML\/xray.dat) if they do not exist, ensuring smooth first-time setup.<\/p>\n<p>&#8212;<\/p>\n<p>## How It Works<\/p>\n<p>1. **Data Collection:**<br \/>\n   &#8211; When a player breaks a block, the plugin checks if it&#8217;s an ore of interest.<br \/>\n   &#8211; If a non-ore block is broken, the plugin scans adjacent blocks for ores and marks them as &#8220;revealed.&#8221;<br \/>\n   &#8211; When an ore is mined, the plugin checks if it was naturally exposed (i.e., visible without needing to break any adjacent block) before recording the event.<\/p>\n<p>2. **Feature Extraction:**<br \/>\n   The plugin calculates:<br \/>\n   &#8211; **Player rotation difference** to the ore.<br \/>\n   &#8211; **Distance** from the previous ore break.<br \/>\n   &#8211; **Exposure status** (using the revealed ore list).<br \/>\n   &#8211; **Count** of similar ores mined within the configured time window.<\/p>\n<p>3. **AI Prediction:**<br \/>\n   The collected features are processed through a weighted model, and a confidence score is computed that indicates the likelihood of x-ray usage.<\/p>\n<p>4. **Training &#038; Adaptation:**<br \/>\n   The `\/train` command allows administrators or trusted players to train the model based on observed behavior, updating the weights stored in `ML\/legit.dat` or `ML\/xray.dat`.<\/p>\n<p>5. **Flagging Suspicious Behavior:**<br \/>\n   If the confidence score exceeds the configured threshold, the plugin flags the player which then notifies staff of their potentially unfair behaviour.<\/p>\n<p>&#8212;<\/p>\n<p>## Usage<\/p>\n<p>&#8211; **Installation:**<br \/>\n  Place the plugin jar into your server&#8217;s `plugins` folder. On first run, the necessary configuration and ML data files will be created automatically.<\/p>\n<p>&#8211; **Configuration:**<br \/>\n  Edit `config.yml` in the plugin\u2019s data folder to customize the detection thresholds, messages, and ore list.<\/p>\n<p>&#8211; **Commands:**<br \/>\n  &#8211; `\/train <legit|xray>`<br \/>\n    Use this command to train the AI model based on a player&#8217;s recent mining behavior.<\/p>\n<p>&#8212;<\/p>\n<p>## Conclusion<\/p>\n<p>This AI Anti-Xray Detection Plugin leverages in-game data to help maintain a fair play environment on your server by dynamically learning and adapting to player behavior. Enjoy a smarter, self-improving system for combatting x-ray cheats!<\/p>\n<p>Feel free to reach out with feedback or suggestions to improve the plugin further. Happy mining!<\/p>\n<p>https:\/\/bstats.org\/plugin\/bukkit\/MLAntiXray\/25104<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automatically flag potential xrayers with Machine Learning<\/p>\n","protected":false},"featured_media":98826,"template":"","meta":{"_minecraft_slug":"max-ml-anti-xray","_minecraft_project_id":"u0aVZy46","_minecraft_author":"bbb908","_minecraft_license":"Apache-2.0","_minecraft_downloads":22877,"_minecraft_follows":24,"_minecraft_client_side":"unsupported","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"max-ml-anti-xray.zip","_minecraft_size_bytes":20428107,"_minecraft_version_count":8,"_minecraft_updated_at":"2026-05-16T00:09:55.169949Z","_minecraft_date_created":"2025-03-17T03:36:10.219296Z","_minecraft_date_modified":"2026-01-29T16:00:30.888211Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/max-ml-anti-xray","_minecraft_icon_attachment_id":98826,"_minecraft_imported_at":"2026-06-05T16:15:45+00:00","_minecraft_import_hash":"87d51ea39be50545132d597bdfa6e985","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[124,126,127,129,123,92],"mod_loader":[130,132,134],"minecraft_version":[49,50,51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82],"class_list":["post-98825","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-bukkit","mod_category-management","mod_category-paper","mod_category-spigot","mod_category-technology","mod_category-utility","mod_loader-bukkit","mod_loader-paper","mod_loader-spigot","minecraft_version-1-17","minecraft_version-1-17-1","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[MAX] ML Anti XRay - Minecraft<\/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:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[MAX] ML Anti XRay - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Automatically flag potential xrayers with Machine Learning\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/\",\"name\":\"[MAX] ML Anti XRay - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/max-ml-anti-xray-icon-d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp\",\"datePublished\":\"2026-06-05T16:15:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/max-ml-anti-xray-icon-d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/max-ml-anti-xray-icon-d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/max-ml-anti-xray\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"[MAX] ML Anti XRay\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[MAX] ML Anti XRay - Minecraft","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:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/","og_locale":"en_US","og_type":"article","og_title":"[MAX] ML Anti XRay - Minecraft","og_description":"Automatically flag potential xrayers with Machine Learning","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/","name":"[MAX] ML Anti XRay - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/max-ml-anti-xray-icon-d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp","datePublished":"2026-06-05T16:15:45+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/max-ml-anti-xray-icon-d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/max-ml-anti-xray-icon-d41e90364500f273c8bacb37523cf01121d7b2ae_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/max-ml-anti-xray\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"[MAX] ML Anti XRay"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/98825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/98826"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=98825"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=98825"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=98825"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=98825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}