How to define a biome on coords?
- 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?
Can i define what a biome sites in some coordinates?
- 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?
Yes, in the next stable release MT 5.0.0, see https://github.com/minetest/minetest/bl ... .txt#L5985
- 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?
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?paramat wrote:Yes, in the next stable release MT 5.0.0, see https://github.com/minetest/minetest/bl ... .txt#L5985
- 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?
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.Andrey01 wrote: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?paramat wrote:Yes, in the next stable release MT 5.0.0, see https://github.com/minetest/minetest/bl ... .txt#L5985
- 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?
I may misunderstand the question, which is not clearly stated, it could mean 2 things.
- Krock
- Developer
- Posts: 4650
- Joined: Thu Oct 03, 2013 07:48
- GitHub: SmallJoker
- Location: Switzerland
- Contact:
Re: How to define a biome on coords?
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.
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>
Who is online
Users browsing this forum: No registered users and 5 guests