1
0
mirror of https://github.com/mt-mods/biome_lib.git synced 2024-12-25 02:10:18 +01:00
This library's purpose is to allow other mods to add growing things to the map in a straightforward, simple manner. https://content.minetest.net/packages/VanessaE/biome_lib/
Go to file
Vanessa Dannenberg a325c2ccd8 rewrote block queue handlers to reduce code duplication
and improve lag management

minetest.conf settings added:

biome_lib_dtime_limit:

Maximum lag allowed, in seconds.  Default 0.5s.  Larger values allow for
more lag, but make map updates run a bit faster.

biome_lib_queue_run_ratio:

If positive, this is the approximate number of globalstep ticks to skip
between map updates. If negative, it becomes the positive number of map
updates to run per globalstep tick before lag is checked.  No minimum
value, maximum +100.  Default: -100 (that is, 100 updates per globalstep
tick, with none intentionally skipped).  Use positive numbers for slow
machines or biome_lib-using mods that tend to cause lag, and negative
values for fast machines and mods.
2021-04-06 03:20:12 -04:00
locale Russian locale 2017-08-11 12:09:09 +03:00
API.txt add compatibility for games other than minetest_game 2021-04-01 05:47:22 -04:00
description.txt Add description.txt 2016-03-27 20:03:14 -07:00
growth.lua add compatibility for games other than minetest_game 2021-04-01 05:47:22 -04:00
init.lua rewrote block queue handlers to reduce code duplication 2021-04-06 03:20:12 -04:00
LICENSE license fixups: use LGPL 3.0 for code, 2018-11-08 18:48:38 -05:00
mod.conf add compatibility for games other than minetest_game 2021-04-01 05:47:22 -04:00
README.md add compatibility for games other than minetest_game 2021-04-01 05:47:22 -04:00
search_functions.lua rewrote block queue handlers to reduce code duplication 2021-04-06 03:20:12 -04:00

Biome Lib

This library's purpose is to allow other mods to add growing things to the map in a straightforward, simple manner. It contains all the core functions needed by mods and modpacks such as More Trees, Tiny Trees, Plantlife, and others.

Spawning of plants is optionally sensitive to the amount of available light, elevation, nearness to other nodes, plant-to-plant density, water depth, and a whole host of controls.

All objects spawned or generated using this mod use Perlin noise to stay within simple biomes, rather than just letting everything just spread around the map randomly.

This library also features a basic temperature map, which should blend in nicely with SPlizard's Snow Biomes mod (the same Perlin settings are used, with the assumption that the edge of a snow biome is 0° Centigrade).

Both mapgen-based spawning and ABM-based spawning is supported. Growing code is strictly ABM-based. L-system trees can be spawned at mapgen time via the engine's spawn_tree() function and are quite fast.

It is primarily intended for mapgen v6, but it should work fine when used with mapgen v7.

Dependencies: nothing, but if you don't use minetest_game, you'll need to supply some settings (see API.txt).

Recommends: Plantlife Modpack, More Trees

API: This mod supplies a small number of very powerful functions. They are, briefly:

  • biome_lib:register_generate_plant()
  • biome_lib:spawn_on_surfaces()
  • biome_lib:grow_plants()
  • biome_lib:find_valid_wall()
  • biome_lib:is_node_loaded()

For a complete description of these functions as well as several of the internal variables within the mod, read the API.txt document included in this package.