Cubitect / cubiomes

C library that mimics the Minecraft biome generation.
MIT License
556 stars 98 forks source link

Add cubiomes support for badlands terracotta clay layers per worldseed (copy) #100

Open Delvin4519 opened 1 year ago

Delvin4519 commented 1 year ago

There is an equivalent issue on the cubiomes viewer page, but since it is related with cubiomes, placing the issue here might be better (the issue tracker in cubiomes viewer can be closed if it's a duplicate).

As the title says, the minecraft worldseed dictates the terracotta clay layers that generates in every single badlands mesa biome across the entire worldseed. It is the same, no matter the position in a world, it is entirely 100% seed-based and nothing else.

The function uses nextInt(), which is similar to mesa biome, jungle biome generation in MC1.7.2-1.17.1.

From 1.7.2 to 1.17.1, the structureSeed dicated a fixed set of 64 layers of terracotta for each structureSeed. As of 1.18+, it is changed to 192 layers of terracotta for each seed.

cubiomes can return a 64 character string or a 192 character string of terracotta clay layers (MC version) for each worldseed, and maybe some other seedfinding functions. In cubiomes viewer GUI, it can preview the arrangement of layers on the Y-axis, and search for seeds with specific badlands layer patterns or percentages, and export the layers as strings alongside the seeds.

image