Griiimon wrote:I'd like to include temperature/warmth in my mod. Is there a way to get the temperature at the player position or at least the biome id at his position?
paramat wrote:Yes but you need to calculate it from the heat and humidity noise parameters found here https://github.com/minetest/minetest/blob/master/src/mg_biome.h#L138
minetest.get_mapgen_setting_noiseparams(name)
burli wrote:But how can I get the biome? I need the heat and humidity and than I have to calculate the voronoi diagram, right? A little bit to much for globalstep I think
# Where the map generator stops.
# Please note:
# - Limited to 31000 (setting above has no effect)
# - The map generator works in groups of 80x80x80 nodes (5x5x5 MapBlocks).
# - Those groups have an offset of -32, -32 nodes from the origin.
# - Only groups which are within the map_generation_limit are generated
# type: int min: 0 max: 31000
# map_generation_limit = 31000
# Maximum number of mapblocks for client to be kept in memory.
# Set to -1 for unlimited amount.
# type: int
# client_mapblock_limit = 5000
burli wrote:Heat and humidity are generated by perlin noise.
hajo wrote:How about alternate formulae for these ?
Sergey wrote:I have obvious question about mapgen and engine itself.
Why are there objects hanging in the air? Sand or gravel falls down if there is nothing (air) under it. But block of dirt or stone can hang in the air without being connected to something on the ground. Even tree can "stand" in the air. You have to fly to fell it. Why is that? This is against basic physical laws!
Users browsing this forum: No registered users and 8 guests