Skip to content

Conversation

@jktham
Copy link
Contributor

@jktham jktham commented Feb 15, 2025

What

Change ore prospector behavior to place waypoints at the average height of the hovered ores instead of at the surface. Also adds the height to the tooltip, might be too cluttered?

Implementation Details

The height of each ore in the prospecting packet is averaged and stored in a map entry per oredict, then the currently hovered ores are averaged again and stored in a member which later gets used when adding the waypoint. I mostly copied the way oreInfo and hoveredNames was done. Height is already given in the keys of the packet, so there should be no performance impact.

Outcome

When the player adds a waypoint, it gets placed directly at the height of the vein. Less tedious than having to look it up in jei or blindly mining up or down.

Additional Information

waypoints
tooltips

Potential Compatibility Issues

Not much, all changes are isolated to WidgetProspectingMap. If no ores are found it defaults to the surface, so fluid prospector behavior is unchanged.

@jktham jktham requested a review from a team as a code owner February 15, 2025 22:49
@ALongStringOfNumbers ALongStringOfNumbers added type: feature New feature or request and removed type: feature New feature or request labels Feb 15, 2025
@jktham jktham changed the title Make ore prospector place waypoints at vein height Place ore prospector waypoints at vein height Mar 1, 2025
Copy link
Contributor

@ALongStringOfNumbers ALongStringOfNumbers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR

@ALongStringOfNumbers ALongStringOfNumbers merged commit 90f8bfb into GregTechCEu:master Mar 7, 2025
3 checks passed
MCTian-mi added a commit to MCTian-mi/SussyPatches that referenced this pull request Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants