1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-11-14 14:20:40 +01:00

translate ferns.lua

This commit is contained in:
wsor4035 2024-05-25 22:48:22 -04:00
parent e0dca20186
commit 3c390beb0f

View File

@ -4,7 +4,6 @@
-- by Mossmanikin -- by Mossmanikin
-- Contains code from: biome_lib -- Contains code from: biome_lib
-- Looked at code from: default, flowers, painting, trees -- Looked at code from: default, flowers, painting, trees
-- Dependencies: biome_lib
-- Supports: dryplants, stoneage, sumpf -- Supports: dryplants, stoneage, sumpf
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- some inspiration from here -- some inspiration from here
@ -12,9 +11,6 @@
-- http://www.mygarden.net.au/gardening/athyrium-yokoscense/3900/1 -- http://www.mygarden.net.au/gardening/athyrium-yokoscense/3900/1
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
-- support for i18n
local S = minetest.get_translator("ferns")
minetest.register_alias("ferns:fern_03", "default:fern_3") minetest.register_alias("ferns:fern_03", "default:fern_3")
minetest.register_alias("ferns:fern_02", "default:fern_2") minetest.register_alias("ferns:fern_02", "default:fern_2")
minetest.register_alias("ferns:fern_01", "default:fern_1") minetest.register_alias("ferns:fern_01", "default:fern_1")
@ -39,8 +35,11 @@ end
-- Spawning -- Spawning
----------------------------------------------------------------------------------------------- -----------------------------------------------------------------------------------------------
biome_lib.register_on_generate({ -- near trees (woodlands) minetest.register_decoration({ -- near trees (woodlands)
surface = { decoration = nodenames,
deco_type = "simple",
flags = "all_floors",
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
"default:mossycobble", "default:mossycobble",
"default:desert_sand", "default:desert_sand",
@ -49,25 +48,19 @@ biome_lib.register_on_generate({ -- near trees (woodlands)
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = 30, y_min = 1, -- above sea level
rarity = 62,--63, param2 = 0,
min_elevation = 1, -- above sea level param2_max = 179,
near_nodes = {"group:tree"}, spawn_by = "group:tree",
near_nodes_size = 3,--4, num_spawn_by = 1,
near_nodes_vertical = 2,--3, fill_ratio = 0.1,
near_nodes_count = 1, })
plantlife_limit = -0.9,
humidity_max = -1.0,
humidity_min = 0.4,
temp_max = -0.5, -- 55 °C (too hot?)
temp_min = 0.75, -- -12 °C
random_facedir = { 0, 179 },
},
nodenames
)
biome_lib.register_on_generate({ -- near stone (mountains) minetest.register_decoration({ -- near stone (mountains)
surface = { decoration = nodenames,
deco_type = "simple",
flags = "all_floors",
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
"default:mossycobble", "default:mossycobble",
"group:falling_node", "group:falling_node",
@ -75,56 +68,42 @@ biome_lib.register_on_generate({ -- near stone (mountains)
"stoneage:grass_with_silex", "stoneage:grass_with_silex",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = 35, y_min = 1, -- above sea level
rarity = 40, param2 = 0,
min_elevation = 1, -- above sea level param2_max = 179,
near_nodes = {"group:stone"}, spawn_by = "group:stone",
near_nodes_size = 1, num_spawn_by = 1,
near_nodes_count = 16, fill_ratio = 0.3,
plantlife_limit = -0.9, })
humidity_max = -1.0,
humidity_min = 0.4,
temp_max = -0.5, -- 55 °C (too hot?)
temp_min = 0.75, -- -12 °C
random_facedir = { 0, 179 },
},
nodenames
)
biome_lib.register_on_generate({ -- near ores (potential mining sites) minetest.register_decoration({ -- near stone (mountains)
surface = { decoration = nodenames,
deco_type = "simple",
flags = "all_floors",
place_on = {
"default:dirt_with_grass", "default:dirt_with_grass",
"default:mossycobble", "default:mossycobble",
"default:stone_with_coal", "default:stone_with_coal",
"default:stone_with_iron", "default:stone_with_iron",
"default:stone_with_tin", -- minetest >= 0.4.16 "default:stone_with_tin",
"moreores:mineral_tin", "moreores:mineral_tin",
"moreores:mineral_silver", "moreores:mineral_silver",
"sumpf:sumpf" "sumpf:sumpf"
}, },
max_count = 1200,--1600, -- maybe too much? :D y_min = 1, -- above sea level
rarity = 25,--15, param2 = 0,
min_elevation = 1, -- above sea level param2_max = 179,
near_nodes = { spawn_by = {
"default:stone_with_iron", "default:stone_with_iron",
--"default:stone_with_copper", --"default:stone_with_copper",
--"default:stone_with_mese", --"default:stone_with_mese",
--"default:stone_with_gold", --"default:stone_with_gold",
--"default:stone_with_diamond", --"default:stone_with_diamond",
"default:stone_with_tin", -- minetest >= 0.4.16 "default:stone_with_tin",
"moreores:mineral_tin", "moreores:mineral_tin",
"moreores:mineral_silver" "moreores:mineral_silver"
--"moreores:mineral_mithril" --"moreores:mineral_mithril"
}, },
near_nodes_size = 2, num_spawn_by = 1,
near_nodes_vertical = 4,--5,--6, fill_ratio = 0.8,
near_nodes_count = 2,--3, })
plantlife_limit = -0.9,
humidity_max = -1.0,
humidity_min = 0.4,
temp_max = -0.5, -- 55 °C (too hot?)
temp_min = 0.75, -- -12 °C
random_facedir = { 0, 179 },
},
nodenames
)