minetest-mm/mods/moretrees/biome_defs.lua

156 lines
3.7 KiB
Lua
Raw Normal View History

2020-10-25 20:54:52 +01:00
moretrees.beech_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
}
moretrees.palm_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.sand,
2020-10-25 20:54:52 +01:00
min_elevation = -1,
max_elevation = 1,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 10,
2020-10-25 20:54:52 +01:00
}
moretrees.date_palm_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.desert_sand,
2020-10-25 20:54:52 +01:00
min_elevation = -1,
max_elevation = 10,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 100,
2020-10-25 20:54:52 +01:00
}
moretrees.date_palm_biome_2 = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.desert_sand,
2020-10-25 20:54:52 +01:00
min_elevation = 11,
max_elevation = 30,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1,
2020-10-25 20:54:52 +01:00
}
moretrees.apple_tree_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 1,
max_elevation = 10,
2024-12-19 12:55:40 +01:00
biomes = {"deciduous_forest"},
fill_ratio = 0.0001,
2020-10-25 20:54:52 +01:00
}
moretrees.oak_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 10,
2024-12-19 12:55:40 +01:00
fill_ratio = 0.0003
2020-10-25 20:54:52 +01:00
}
moretrees.sequoia_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 10,
2024-12-19 12:55:40 +01:00
fill_ratio = 0.0001,
2020-10-25 20:54:52 +01:00
}
moretrees.birch_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 10,
max_elevation = 15,
2024-12-19 12:55:40 +01:00
fill_ratio = 0.001,
2020-10-25 20:54:52 +01:00
}
moretrees.willow_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = -5,
max_elevation = 5,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 5,
2020-10-25 20:54:52 +01:00
}
moretrees.rubber_tree_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = -5,
max_elevation = 5,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 10,
2020-10-25 20:54:52 +01:00
}
moretrees.jungletree_biome = {
2024-12-19 12:55:40 +01:00
place_on = {
xcompat.materials.dirt,
xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
"woodsoils:dirt_with_leaves_1",
"woodsoils:grass_with_leaves_1",
2024-12-19 12:55:40 +01:00
"woodsoils:grass_with_leaves_2",
"default:dirt_with_rainforest_litter",
2020-10-25 20:54:52 +01:00
},
min_elevation = 1,
2024-12-19 12:55:40 +01:00
spawn_by = minetest.get_modpath("default") and {"default:jungletree"} or nil,
num_spawn_by = minetest.get_modpath("default") and 1 or nil,
biomes = {"rainforest", "rainforest_swamp"},
2020-10-25 20:54:52 +01:00
}
moretrees.spruce_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 20,
}
moretrees.cedar_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-11-22 09:41:56 +01:00
min_elevation = 0, --Added to solve an issue where cedar trees would sometimes spawn deep underground
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 5,
2020-10-25 20:54:52 +01:00
}
-- Poplar requires a lot of water.
moretrees.poplar_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 50,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1,
2020-10-25 20:54:52 +01:00
}
-- Spawn an occasional poplar elsewhere.
moretrees.poplar_biome_2 = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 50,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 10,
2020-10-25 20:54:52 +01:00
}
-- Subterranean lakes provide enough water for poplars to grow
moretrees.poplar_biome_3 = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 50,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1,
2020-10-25 20:54:52 +01:00
}
moretrees.poplar_small_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 50,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 1,
2020-10-25 20:54:52 +01:00
}
moretrees.poplar_small_biome_2 = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 0,
max_elevation = 50,
2024-12-19 12:55:40 +01:00
spawn_by = {xcompat.materials.water_source},
num_spawn_by = 5,
2020-10-25 20:54:52 +01:00
}
moretrees.fir_biome = {
2024-12-19 12:55:40 +01:00
place_on = xcompat.materials.dirt_with_grass,
2020-10-25 20:54:52 +01:00
min_elevation = 25,
}
moretrees.fir_biome_snow = {
2024-12-19 12:55:40 +01:00
place_on = {"snow:dirt_with_snow", "snow:snow"},
below_nodes = {xcompat.materials.dirt, xcompat.materials.dirt_with_grass, "snow:dirt_with_snow"},
2020-10-25 20:54:52 +01:00
}