Toggle X-ray

Press F6 to instantly toggle X-Ray on/off — see all ores and valuable blocks through terrain with zero configuration.
Back to Files

togglexray-NEOFORGE-26.3-1.1.2.jar

File nametogglexray-NEOFORGE-26.3-1.1.2.jar
Uploader
kotoritoskotoritos
Uploaded
Nov 21, 2026
Downloads
47
Size
201.9 KB
Mod Loaders
NeoForge
File ID
9739084
Type
R
Release
Supported game versions
  • 26.3

Curse Maven Snippet

NeoForge

implementation "curse.maven:toggle-x-ray-1472820:9739084"

Learn more about Curse Maven

What's new

Toggle X-Ray 1.1.2 for Minecraft 26.3 (NeoForge)

First NeoForge release. Same features and settings as the Fabric version.

What the mod does

Toggle X-Ray is a client-side X-Ray you switch on and off with one key (F6 by default). It is meant for single-player worlds and for servers where X-Ray is allowed.

While X-Ray is on, every block falls into one of three groups:

Group Examples How it is drawn
Visible blocks (your list) ores, ancient debris, spawners, chests, lava, water Drawn normally and visible through everything around them
Ghost blocks (other full, solid blocks) stone, deepslate, dirt, netherrack Drawn in the chosen style: outlines, see-through, glass or not at all
Hidden blocks (everything else) torches, rails, fences, flowers, grass, signs, beds Not drawn at all

Brightness is raised while X-Ray is on, so dark caves are readable. Your own brightness setting is restored when you turn X-Ray off or quit the game, and on the next start if the game crashed while X-Ray was on.

On-screen messages (action bar):

  • X-Ray: ON / X-Ray: OFF
  • (config/togglexray.json is invalid, using defaults - see log): the file has a syntax error. The mod uses the defaults and never overwrites your file, so you can fix it.
  • (partial Sodium support - see log): your Sodium version changed something the mod hooks into. X-Ray still works, but part of the Sodium integration is turned off. The log says which part.

Requirements

Minecraft 26.3
NeoForge NeoForge 26.3.0.115 or newer
Java 25 or newer
Sodium optional

The mod is client-side only: it does not need to be installed on servers and does nothing on a dedicated server.

Installation

  1. Install NeoForge for Minecraft 26.3.
  2. Put togglexray-NEOFORGE-26.3-1.1.2.jar in your mods folder (and Sodium, if you use it).
  3. Start the game, open a world and press F6. You can change the key in Options → Controls → "Toggle X-Ray". (Minecraft 26.3 stores keys as SDL scancodes; the default is still F6.)

Settings: config/togglexray.json

The file is created on first start. It is read again every time you turn X-Ray on, so you can edit it while the game is running: turn X-Ray off and on again to apply your changes. Edits made while X-Ray is on are kept and used the next time you turn it on. The file is the same on Fabric, NeoForge and Forge.

Key Default Meaning
style "frame" How ghost blocks look: frame (light-blue outlines), fade (see-through), tinted (stained glass in the block's colour), glass (clear glass) or hidden (not drawn)
ghostOpacity 0.8 Opacity of ghost blocks for fade, tinted and glass, from 0.05 to 1.0
visibleBlocks ores, ancient debris, spawners, trial spawners, vaults, chests, trapped chests, budding amethyst, lava, water Block ids to show. diamond_ore means minecraft:diamond_ore; blocks from other mods need the full id, for example "examplemod:tin_ore"
alwaysShown bedrock, water Always shown, even with onlyExposed
onlyExposed false If true, a visible block is only shown when at least one side touches air or another non-solid block (useful to find ores next to caves)
hideBlockEntities true Hides chests, signs, beds, banners and other block entities that are not in your list
gamma 16.0 Brightness while X-Ray is on. The vanilla maximum is 1.0; up to 16.0 is allowed. 0 keeps your normal brightness
configVersion, savedGamma Used by the mod. Do not edit them

Example: only diamonds and ancient debris, see-through stone:

{
  "configVersion": 4,
  "style": "fade",
  "ghostOpacity": 0.3,
  "visibleBlocks": ["diamond_ore", "deepslate_diamond_ore", "ancient_debris"]
}

In this version

  • One-key X-Ray (F6) with five styles for the rest of the terrain: frame, fade, tinted, glass, hidden.
  • Hidden decorative blocks (torches, rails, fences, flowers, tall grass) are not drawn at all.
  • Occlusion culling is switched off while X-Ray is on, so ores behind several chunks of stone show up.
  • Brightness up to 16 while X-Ray is on, restored afterwards (also after a crash, on the next start).
  • Settings are read every time X-Ray is turned on; an invalid file is never overwritten; edits made while X-Ray is on are kept; settings from older versions are upgraded automatically.
  • Sodium support: X-Ray works with Sodium installed, and Sodium does not hide parts of the world behind stone while X-Ray is on. If a Sodium update changes something the mod relies on, that part of the integration is switched off and reported in the log and on screen, instead of crashing the game.

Known limitations

  • Water inside hidden waterlogged blocks (stairs, slabs, fences) is hidden together with the block.
  • Block tags such as #c:ores are not supported yet: list each block id.
  • Fluids from other mods that use their own renderer are not changed by X-Ray.
  • Occlusion culling is switched off while X-Ray is on, so the frame rate is lower than usual.
  • While X-Ray is on, the brightness slider in Options shows the X-Ray value. Your own value comes back when you turn X-Ray off.
  • Other rendering mods (for example shader packs) have not been checked.

This mod has no related projects