Biome support in the API
Hello everyone!
I think it would be great if there where some functions in the API that mods can define biomes.
Here are some ideas how these functions could look like:
This is an example for the desert biome.
There should be also a global table that cotains all definitions ordered by name:
If this would be implemented into upstream, the API would be much more powerful and mod creators could create variet maps.
Please post what you think about it and what you would add/remove to the functions.
I think it would be great if there where some functions in the API that mods can define biomes.
Here are some ideas how these functions could look like:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_biome("desert", {
rarity = 0.1,
stone_like_node = "default:desert_stone",
dirt_like_node = "default:default:desert_sand",
dirt_with_grass_like_node = "default:desert_sand",
generate_trees = true,
tree_rarity = 0.01,
leaves_like_node = "air",
tree_like_node = "default:cactus",
}
This is an example for the desert biome.
There should be also a global table that cotains all definitions ordered by name:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.registered_biomes
If this would be implemented into upstream, the API would be much more powerful and mod creators could create variet maps.
Please post what you think about it and what you would add/remove to the functions.