Skip to content

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

@hockingmartin-design

Description

@hockingmartin-design

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions