Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Vystorm

Anti-xray and freecam proof: below the surface, players get stone until they really get there

Report Vystorm-AntiXray?

Requires Vystorm Core 0.71.0 or newer (free)

Vystorm AntiXray

Anti-xray and freecam proof. Everything below the surface is sent to players as stone. Caves and rooms appear when a player really gets there.

Vystorm AntiXray changes only what your server sends to each player; the world itself stays as it is. Ores, caves, mineshafts, dungeons, strongholds and the inside of closed buildings are not on the player's computer until he can reach or see them, so x-ray resource packs, x-ray mods and freecam find stone. It uses the world survey of Vystorm Core, which knows where the surface, the caves and the closed rooms of your worlds are.

What your players notice

  • The ground, cliffs, cave mouths and everything under the open sky look as they always did.
  • A cave they walk into fills in room by room, with its real light.
  • Digging into a hidden cave shows it at once.
  • Players who use x-ray see stone (deepslate below y 0, netherrack in the Nether, end stone in the End).

Features

Hiding

  • Send everything below the surface as stone. Ores, caves, structures and the inside of closed buildings stay on the server.
  • Keep chests, spawners and other block entities in hidden places off the client.
  • Hide mobs, dropped items and other players who stand in places the player has not reached. Other players keep their tab list entry. Switch: entities.enabled.
  • Drop sounds, particles, block changes and break animations that come from hidden places.
  • Keep the world as it is: turning the protection off gives every player the real world back at once.

Revealing

  • Show caves and rooms when a player reaches them: everything he can walk to within 24 steps and everything in his line of sight up to 48 blocks is sent as whole sections. Big reveals are spread over a few ticks.
  • Show a hidden cave the moment a player digs into it.
  • Free a player whose client has him inside fake stone for more than 3 seconds: the blocks around him are revealed and the case is logged. Switch: stuck-check.enabled.

Admins and staff

  • Mask everyone the same way. Ops, admins and players in spectator mode get the masked world too, and spectators reveal nothing, so a stolen staff account with x-ray sees stone.
  • See the real world when you need it with /antixray see. The action bar reminds you while it is on, the console logs who switched it on and off, and it ends when you leave, on a restart and after 30 minutes (see.max-minutes, 0 means no limit).
  • Try it on one player first with /antixray test <player> while everyone else plays as before.
  • Repair one player's view with /antixray reveal-all <player> (the whole real world for him, once) and /antixray reset <player>.
  • Read the state with /antixray status: self-test, masked players, chunks, reveals, survey coverage per world and other plugins that touch the same packets. /antixray stats lists every counter for bug reports.
  • Use the admin menu with /antixray menu (a screen menu with a chest menu as fallback).

Switch features on and off

The protection ships switched off. Its master switch protection.enabled and the switches entities.enabled and stuck-check.enabled are in config.yml and in game under /vadmin features. protection.worlds picks the protected worlds (empty means every world). The reveal distances, the hold time for chunks without a survey and the reveal budget per tick are numbers in the config.

Setup

  1. Install Vystorm Core 0.71.0 or newer, put the Vystorm AntiXray jar into plugins/ and restart. The protection is off after installing; the console and admins get a short hint.
  2. Let Core survey your worlds once, for example overnight: /vadmin survey start world 3000 (the radius is in blocks around the spawn), /vadmin survey start world_nether 1500, and /vadmin survey status to follow it. New chunks are surveyed as players reach them.
  3. Check that /antixray status says Self-test: PASS.
  4. Run /antixray test <your name> and walk into caves, dig and fly around. /antixray test <your name> off ends it.
  5. Switch it on for everyone with /antixray on. /antixray off gives everyone the real world back.
  6. Leave a world out with /antixray world <world> off and take it back in with /antixray world <world> on.

All texts ship in seven languages (English, German, French, Italian, Brazilian Portuguese, Russian, Simplified Chinese).

Compatibility: Paper, Purpur and Spigot 26.2 and 26.3, Java 21 or newer. On older servers such as Paper 1.20.6 the plugin loads, stays off and says so in one console line. With a Core older than 0.71.0 it also stays off and names the Core version it needs. No ProtocolLib needed.

Commands and permissions

Command Permission
/antixray status|on|off|test|reveal-all|reset|world|menu|stats vystormantixray.admin (OP)
/antixray see [on|off] for yourself vystormantixray.see (OP)
/antixray see <player> [on|off] console or vystormantixray.admin

Safety and cost

At every start the plugin checks with a real chunk that it reads and writes this server's chunk format exactly. If anything differs, it stays off and says why. A chunk, light or section update of a protected world that cannot be rewritten is not sent at all; the chunk is asked again from the server, and the console gets one line per kind and minute. The plugin switches itself off for everyone only when the self-test fails twice after such a packet; then everyone gets the real world and the console says so.

On the developer's test machine, rewriting a chunk took about 0.5 ms (median) on Purpur and about 0.14 ms on Spigot, on the network threads, once per chunk and masked player. A reveal of 1,700 blocks took about 12 ms on the main thread; the searches run on two background threads. On Spigot, server ticks with the protection on were no slower than with it off (3 to 5 ms in both cases). These tests ran without real players; it has not been measured with many players online.

Known limits

  • What a player can really see stays real, including ores in a cave wall he looks at.
  • A lit room behind a closed wall or door can show as a faint glow on the visible blocks next to it. Light that leaks out of a cave into visible blocks stays as it is.
  • Biomes are sent as they are, so a modified client can still tell roughly where lush caves, dripstone caves or the deep dark are, though not their shape.
  • Anyone who knows or cracks the world seed can compute where ores and caves are. Hide the seed if that matters.
  • Bytes another plugin writes behind this plugin's handler, straight towards compression or the socket, are out of its reach.
  • Not tested yet together with ProtocolLib or ViaVersion, with Geyser, or with real players under load.
  • Paper's own anti-xray is not needed; switch it off. Use only one anti-xray plugin.

Vystorm AntiXray is an early version: try it on one player before you switch it on for everyone. It gets at least one update every month. If it works on your server, a review helps other server owners find the plugin.

More from Vystorm: Vystorm Core, Vystorm Rails, VystormPortals, CustomTrees, XPVaultEconomy, BlockIntegrations, Vystorm Veins, Winter Is Coming, Vystorm Insomnia, Vystorm Gallery, Vystorm Paddock, Vystorm Snapshot, Vystorm Boards, Vystorm Estates, Vystorm Chat, Vystorm Worlds and Vystorm Locks, all free.

Free, licensed under GPL-3.0. The link to the source code follows here.

Information

Category
Admin Tools
Published
November 24, 2026
License
GPL
0Downloads
0Stars

Pinned Versions

Members

1