Querz / mcaselector

A tool to select chunks from Minecraft worlds for deletion or export.
MIT License
3.07k stars 171 forks source link

Ability to count/sum/ blocks and entities in a selection using overlays #444

Closed Sitterr closed 6 months ago

Sitterr commented 10 months ago

So I've been wandering around the code for the past week trying to find a way to count the beds in certain parts of my world. This tool has done wonders to my world so I tried to de-hardcode the bed counting into a flexible feature.

The idea I came up with was to use the already existing Overlay.parseValue(ChunkData) function and just sum the results of it being performed on every chunk of the current selection. This means minimal UI additions required. Using the overlay system also allows more customizations, but it may be worthwhile to include checks to ensure that summing is not performed on overlays like Timestamp, LastUpdate, etc. By knowing the sum and size of a selection, the average if wanted can also easily be calculated