Cubitect / cubiomes-viewer

An efficient graphical Minecraft seed finder and map viewer.
GNU General Public License v3.0
976 stars 59 forks source link

Find Depth/Altitude Extremes #300

Open LordSicarious opened 2 weeks ago

LordSicarious commented 2 weeks ago

It'd be very useful to be able to search for the highest/lowest point in a given area in a seed, similar to how we can search for climate extremes. At the moment, things like "a mountain that goes above the cloud layer" are basically impossible to locate efficiently, as mountains are not significantly different from other inland biomes like groves or meadows in terms of searchable climate parameters.

Jereaux commented 1 week ago

The depth calculation is one that is a bit complex, and while cubiomes does have tools to check for Surface Height (in the other conditions), computationally it's a little challenging and slower than some other calcs during the condition check. As far as your "Mountain that goes above the cloud layer", there are several ways to go about checking for them such as using a depth check at 0,0 along with some other conditions looking for peaks or low erosion, but mountains are fairly easy to generate with just climate parameters. Depth (surface height) is a function of Erosion, Continentalness, and Weirdness. Low weirdness, high continentalness, and weirdness right around -6700 or 6700 all but guarantee a peak will form.

A quick experiment at 0,0 with -5000 Erosion, 2500 Continentalness, and a OR condition on weirdness looking for -6800 to -6600 or 6600 to 6800 resulted in 1058 seeds in a few seconds, and all but 1 had either one of the three peaks biomes, or badlands mountains at 0,0 (the 1 seed was a snowy slope at Y 147, with a very small Jagged Peaks at -5,0). I don't recall what cloud height is but 74 of those seeds had height above Y220. Just something you could try out in your search for tall mountains.