zDevelopers / UHPlugin

Plugin UltraHardcore (“Kill the Patrick”), augmenté. | UHC (“KTP”) plugin, improved.
Other
32 stars 24 forks source link

Generate a map with a specific biome for 100*100 #145

Open Monadologie opened 7 years ago

Monadologie commented 7 years ago

Bonjour,

Serait-il possible d'inclure une fonctionnalité assez novatrice qui permettrait de générer un monde avec un 100/100 clean, c'est-à-dire avec un biome plaine ou désert ? Cela permettrait de ne plus se prendre la tête à générer des maps, juste pour trouver un seed avec un biome plaine/désert en 100/100.

Merci d'avance


English translation: Hi,

Is it possible to add a quite innovator feature which could allow to generate a world with a clean 100/100 (for meetups), in other words with a plain or desert biome at the center of the map? That would make world's generation easier for us [players].

Thanks in advance

AmauryCarrade commented 7 years ago

Hi, an option to disable biomes in the map generation would be pretty simple to implement. This said, disabling biomes in an area is way more complicated—we would have to basically reimplement the whole generation process, to avoid cuts in the terrain generation.

If there is a way to force the biome in some locations, I'm not aware of it. I can try to search for that (cc @FlorianCassayre maybe).

The other solution (removing biomes in the whole map) is relatively easy to add, if it's a good option for you. What's your opinion on this?

Monadologie commented 7 years ago

Removing biomes in the whole map is, in my humble opinion, totally useless. If the whole map is a plain, how could we find trees? Same for desert. That could be funny for one time, but not two times.

Actually, MasterGBerry, the administrator of Badlion said that they "tampered with the biome mapping", to create a custom biome for the 100/100. Discussion link: https://twitter.com/mastergberry/status/818067481176735744

Moreover, I've already tried the ChunkGenerator way, unsuccessfully.

AmauryCarrade commented 7 years ago

I was not thinking about removing all biomes except plains, but removing hilly or similar biomes. This said, we can agree on the fact that it's not the best solution.

I was thinking about biomes grid rewrite while writing:

I can try to search for that (cc @FlorianCassayre maybe).

So I'll see what can be done on this side.

Monadologie commented 7 years ago

Keep me informed of your progression, and if I could help, tell me.

AmauryCarrade commented 7 years ago

This issue will be kept updated.

Monadologie commented 7 years ago

I guess still no answers?

AmauryCarrade commented 7 years ago

I didn't had time to work on this yet, sorry.

Monadologie commented 7 years ago

No problem 😉 I've found more informations about that here https://www.spigotmc.org/threads/change-100-100-biome-before-world-generation.207256/

Monadologie commented 7 years ago

The following code should work: https://gist.github.com/Monadologie/c8957c711d0acc570bf5b507bbce60be