Our news See more of us on Google? Add
Discord
Texture packs

X-Ray texture pack: how it works and why it's banned

An X-Ray texture pack is a resource pack that makes most blocks transparent, so only ores, chests, spawners and other valuable blocks stay visible. It sounds tempting, but on multiplayer servers it counts as cheating and gets you banned. Here's how it works and what the consequences are.

How does an X-Ray texture pack work?

Regular Minecraft blocks have opaque textures: stone, dirt and deepslate hide whatever is behind them. An X-Ray texture pack swaps the textures of most blocks for fully transparent (or almost transparent) ones. Ores (diamond, emerald, gold, iron, copper, lapis lazuli, redstone), chests and spawners keep their normal, visible textures.

The result: you look into the ground and see every ore as if the walls weren't there. You can dig straight to the diamonds without wasting time exploring. X-Ray packs are usually combined with fullbright (removing all darkness), so ores stay visible at any depth.

In singleplayer, an X-Ray texture pack works without restrictions: it's your world and your rules. The trouble starts on multiplayer servers.

Why X-Ray gets you banned

Using X-Ray on a multiplayer server is a form of cheating. It gives you an unfair advantage over other players: you skip hours of mining and go straight to the most valuable resources. On economy servers (for example ones where diamonds work as currency), it wrecks the whole balance of the game.

The consequences are serious:

  • Permanent ban - most servers ban you for good, with no chance to appeal
  • Lost progress - you lose everything you earned on the server: builds, items, ranks
  • Reputation - on popular servers your username ends up on a public ban list
  • Network bans - some server networks (e.g. Hypixel) share ban lists. A ban on one server can mean a ban on many

No amount of diamonds is worth losing your account on your favorite server. Admins have tools to detect X-Ray even if they can't see your texture pack directly.

How servers detect X-Ray

Minecraft servers have several ways to detect X-Ray, both technical and behavioral.

Anti-Xray (Paper)

The Paper server software has a built-in anti-xray system. It works in two ways:

  • Engine Mode 1 - the server hides ores that don't touch air. Instead of the real ores, the client sees stone. Ores only show up once you mine a block next to them
  • Engine Mode 2 - the server turns hidden blocks into random ores. A player with X-Ray sees fake diamonds everywhere and can't tell the real ones from the fakes. This method is more effective, though it puts a bit more load on the server

Both modes work at the network protocol level: the server simply never sends the client the real data about hidden blocks. No texture pack can get around that.

Behavior analysis

Even without anti-xray, admins can spot X-Ray by analyzing mining patterns. A player who digs tunnels in straight lines and hits every diamond vein clearly stands out from normal stats. Logging plugins such as CoreProtect let admins check a player's exact mining history.

Honeypots

Some servers place fake diamond veins in unusual spots (e.g. above sea level). A normal player would never find them. If someone mines them out, that's proof of X-Ray.

X-Ray mod vs X-Ray texture pack

Besides texture packs, there are also X-Ray mods (e.g. Advanced XRay, XRay Mod) with more features: toggling transparency for specific blocks, fullbright, and searching for spawners within a radius of many chunks.

From the server's point of view, both are treated the same: it's cheating, whatever form it takes. X-Ray mods can be easier for advanced anti-cheats to detect, because they change network packets or client behavior in ways the server can monitor.

A texture pack is harder to detect technically (the server can't see the client's packs), but your mining patterns give you away just as reliably.

Legit ways to find ores

Instead of risking a ban, use strategies that are completely legit and actually work:

Strip mining

Mine at Y = -59 (for diamonds, from version 1.18 onward). Dig a tunnel every third block: statistically, you'll hit most of the diamond veins in the area. It's the most efficient way to mine without any modifications.

The Fortune enchantment

Fortune III increases the number of diamonds you get from every vein: on average 2.2 diamonds per ore block instead of one. A single block of diamond ore mined with Fortune III can drop up to 4 diamonds. Check out our enchantments guide.

The best mining depth

Every ore has an optimal depth. Diamonds: Y -64 to -59. Gold: Y -64 to -16. Iron: Y 15 and Y 232. Knowing how ores are distributed is a legit advantage. Learn more with our ore distribution tool.

Caves and ravines

Exploring large caves exposes natural walls with visible ores. Dripstone Caves and the Deep Dark are places where diamonds sit in plain sight. You don't need X-Ray: you need plenty of torches and some courage.