First, let’s clarify a common misconception. A true X-Ray "mod" usually requires Forge or Fabric to inject code into the game. However, a (or resource pack) works differently. It does not alter the game’s code; it alters how the game renders existing blocks.

Instead, try the or a "Vein Miner" datapack . They let you mine faster without destroying the integrity of the game.

After all, in Minecraft, as in life, the most valuable ores are often found not by taking shortcuts—but by digging straight down. (Just don’t forget the water bucket.)