1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-11-08 19:30:32 +01:00

spawn some more plants directly

This commit is contained in:
Niklp09 2023-04-12 21:03:22 +02:00
parent a154cb9904
commit 85569605f5
4 changed files with 96 additions and 54 deletions

View File

@ -1,39 +1,65 @@
--Map Generation Stuff
biome_lib.register_on_generate(
{
surface = {
"default:dirt_with_grass",
"default:gravel",
"default:stone",
"default:permafrost_with_stones"
},
max_count = 50,
rarity = 0,
plantlife_limit = -1,
check_air = true,
random_facedir = {0, 3}
},
{
minetest.register_decoration({
decoration = {
"cavestuff:pebble_1",
"cavestuff:pebble_2"
}
)
biome_lib.register_on_generate(
{
surface = {
"default:desert_sand",
"default:desert_stone"
},
max_count = 50,
rarity = 0,
plantlife_limit = -1,
check_air = true,
random_facedir = {0, 3}
},
{
place_on = {
"default:dirt_with_grass",
"default:gravel",
"default:stone",
"default:permafrost_with_stones"
},
noise_params = {
offset = 0,
scale = 0.0078125,
spread = {
y = 100,
z = 100,
x = 100
},
seed = 0,
octaves = 3,
persist = 0.6,
flags = "absvalue",
lacunarity = 2
},
param2 = 0,
flags = "all_floors",
deco_type = "simple",
param2_max = 3,
y_min = -16,
y_max = 48
})
minetest.register_decoration({
decoration = {
"cavestuff:desert_pebble_1",
"cavestuff:desert_pebble_2"
}
)
},
place_on = {
"default:desert_sand",
"default:desert_stone"
},
noise_params = {
offset = 0,
scale = 0.0078125,
spread = {
y = 100,
z = 100,
x = 100
},
seed = 0,
octaves = 3,
persist = 0.6,
flags = "absvalue",
lacunarity = 2
},
param2 = 0,
flags = "all_floors",
deco_type = "simple",
param2_max = 3,
y_min = -16,
y_max = 48
})

View File

@ -7,24 +7,36 @@
-- Looked at code from: default
-----------------------------------------------------------------------------------------------
biome_lib.register_on_generate(
{
surface = {
"default:dirt_with_grass",
"stoneage:grass_with_silex",
"sumpf:peat",
"sumpf:sumpf"
},
max_count = TALL_GRASS_PER_MAPBLOCK,
rarity = 101 - TALL_GRASS_RARITY,
min_elevation = 1, -- above sea level
plantlife_limit = -0.9,
check_air = true,
},
{ "default:grass_1",
minetest.register_decoration({
decoration = {
"default:grass_1",
"default:grass_2",
"default:grass_3",
"default:grass_4",
"default:grass_5"
}
)
},
place_on = {
"default:dirt_with_grass",
"stoneage:grass_with_silex",
"sumpf:peat",
"sumpf:sumpf"
},
noise_params = {
persist = 0.6,
flags = "absvalue",
lacunarity = 2,
offset = 0,
scale = 0.74,
spread = {
z = 100,
x = 100,
y = 100
},
seed = 0,
octaves = 3
},
flags = "all_floors",
deco_type = "simple",
y_min = 1,
y_max = 48
})

View File

@ -437,8 +437,8 @@ abstract_trunks.grow_moss_on_trunk = function(pos)
--end
end
biome_lib.register_on_generate({
surface = {
pl.register_on_generate({
surface = {
"default:tree",
"default:jungletree",
"default:pine_tree",
@ -465,7 +465,9 @@ biome_lib.register_on_generate({
plantlife_limit = -0.9,
check_air = false,
},
"abstract_trunks.grow_moss_on_trunk"
"trunks:grow_moss_on_trunk",
nil,
abstract_trunks.grow_moss_on_trunk
)
end

View File

@ -94,7 +94,7 @@ biome_lib.register_on_generate({
"abstract_woodsoils.place_soil"
)
biome_lib.register_on_generate({
pl.register_on_generate({
surface = {
"moretrees:apple_tree_sapling_ongen",
"moretrees:beech_sapling_ongen",
@ -115,7 +115,9 @@ biome_lib.register_on_generate({
plantlife_limit = -0.9,
check_air = false,
},
"abstract_woodsoils.place_soil"
"woodsoils:place_soil_ongen",
nil,
abstract_woodsoils.place_soil
)
minetest.register_abm({