Generate rarer terrain as player gets away from spawn

i want to have a system where if player gets away from the spawn, the terrain has a more chance to be a rare one, but how can i achieve it with multiple rarity levels, also the “terrain” is big flat cubic surfaces, not rendered in small sizes or circular, so .magnitude wouldnt get the job done. more than one-two rarity is also another problem because if you decrease one and incerease other, the one in the middle stays same, if you increase 2 and decrease one, after getting to far away, the rare and epic ones will have a close chance and since there is a very small chance to get the common one it wont change much, we have to start decreasing rare after a base amount too. how to calculate these, how can i know which grid are they in, the generation is cubic and very big sized (around 1200x1200 studs for every biome)

heres some photos to make it more understandable;


i have the terrain generation, but i need a system to create those big surfaces and tell them which biome are they before generating terrain on them.

1 Like

A few days ago I found this weighted chance system…
I think it might help with a terrain generator

1- i know how to make weighted chance system
2- i have the terrain generationi, i have to jsut place biomes
3- you didnt attach any files or links
note: thanks for trying.

1 Like

You say you know how to do what your asking, so then why are you asking??

Simply use the magnitude like you said, the greater the distance, the rarer the terrain (this is simple logic you would code out, and since you seem to know how to code, it shouldnt be hard to implement).

please dont answer without reading, i already stated what part of it i know and i part i need help with, i also stated why wouldnt magnitude work.

i DO NOT have a system that places the biomes, or gives them their rarity, i HAVE a system that generated trees, rocks, mobs and loot on to already existing biomes.