EventAntiXray

Quick rating

EventAntiXray

No reviews yet

a lightweight Minecraft Fabric mod designed for server administrators to detect potential X-ray cheating

No Theme
No Genre
QoL & Tweaks
Server Utility
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
GNU Lesser General Public License v3.0 only
Latest Version
eventantixray-1.0.5.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

About

Description

EventAntiXray

EventAntiXray is a lightweight Minecraft Fabric mod designed for server administrators to detect potential X-ray cheating. It tracks when players mine specific blocks and alerts staff if suspicious patterns are detected, without affecting gameplay or server performance. Note: This mod is purely observational and doesn't interfere or send packets or affect block visibility.

Features

Smart Detection System

  • Block Break Monitoring: Tracks mining activity for valuable ores and rare blocks
  • Configurable Thresholds: Set custom thresholds for each block type (e.g., alert after 10 diamonds in 30 minutes)
  • Progressive Alerts: Receive follow-up alerts if suspicious activity continues
  • Time Window Analysis: Detects when too many valuable blocks are mined in a specified time period

Alert Management

  • Customizable Messages: Fully configurable alert messages with player, block, count, and time placeholders
  • Staff-Only Notifications: Alerts only visible to staff with appropriate permissions
  • Continued Activity Tracking: Special indicators for ongoing suspicious behavior
  • Auto-Reset Timer: Configurable timer to reset tracking after a period of inactivity
  • Discord Webhook Integration: Send alerts to Discord channels with custom embeds
  • Player Inventory Display: View the player's inventory contents at the time of detection
  • Stackable Alerts: Updates existing webhook messages when continued activity is detected

Advanced Configuration

  • Per-Block Settings: Individual thresholds and alert messages for each block type
  • Block-Specific Timers: Set different time windows for different ore types
  • Automatic Reset: Configure automatic tracking reset after alerts (e.g., reset after 10 minutes)
  • Comprehensive Defaults: Pre-configured for all valuable blocks in vanilla Minecraft
  • Sectioned Configuration: Organized config structure with separate sections for general, alerts, debug, and webhook settings

Ready-to-Use Defaults

  • Diamond Ores: Alert after mining 10 ores in 30 minutes
  • Ancient Debris: Alert after mining 5 blocks in 20 minutes
  • Emerald Ores: Alert after mining 8 ores in 30 minutes
  • Gold Ores: Different thresholds for Nether and Overworld variants
  • Spawners: Special detection for monster spawners (alerts after just 2)
  • Rare Blocks: Coverage for suspicious sand/gravel, budding amethyst, etc.

Server-Friendly Design

  • Zero Performance Impact: Lightweight implementation doesn't affect server TPS
  • Memory Efficient: Smart data structures minimize memory usage
  • Observation Only: Never affects or cancels valid block breaks
  • Automatic Cleanup: Self-maintaining data storage with periodic cleanup
  • Asynchronous Webhooks: Non-blocking webhook operations to ensure server performance

Management Tools

  • Admin Commands: View status, reload configuration, and more via /antixray
  • JSON Configuration: Easily configure through a documented JSON file
  • Permission-Based: Uses standard permission system for staff alerts (antixray.notify)
  • Comprehensive Logging: Optional detailed logging of suspicious activity

Dependencies

Usage

monitoring configuration. Staff with the antixray.notify permission or OP level 3+ will receive alerts when potential X-ray cheating is detected.

To enable Discord webhooks, set webhook.enabled to true and add your webhook ID/token to webhook.url in the configuration.

EventAntiXray

EventAntiXray is a lightweight, purely observational Fabric mod for server administrators who want to detect potential X-ray cheating without impacting server performance or gameplay. It intelligently tracks player mining activity for valuable blocks and discreetly alerts staff when it detects suspicious patterns, complete with Discord integration.

Dependencies


Features

  • Observational Detection: Monitors block breaks without interfering with gameplay. It never cancels actions, sends packets, or affects block visibility, ensuring zero impact on players.
  • Time-Window Analysis: Detects suspicious activity by tracking how many valuable blocks a player mines within a configurable time period (e.g., 10 diamonds in 30 minutes).
  • Progressive Alerts: Sends an initial alert and then tracks continued suspicious activity, sending follow-up alerts with a special prefix if the behavior persists.
  • Discord Webhook Integration: Sends detailed, customizable embed messages to a Discord channel when an alert is triggered, including the player's inventory at the time of detection. Alerts for continued activity will smartly update the original Discord message.
  • Player-Placed Block Tracking: Features an optional MySQL database integration to track blocks placed by players, effectively eliminating false positives from players mining their own placed ores.
  • Highly Configurable: Customize everything from thresholds and time windows on a per-block basis to the in-game alert messages and sounds.
  • Performance First: Built to be extremely lightweight. It has zero impact on server TPS and uses efficient data structures to minimize memory usage, with non-blocking operations for webhooks.

Commands

The primary command is /antixray, with the alias /eax.

Command Permission Description
/antixray reload antixray.reload Reloads the config.json file from disk, applying any changes immediately.

Configuration

EventAntiXray uses a single, well-documented configuration file located at config/eventantixray/config.json. This file is broken down into clear sections for easy management.

tracked_blocks - The Core of Detection

This is a list where you define every block you want to monitor. Each entry has several key options:

Setting Description
block_id The Minecraft ID for the block (e.g., "minecraft:diamond_ore").
alert_threshold The number of blocks a player must break within the time_window_minutes to trigger the first alert.
time_window_minutes The duration (in minutes) that the mod will look back in a player's mining history to count blocks.
subsequent_alert_threshold After the first alert, this is the number of additional blocks the player must break to trigger a follow-up "Continued" alert.
reset_after_minutes The number of minutes of inactivity (mining this specific block) after which the tracking for a player will automatically reset. Set to 0 to never reset.
alert_message The customizable, MiniMessage-formatted message sent to staff. Supports placeholders like {player}, {count}, {block}, and coordinates.

alerts - Customizing Staff Notifications

This section controls how staff are notified in-game.

  • sound: Configure the sound_id, volume, and pitch of the sound played to staff on an alert. You can even set multipliers to make the sound louder or higher-pitched for each subsequent alert.
  • continued_alert_prefix: A MiniMessage-formatted prefix added to alerts for ongoing suspicious activity (e.g., "<red>[Continued]</red> ").

webhook - Discord Integration

Connect the mod to your Discord server for remote monitoring.

  • enabled: A simple true/false toggle to turn on webhook notifications.
  • url: The full URL of your Discord webhook. Alerts will be sent here as detailed embed messages.

database - Preventing False Positives

This section is for configuring the optional MySQL database to track player-placed blocks.

  • enabled: If true, the mod will connect to your MySQL database to log and check against blocks placed by players. When a player breaks a block, the mod will first check the database. If the block was player-placed, it will be ignored for X-ray detection, preventing false alerts.
  • Connection Details: The config provides fields for your database address, databasename, username, and password, along with other standard connection options.

Screenshots

Gallery

  • Webhook support
    Webhook support

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~6,000
Total Downloads
CurseForge
~1,000
Modrinth
~5,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works