Advanced XRay (Neoforge Edition)

Advanced XRay (Neoforge Edition)

6M Downloads

Add configurable scan depth / layer limit to XRay (restrict vertical range)

hockingmartin-design opened this issue · 0 comments

commented

Currently, when scanning for ores, Advanced XRay highlights all matching blocks from the player’s position down to bedrock within the chosen radius.
This often creates heavy visual clutter underground and makes it hard to focus on nearby ores.

Proposed feature:
Add a layer filter or depth control so that users can define how far up/down the scan should go relative to their current Y level — for example:

Only show ores between Y = player − 6 and player + 2, or

Allow entering an absolute Y-range (e.g., Y 40 – 60).

Benefits:

Reduces screen clutter and improves usability.

Makes the mod more precise for controlled mining and cave exploration.

Easy to implement (just check pos.getY() when scanning block positions).

Optional extras:

GUI sliders: “Depth Down” and “Depth Up”.

Config file options for minY, maxY, or relativeDepth.