Dunes are modified mountains code added in Terralith version 2.1. Appearing in Vanilla desert biomes, Desert oasis and Ancient sands, they reproduce sand dunes that can be found in the desert by setting the peaks where (noise A + noise B) is close to 0. Then the height is modulated using another noise as well as the terrain erosion (higher erosion means higher peaks.). To prevent issues, Desert canyon biomes were added to prevent dunes to appear in terrain too high or eroded.