How to define a biome on coords?

Post Reply
User avatar
Andrey01
Member
Posts: 2577
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

How to define a biome on coords?

by Andrey01 » Post

Can i define what a biome sites in some coordinates?

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: How to define a biome on coords?

by paramat » Post

Yes, in the next stable release MT 5.0.0, see https://github.com/minetest/minetest/bl ... .txt#L5985

User avatar
Andrey01
Member
Posts: 2577
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: How to define a biome on coords?

by Andrey01 » Post

paramat wrote:Yes, in the next stable release MT 5.0.0, see https://github.com/minetest/minetest/bl ... .txt#L5985
It seems no. For example, a player is being on some coordinates and a program needs to find out on these coords, where the player is being currently, what a biome is. Is there any function that do it?

User avatar
v-rob
Developer
Posts: 971
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: How to define a biome on coords?

by v-rob » Post

Andrey01 wrote:
paramat wrote:Yes, in the next stable release MT 5.0.0, see https://github.com/minetest/minetest/bl ... .txt#L5985
It seems no. For example, a player is being on some coordinates and a program needs to find out on these coords, where the player is being currently, what a biome is. Is there any function that do it?
Are you talking about minetest.get_biome_data? (https://github.com/minetest/minetest/bl ... .txt#L3779) This will return a table of the biome ID, temperature, and humidity at the position given. It is only for MT 5.0.
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: How to define a biome on coords?

by paramat » Post

I may misunderstand the question, which is not clearly stated, it could mean 2 things.

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: How to define a biome on coords?

by Krock » Post

Noise generation is a non-equivalent transformation from multiple inputs to one output value, thus converting a biome (humidity, heat) noise value back to a position is not possible.
However, a workaround could be added. It's a new mod which creates a rough map of biomes say, (200m)^3 chunks when they generate in the world. Afterwards you could iterate through all records in that map to check whether your biome matches with any of these values. It will be very imprecise and slow. But it works, if you really want that.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests