123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440 |
- 46,48d45
- < -- Blob ores
- < -- These first to avoid other ores in blobs
- <
- 51c48,51
- < function default.register_mgv6_blob_ores()
- ---
- > function default.register_mgv6_ores()
- >
- > -- Blob ore
- > -- These first to avoid other ores in blobs
- 136a137,407
- >
- > -- Scatter ores
- >
- > -- Coal
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_coal",
- > wherein = "default:stone",
- > clust_scarcity = 8 * 8 * 8,
- > clust_num_ores = 9,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_coal",
- > wherein = "default:stone",
- > clust_scarcity = 8 * 8 * 8,
- > clust_num_ores = 8,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = 64,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_coal",
- > wherein = "default:stone",
- > clust_scarcity = 24 * 24 * 24,
- > clust_num_ores = 27,
- > clust_size = 6,
- > y_min = -31000,
- > y_max = 0,
- > })
- >
- > -- Iron
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_iron",
- > wherein = "default:stone",
- > clust_scarcity = 9 * 9 * 9,
- > clust_num_ores = 12,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_iron",
- > wherein = "default:stone",
- > clust_scarcity = 7 * 7 * 7,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = 0,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_iron",
- > wherein = "default:stone",
- > clust_scarcity = 24 * 24 * 24,
- > clust_num_ores = 27,
- > clust_size = 6,
- > y_min = -31000,
- > y_max = -64,
- > })
- >
- > -- Copper
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_copper",
- > wherein = "default:stone",
- > clust_scarcity = 9 * 9 * 9,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_copper",
- > wherein = "default:stone",
- > clust_scarcity = 12 * 12 * 12,
- > clust_num_ores = 4,
- > clust_size = 3,
- > y_min = -63,
- > y_max = -16,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_copper",
- > wherein = "default:stone",
- > clust_scarcity = 9 * 9 * 9,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = -64,
- > })
- >
- > -- Tin
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_tin",
- > wherein = "default:stone",
- > clust_scarcity = 10 * 10 * 10,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_tin",
- > wherein = "default:stone",
- > clust_scarcity = 13 * 13 * 13,
- > clust_num_ores = 4,
- > clust_size = 3,
- > y_min = -127,
- > y_max = -32,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_tin",
- > wherein = "default:stone",
- > clust_scarcity = 10 * 10 * 10,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = -128,
- > })
- >
- > -- Gold
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_gold",
- > wherein = "default:stone",
- > clust_scarcity = 13 * 13 * 13,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_gold",
- > wherein = "default:stone",
- > clust_scarcity = 15 * 15 * 15,
- > clust_num_ores = 3,
- > clust_size = 2,
- > y_min = -255,
- > y_max = -64,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_gold",
- > wherein = "default:stone",
- > clust_scarcity = 13 * 13 * 13,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = -256,
- > })
- >
- > -- Mese crystal
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_mese",
- > wherein = "default:stone",
- > clust_scarcity = 14 * 14 * 14,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_mese",
- > wherein = "default:stone",
- > clust_scarcity = 18 * 18 * 18,
- > clust_num_ores = 3,
- > clust_size = 2,
- > y_min = -255,
- > y_max = -64,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_mese",
- > wherein = "default:stone",
- > clust_scarcity = 14 * 14 * 14,
- > clust_num_ores = 5,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = -256,
- > })
- >
- > -- Diamond
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_diamond",
- > wherein = "default:stone",
- > clust_scarcity = 15 * 15 * 15,
- > clust_num_ores = 4,
- > clust_size = 3,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_diamond",
- > wherein = "default:stone",
- > clust_scarcity = 17 * 17 * 17,
- > clust_num_ores = 4,
- > clust_size = 3,
- > y_min = -255,
- > y_max = -128,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:stone_with_diamond",
- > wherein = "default:stone",
- > clust_scarcity = 15 * 15 * 15,
- > clust_num_ores = 4,
- > clust_size = 3,
- > y_min = -31000,
- > y_max = -256,
- > })
- >
- > -- Mese block
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:mese",
- > wherein = "default:stone",
- > clust_scarcity = 36 * 36 * 36,
- > clust_num_ores = 3,
- > clust_size = 2,
- > y_min = 1025,
- > y_max = 31000,
- > })
- >
- > minetest.register_ore({
- > ore_type = "scatter",
- > ore = "default:mese",
- > wherein = "default:stone",
- > clust_scarcity = 36 * 36 * 36,
- > clust_num_ores = 3,
- > clust_size = 2,
- > y_min = -31000,
- > y_max = -1024,
- > })
- 142c413,416
- < function default.register_blob_ores()
- ---
- > function default.register_ores()
- >
- > -- Blob ore
- > -- These first to avoid other ores in blobs
- 144a419
- > -- This first to avoid clay in sand blobs
- 191c466
- < "floatland_ocean", "floatland_grassland", "floatland_coniferous_forest"}
- ---
- > "floatland_coniferous_forest", "floatland_coniferous_forest_ocean"}
- 215,216c490
- < "rainforest", "rainforest_swamp", "floatland_grassland",
- < "floatland_coniferous_forest"}
- ---
- > "rainforest", "rainforest_swamp", "floatland_coniferous_forest"}
- 245c519
- < "floatland_ocean", "floatland_grassland", "floatland_coniferous_forest"}
- ---
- > "floatland_coniferous_forest", "floatland_coniferous_forest_ocean"}
- 247,248d520
- < end
- <
- 250,253c522
- < -- Scatter ores
- < -- All mapgens
- <
- < function default.register_ores()
- ---
- > -- Scatter ores
- 1178a1448
- > -- Used when mgv7 'biomerepeat' flag is false
- 1180,1202c1450
- < function default.register_floatland_biomes(floatland_level, shadow_limit)
- <
- < -- Coniferous forest
- <
- < minetest.register_biome({
- < name = "floatland_coniferous_forest",
- < --node_dust = "",
- < node_top = "default:dirt_with_grass",
- < depth_top = 1,
- < node_filler = "default:dirt",
- < depth_filler = 3,
- < --node_stone = "",
- < --node_water_top = "",
- < --depth_water_top = ,
- < --node_water = "",
- < --node_river_water = "",
- < --node_riverbed = "",
- < --depth_riverbed = ,
- < y_min = floatland_level + 2,
- < y_max = 31000,
- < heat_point = 50,
- < humidity_point = 70,
- < })
- ---
- > -- TODO Temporary simple biomes to be replaced by special floatland biomes later.
- 1204c1452
- < -- Grassland
- ---
- > function default.register_floatland_biomes(floatland_level, shadow_limit)
- 1220c1468
- < y_min = floatland_level + 2,
- ---
- > y_min = floatland_level + 4,
- 1223,1245c1471
- < humidity_point = 35,
- < })
- <
- < -- Sandstone desert
- <
- < minetest.register_biome({
- < name = "floatland_sandstone_desert",
- < --node_dust = "",
- < node_top = "default:sand",
- < depth_top = 1,
- < node_filler = "default:sand",
- < depth_filler = 1,
- < node_stone = "default:sandstone",
- < --node_water_top = "",
- < --depth_water_top = ,
- < --node_water = "",
- < --node_river_water = "",
- < --node_riverbed = "",
- < --depth_riverbed = ,
- < y_min = floatland_level + 2,
- < y_max = 31000,
- < heat_point = 50,
- < humidity_point = 0,
- ---
- > humidity_point = 50,
- 1248,1249d1473
- < -- Floatland ocean / underground
- <
- 1251c1475
- < name = "floatland_ocean",
- ---
- > name = "floatland_grassland_ocean",
- 1265c1489
- < y_max = floatland_level + 1,
- ---
- > y_max = floatland_level + 3,
- 1383c1607
- < "floatland_grassland", "floatland_coniferous_forest"},
- ---
- > "floatland_grassland"},
- 1497c1721
- < biomes = {"taiga", "coniferous_forest", "floatland_coniferous_forest"},
- ---
- > biomes = {"taiga", "coniferous_forest"},
- 1797c2021
- < "mountains, ridges, nofloatlands"
- ---
- > "mountains, ridges, nofloatlands, caverns, biomerepeat"
- 1799a2024
- > local captures_nobiorep = string.match(mgv7_spflags, "nobiomerepeat")
- 1801,1802c2026,2031
- < local mgv7_floatland_level = minetest.get_mapgen_setting("mgv7_floatland_level") or 1280
- < local mgv7_shadow_limit = minetest.get_mapgen_setting("mgv7_shadow_limit") or 1024
- ---
- > -- 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
- 1808a2038
- >
- 1810,1811c2040
- < default.register_mgv6_blob_ores()
- < default.register_ores()
- ---
- > default.register_mgv6_ores()
- 1813,1818c2042,2051
- < elseif mg_name == "v7" and captures_float == "floatlands" and
- < captures_nofloat ~= "nofloatlands" then
- < -- Mgv7 with floatlands
- < default.register_biomes(mgv7_shadow_limit - 1)
- < default.register_floatland_biomes(mgv7_floatland_level, mgv7_shadow_limit)
- < default.register_blob_ores()
- ---
- > elseif mg_name == "v7" and
- > captures_float == "floatlands" and
- > -- Need to check for 'nofloatlands' because that contains
- > -- 'floatlands' which makes the second condition true.
- > captures_nofloat ~= "nofloatlands" and
- > captures_nobiorep == "nobiomerepeat" 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)
- 1823d2055
- < default.register_blob_ores()
|