mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-02-03 22:00:19 +01:00
[biome_lib] Update
This commit is contained in:
parent
cdf66589e8
commit
7f2f0088ef
@ -14,8 +14,8 @@ It is primarily intended for mapgen v6, but it should work fine when used with m
|
|||||||
|
|
||||||
**Dependencies**: default from minetest_game
|
**Dependencies**: default from minetest_game
|
||||||
|
|
||||||
**Recommends**: [Plantlife Modpack](https://github.com/VanessaE/plantlife_modpack),
|
**Recommends**: [Plantlife Modpack](https://github.com/minetest-mods/plantlife_modpack),
|
||||||
[More Trees](https://github.com/VanessaE/moretrees)
|
[More Trees](https://github.com/minetest-mods/moretrees)
|
||||||
|
|
||||||
**License**: WTFPL
|
**License**: WTFPL
|
||||||
|
|
||||||
@ -27,4 +27,4 @@ It is primarily intended for mapgen v6, but it should work fine when used with m
|
|||||||
* biome_lib:find_valid_wall()
|
* biome_lib:find_valid_wall()
|
||||||
* biome_lib:is_node_loaded()
|
* 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](https://raw.githubusercontent.com/VanessaE/biome_lib/master/API.txt) included in this package.
|
For a complete description of these functions as well as several of the internal variables within the mod, [read the API.txt document](https://raw.githubusercontent.com/minetest-mods/biome_lib/master/API.txt) included in this package.
|
||||||
|
1
mods/biome_lib/description.txt
Normal file
1
mods/biome_lib/description.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
The biome spawning and management library for Plantlife, Moretrees, Tiny Trees, and other mods that originally depended on plants_lib from the plantlife modpack.
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
biome_lib = {}
|
biome_lib = {}
|
||||||
|
|
||||||
plantslib = setmetatable({}, { __index=function(t,k) minetest.log("warning", "Use of deprecated function:", k) return biome_lib[k] end })
|
plantslib = setmetatable({}, { __index=function(t,k) print("Use of deprecated function:", k) return biome_lib[k] end })
|
||||||
|
|
||||||
biome_lib.blocklist_aircheck = {}
|
biome_lib.blocklist_aircheck = {}
|
||||||
biome_lib.blocklist_no_aircheck = {}
|
biome_lib.blocklist_no_aircheck = {}
|
||||||
@ -127,7 +127,7 @@ end
|
|||||||
|
|
||||||
function biome_lib:register_generate_plant(biomedef, nodes_or_function_or_model)
|
function biome_lib:register_generate_plant(biomedef, nodes_or_function_or_model)
|
||||||
|
|
||||||
-- if calling code passes an undefined node for a surface or
|
-- if calling code passes an undefined node for a surface or
|
||||||
-- as a node to be spawned, don't register an action for it.
|
-- as a node to be spawned, don't register an action for it.
|
||||||
|
|
||||||
if type(nodes_or_function_or_model) == "string"
|
if type(nodes_or_function_or_model) == "string"
|
||||||
@ -289,7 +289,7 @@ function biome_lib:populate_surfaces(biome, nodes_or_function_or_model, snodes,
|
|||||||
|
|
||||||
if objtype == "table" then
|
if objtype == "table" then
|
||||||
if nodes_or_function_or_model.axiom then
|
if nodes_or_function_or_model.axiom then
|
||||||
biome_lib:generate_tree(pos, nodes_or_function_or_model)
|
biome_lib:generate_tree(p_top, nodes_or_function_or_model)
|
||||||
spawned = true
|
spawned = true
|
||||||
else
|
else
|
||||||
local fdir = nil
|
local fdir = nil
|
||||||
|
1
mods/biome_lib/mod.conf
Normal file
1
mods/biome_lib/mod.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
name = biome_lib
|
Loading…
Reference in New Issue
Block a user