Advanced XRay (Fabric Edition)

Advanced XRay (Fabric Edition)

2M Downloads

Adding a clear menu for big modpacks

B1ackN0va opened this issue · 3 comments

commented

Is your feature request related to a problem? Please describe.
When playing big modpacks like ATM, the xray menu is populated by all the ores in the pack. The way I like to use this mod is to have a small list of blocks that I'd like to find often, or if the need arises, other blocks that I'm searching for.
Unfortunately, it's incredibly hard to clear out the menu when there are thousands of blocks to click through.
Describe the solution you'd like
Just a button to clear the list of block entries from the xray menu

Describe alternatives you've considered
Any other way to quickly have a clear Xray gui.
Some other way to clear the list faster
a separate GUI even

Additional context
none

commented

Yeah, that's fair, I can likely add some delete all button 👍 I've also got plans to add by tag and things like that

commented

I modified the mod in version 1.20.1 so that only the blocks I manually added are shown in the menu. I also sorted them by state, placing the enabled blocks at the top, and removed the manually added blocks from the allBlocks list (so they don't appear when manually adding new blocks) to avoid duplicates.
This is useful for mods that have repeated blocks but with different descriptionIds.
I also changed the modId because it was causing incompatibilities with some mods in that version.

commented

I might ask, why doesn’t this mod work like other mods that let you see the ores without showing the stone? It could be better, especially when you have a lot of ores selected.