-- Only where default:dirt is present as surface material
biomes = {"taiga", "snowy_grassland", "grassland", "coniferous_forest",
"deciduous_forest", "deciduous_forest_shore", "rainforest",
- "rainforest_swamp", "floatland_coniferous_forest"}
+ "rainforest_swamp"}
})
-- Gravel
-- All mapgens except mgv6
-function default.register_biomes(upper_limit)
+function default.register_biomes()
-- Icesheet
depth_riverbed = 2,
node_dungeon = "default:ice",
node_dungeon_stair = "stairs:stair_ice",
- y_max = upper_limit,
+ y_max = 31000,
y_min = -8,
heat_point = 0,
humidity_point = 73,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 47,
heat_point = 0,
humidity_point = 40,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 4,
heat_point = 25,
humidity_point = 70,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 4,
heat_point = 20,
humidity_point = 35,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 6,
heat_point = 50,
humidity_point = 35,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 6,
heat_point = 45,
humidity_point = 70,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 1,
heat_point = 60,
humidity_point = 68,
depth_riverbed = 2,
node_dungeon = "default:desert_stone",
node_dungeon_stair = "stairs:stair_desert_stone",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 4,
heat_point = 92,
humidity_point = 16,
depth_riverbed = 2,
node_dungeon = "default:sandstonebrick",
node_dungeon_stair = "stairs:stair_sandstone_block",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 4,
heat_point = 60,
humidity_point = 0,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 4,
heat_point = 40,
humidity_point = 0,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 1,
heat_point = 89,
humidity_point = 42,
node_dungeon = "default:cobble",
node_dungeon_alt = "default:mossycobble",
node_dungeon_stair = "stairs:stair_cobble",
- y_max = upper_limit,
+ y_max = 31000,
y_min = 1,
heat_point = 86,
humidity_point = 65,
end
--- Biomes for floatlands
-
--- TODO Temporary simple biomes to be replaced by special floatland biomes later.
-
-function default.register_floatland_biomes(floatland_level, shadow_limit)
-
- minetest.register_biome({
- name = "floatland_grassland",
- node_top = "default:dirt_with_grass",
- depth_top = 1,
- node_filler = "default:dirt",
- depth_filler = 1,
- node_dungeon = "default:cobble",
- node_dungeon_alt = "default:mossycobble",
- node_dungeon_stair = "stairs:stair_cobble",
- y_max = 31000,
- y_min = floatland_level + 2,
- heat_point = 50,
- humidity_point = 25,
- })
-
- minetest.register_biome({
- name = "floatland_coniferous_forest",
- node_top = "default:dirt_with_coniferous_litter",
- depth_top = 1,
- node_filler = "default:dirt",
- depth_filler = 3,
- node_dungeon = "default:cobble",
- node_dungeon_alt = "default:mossycobble",
- node_dungeon_stair = "stairs:stair_cobble",
- y_max = 31000,
- y_min = floatland_level + 2,
- heat_point = 50,
- humidity_point = 75,
- })
-
- minetest.register_biome({
- name = "floatland_ocean",
- node_top = "default:sand",
- depth_top = 1,
- node_filler = "default:sand",
- depth_filler = 3,
- node_dungeon = "default:cobble",
- node_dungeon_alt = "default:mossycobble",
- node_dungeon_stair = "stairs:stair_cobble",
- y_max = floatland_level + 1,
- y_min = shadow_limit,
- heat_point = 50,
- humidity_point = 50,
- })
-end
-
-
--
-- Register decorations
--
octaves = 3,
persist = 0.6
},
- biomes = {"grassland", "deciduous_forest", "floatland_grassland"},
+ biomes = {"grassland", "deciduous_forest"},
y_max = 31000,
y_min = 1,
decoration = "default:grass_" .. length,
octaves = 3,
persist = 0.7
},
- biomes = {"coniferous_forest", "floatland_coniferous_forest"},
+ biomes = {"coniferous_forest"},
y_max = 31000,
y_min = 6,
decoration = "default:fern_" .. length,
octaves = 3,
persist = 0.66
},
- biomes = {"taiga", "coniferous_forest", "floatland_coniferous_forest"},
+ biomes = {"taiga", "coniferous_forest"},
y_max = 31000,
y_min = 4,
schematic = minetest.get_modpath("default") .. "/schematics/pine_tree.mts",
octaves = 3,
persist = 0.66
},
- biomes = {"taiga", "coniferous_forest", "floatland_coniferous_forest"},
+ biomes = {"taiga", "coniferous_forest"},
y_max = 31000,
y_min = 4,
schematic = minetest.get_modpath("default") .. "/schematics/small_pine_tree.mts",
place_offset_y = 1,
sidelen = 80,
fill_ratio = 0.0018,
- biomes = {"taiga", "coniferous_forest", "floatland_coniferous_forest"},
+ biomes = {"taiga", "coniferous_forest"},
y_max = 31000,
y_min = 4,
schematic = minetest.get_modpath("default") .. "/schematics/pine_log.mts",
octaves = 3,
persist = 0.7,
},
- biomes = {"grassland", "deciduous_forest",
- "floatland_grassland"},
+ biomes = {"grassland", "deciduous_forest"},
y_max = 31000,
y_min = 1,
schematic = minetest.get_modpath("default") .. "/schematics/bush.mts",
--
--- Detect mapgen, flags and parameters to select functions
+-- Detect mapgen to select functions
--
--- Get setting or default
-local mgv7_spflags = minetest.get_mapgen_setting("mgv7_spflags") or
- "mountains, ridges, nofloatlands, caverns"
-local captures_float = string.match(mgv7_spflags, "floatlands")
-local captures_nofloat = string.match(mgv7_spflags, "nofloatlands")
-
--- Get setting or default
--- Make global for mods to use to register floatland biomes
-default.mgv7_floatland_level =
- minetest.get_mapgen_setting("mgv7_floatland_level") or 1280
-default.mgv7_shadow_limit =
- minetest.get_mapgen_setting("mgv7_shadow_limit") or 1024
-
minetest.clear_registered_biomes()
minetest.clear_registered_ores()
minetest.clear_registered_decorations()
if mg_name == "v6" then
default.register_mgv6_ores()
default.register_mgv6_decorations()
--- Need to check for 'nofloatlands' because that contains
--- 'floatlands' which makes the second condition true.
-elseif mg_name == "v7" and
- captures_float == "floatlands" and
- captures_nofloat ~= "nofloatlands" then
- -- Mgv7 with floatlands and floatland biomes
- default.register_biomes(default.mgv7_shadow_limit - 1)
- default.register_floatland_biomes(
- default.mgv7_floatland_level, default.mgv7_shadow_limit)
- default.register_ores()
- default.register_decorations()
else
- default.register_biomes(31000)
+ default.register_biomes()
default.register_ores()
default.register_decorations()
end