Home Minecraft Java Servers How to prevent X-Ray on a Minecraft Server

How to prevent X-Ray on a Minecraft Server

Last updated on Jul 29, 2024

X-ray in Minecraft refers to third-party modifications or texture packs that allow players to see through solid objects, revealing valuable resources such as ores or caves. This practice is considered cheating and is against the terms of service of most Minecraft servers, as it undermines the game's intended exploration and resource-gathering mechanics. Server administrators often implement anti-x-ray plugins or measures to detect and prevent players from using such cheats, ensuring fair and balanced gameplay for all participants.

Note: This IS NOT a full-proof method, as there are alternative plugins and ways for players to use X-Ray.

Note: An FTP client is required to transfer files onto the Minecraft server. Follow this tutorial to learn how to use an FTP client.


How to Prevent X-Ray Using Mods (Forge or Fabric)

  1. Download the desired Anti X-Ray mod like this one.

  2. Login to the QuickHost Game Panel.

  3. Stop the server.

  4. Log in to the Minecraft server using an FTP client.

  5. Open the mods folder.

  6. Upload the downloaded Anti X-Ray mod from Step 1.

  7. Wait for the upload to complete.

  8. Start the server.


How to Prevent X-Ray Using Plugins (Spigot or Bukkit)

  1. Download the desired Anti X-Ray plugin like OreAnnouncer.

  2. Login to the QuickHost Game Panel.

  3. Stop the server.

  4. Log in to the Minecraft server using an FTP client.

  5. Open the plugins folder.

  6. Upload the downloaded Anti X-Ray plugin from Step 1.

  7. Wait for the upload to complete.

  8. Start the server.


How to Prevent X-Ray on a Minecraft Server (PaperMC)

  1. Login to the QuickHost Game Panel.

  2. Stop the server.

  3. On the left select Files.

  4. Open the config folder.

  5. Select the paper-world-defaults.yml file.

  6. Navigate to the anti-xray line.

  7. On the enabled: line, change the value to true.

  8. On the engine-mode: line, edit the value to either 1 or 2.

    engine-mode: 1: Changes visible blocks to stone.

    engine-mode: 2: Randomly adds new fake ores.

  9. On the bottom right click Save Content.

  10. Start the server.