881 lines
21 KiB
Lua
881 lines
21 KiB
Lua
local function register_grass_decoration(offset, scale, length)
|
|
minetest.register_decoration({
|
|
deco_type = "simple",
|
|
place_on = {"default:dirt_with_grass", "default:sand"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = offset,
|
|
scale = scale,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 329,
|
|
octaves = 3,
|
|
persist = 0.6
|
|
},
|
|
biomes = {"grassland", "grassland_dunes", "deciduous_forest",
|
|
"coniferous_forest", "coniferous_forest_dunes"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
decoration = "default:grass_" .. length,
|
|
})
|
|
end
|
|
|
|
local function register_dry_grass_decoration(offset, scale, length)
|
|
minetest.register_decoration({
|
|
deco_type = "simple",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = offset,
|
|
scale = scale,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 329,
|
|
octaves = 3,
|
|
persist = 0.6
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
decoration = "default:dry_grass_" .. length,
|
|
})
|
|
end
|
|
|
|
|
|
minetest.clear_registered_decorations()
|
|
|
|
-- Apple tree and log
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 26,
|
|
noise_params = {
|
|
offset = 0.016,
|
|
scale = 0.002,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/tree1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 26,
|
|
noise_params = {
|
|
offset = 0.016,
|
|
scale = 0.002,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/tree2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 26,
|
|
noise_params = {
|
|
offset = 0.016,
|
|
scale = 0.002,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/tree3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 26,
|
|
noise_params = {
|
|
offset = 0.016,
|
|
scale = 0.002,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/tree4.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.0018,
|
|
scale = 0.0011,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = {
|
|
size = {x = 3, y = 3, z = 1},
|
|
data = {
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "default:tree", param2 = 12, prob = 191},
|
|
{name = "default:tree", param2 = 12},
|
|
{name = "default:tree", param2 = 12, prob = 127},
|
|
{name = "air", prob = 0},
|
|
{name = "flowers:mushroom_brown", prob = 63},
|
|
{name = "air", prob = 0},
|
|
},
|
|
},
|
|
flags = "place_center_x",
|
|
rotation = "random",
|
|
})
|
|
|
|
-- Jungle tree and log
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt"},
|
|
sidelen = 80,
|
|
fill_ratio = 0.015,
|
|
biomes = {"rainforest", "rainforest_swamp"},
|
|
y_min = -1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/jungletree1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
rotation = "random",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt"},
|
|
sidelen = 80,
|
|
fill_ratio = 0.015,
|
|
biomes = {"rainforest", "rainforest_swamp"},
|
|
y_min = -1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/jungletree2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
rotation = "random",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt"},
|
|
sidelen = 80,
|
|
fill_ratio = 0.015,
|
|
biomes = {"rainforest", "rainforest_swamp"},
|
|
y_min = -1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/jungletree3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
rotation = "random",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt"},
|
|
sidelen = 80,
|
|
fill_ratio = 0.015,
|
|
biomes = {"rainforest", "rainforest_swamp"},
|
|
y_min = -1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/jungletree4.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
rotation = "random",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt"},
|
|
sidelen = 80,
|
|
fill_ratio = 0.005,
|
|
biomes = {"rainforest", "rainforest_swamp"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = {
|
|
size = {x = 3, y = 3, z = 1},
|
|
data = {
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "default:jungletree", param2 = 12, prob = 191},
|
|
{name = "default:jungletree", param2 = 12},
|
|
{name = "default:jungletree", param2 = 12, prob = 127},
|
|
{name = "air", prob = 0},
|
|
{name = "flowers:mushroom_brown", prob = 127},
|
|
{name = "air", prob = 0},
|
|
},
|
|
},
|
|
flags = "place_center_x",
|
|
rotation = "random",
|
|
})
|
|
|
|
-- Taiga and temperate coniferous forest pine tree and log
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.026,
|
|
scale = 0.012,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"taiga", "coniferous_forest"},
|
|
y_min = 2,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/pine1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.026,
|
|
scale = 0.012,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"taiga", "coniferous_forest"},
|
|
y_min = 2,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/pine2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.026,
|
|
scale = 0.012,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"taiga", "coniferous_forest"},
|
|
y_min = 2,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/pine3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.026,
|
|
scale = 0.012,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"taiga", "coniferous_forest"},
|
|
y_min = 2,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/pine4.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
|
|
sidelen = 80,
|
|
noise_params = {
|
|
offset = 0.0018,
|
|
scale = 0.0011,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"taiga", "coniferous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = {
|
|
size = {x = 3, y = 3, z = 1},
|
|
data = {
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "default:pine_tree", param2 = 12, prob = 191},
|
|
{name = "default:pine_tree", param2 = 12},
|
|
{name = "default:pine_tree", param2 = 12, prob = 127},
|
|
{name = "air", prob = 0},
|
|
{name = "flowers:mushroom_red", prob = 63},
|
|
{name = "air", prob = 0},
|
|
},
|
|
},
|
|
flags = "place_center_x",
|
|
rotation = "random",
|
|
})
|
|
|
|
-- Acacia tree and log
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0,
|
|
scale = 0.002,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("default") .. "/schematics/acacia_tree.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
rotation = "random",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0,
|
|
scale = 0.001,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = {
|
|
size = {x = 3, y = 2, z = 1},
|
|
data = {
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "default:acacia_tree", param2 = 12, prob = 191},
|
|
{name = "default:acacia_tree", param2 = 12},
|
|
{name = "default:acacia_tree", param2 = 12, prob = 127},
|
|
},
|
|
},
|
|
flags = "place_center_x",
|
|
rotation = "random",
|
|
})
|
|
|
|
-- Aspen tree and log
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.0,
|
|
scale = -0.005,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest", "rainforest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/aspen_1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.0,
|
|
scale = -0.005,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/aspen_2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.0,
|
|
scale = -0.005,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/aspen_3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.0,
|
|
scale = -0.005,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/aspen_4.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0.0,
|
|
scale = -0.0008,
|
|
spread = {x = 250, y = 250, z = 250},
|
|
seed = 2,
|
|
octaves = 3,
|
|
persist = 0.66
|
|
},
|
|
biomes = {"deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = {
|
|
size = {x = 3, y = 3, z = 1},
|
|
data = {
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "air", prob = 0},
|
|
{name = "default:aspen_tree", param2 = 12},
|
|
{name = "default:aspen_tree", param2 = 12},
|
|
{name = "default:aspen_tree", param2 = 12, prob = 127},
|
|
{name = "flowers:mushroom_red", prob = 63},
|
|
{name = "flowers:mushroom_brown", prob = 63},
|
|
{name = "air", prob = 0},
|
|
},
|
|
},
|
|
flags = "place_center_x",
|
|
rotation = "random",
|
|
})
|
|
|
|
-- Large cactus
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:desert_sand"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.0003,
|
|
scale = 0.0009,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 230,
|
|
octaves = 3,
|
|
persist = 0.6
|
|
},
|
|
biomes = {"desert"},
|
|
y_min = 5,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("default") .. "/schematics/large_cactus.mts",
|
|
flags = "place_center_x",
|
|
rotation = "random",
|
|
})
|
|
|
|
-- Cactus
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "simple",
|
|
place_on = {"default:desert_sand"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.0003,
|
|
scale = 0.0009,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 230,
|
|
octaves = 3,
|
|
persist = 0.6
|
|
},
|
|
biomes = {"desert"},
|
|
y_min = 5,
|
|
y_max = 31000,
|
|
decoration = "default:cactus",
|
|
height = 2,
|
|
height_max = 5,
|
|
})
|
|
|
|
-- Papyrus
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.3,
|
|
scale = 0.7,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 354,
|
|
octaves = 3,
|
|
persist = 0.7
|
|
},
|
|
biomes = {"savanna_shore"},
|
|
y_min = 0,
|
|
y_max = 0,
|
|
schematic = minetest.get_modpath("default") .. "/schematics/papyrus.mts",
|
|
})
|
|
|
|
-- Bush
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt_with_snow"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.01,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 137,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"snowy_grassland", "grassland", "deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/bush.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt_with_snow"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 137,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"snowy_grassland", "grassland", "deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/bush1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt_with_snow"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 137,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"snowy_grassland", "grassland", "deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/bush2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass", "default:dirt_with_snow"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 137,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"snowy_grassland", "grassland", "deciduous_forest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/bush3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
-- Acacia bush
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/acaciabush.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/acaciabush1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/acaciabush2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_dry_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.001,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"savanna"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/acaciabush3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
--jungle bush
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.01,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"rainforest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/junglebush.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.01,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"rainforest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/junglebush1.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.01,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"rainforest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/junglebush2.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = -0.004,
|
|
scale = 0.01,
|
|
spread = {x = 100, y = 100, z = 100},
|
|
seed = 90155,
|
|
octaves = 3,
|
|
persist = 0.7,
|
|
},
|
|
biomes = {"rainforest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
schematic = minetest.get_modpath("nodebox_trees") .. "/schematics/junglebush3.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
})
|
|
|
|
-- Grasses
|
|
|
|
register_grass_decoration(-0.03, 0.09, 5)
|
|
register_grass_decoration(-0.015, 0.075, 4)
|
|
register_grass_decoration(0, 0.06, 3)
|
|
register_grass_decoration(0.015, 0.045, 2)
|
|
register_grass_decoration(0.03, 0.03, 1)
|
|
|
|
-- Dry grasses
|
|
|
|
register_dry_grass_decoration(0.01, 0.05, 5)
|
|
register_dry_grass_decoration(0.03, 0.03, 4)
|
|
register_dry_grass_decoration(0.05, 0.01, 3)
|
|
register_dry_grass_decoration(0.07, -0.01, 2)
|
|
register_dry_grass_decoration(0.09, -0.03, 1)
|
|
|
|
-- Junglegrass
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "simple",
|
|
place_on = {"default:dirt_with_grass"},
|
|
sidelen = 80,
|
|
fill_ratio = 0.1,
|
|
biomes = {"rainforest"},
|
|
y_min = 1,
|
|
y_max = 31000,
|
|
decoration = "default:junglegrass",
|
|
})
|
|
|
|
-- Dry shrub
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "simple",
|
|
place_on = {"default:desert_sand",
|
|
"default:sand", "default:silver_sand"},
|
|
sidelen = 16,
|
|
noise_params = {
|
|
offset = 0,
|
|
scale = 0.02,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 329,
|
|
octaves = 3,
|
|
persist = 0.6
|
|
},
|
|
biomes = {"desert", "sandstone_desert", "cold_desert"},
|
|
y_min = 2,
|
|
y_max = 31000,
|
|
decoration = "default:dry_shrub",
|
|
})
|
|
|
|
-- Coral reef
|
|
|
|
minetest.register_decoration({
|
|
deco_type = "schematic",
|
|
place_on = {"default:sand"},
|
|
noise_params = {
|
|
offset = -0.1,
|
|
scale = 0.1,
|
|
spread = {x = 200, y = 200, z = 200},
|
|
seed = 7013,
|
|
octaves = 3,
|
|
persist = 1,
|
|
},
|
|
biomes = {
|
|
"desert_ocean",
|
|
"savanna_ocean",
|
|
"rainforest_ocean",
|
|
},
|
|
y_min = -8,
|
|
y_max = -2,
|
|
schematic = minetest.get_modpath("default") .. "/schematics/corals.mts",
|
|
flags = "place_center_x, place_center_z",
|
|
rotation = "random",
|
|
})
|