Ores (non-mgv6 mapgens): New distributions
authorparamat <paramat@users.noreply.github.com>
Sun, 2 Jul 2017 13:22:00 +0000 (14:22 +0100)
committerparamat <mat.gregory@virginmedia.com>
Mon, 25 Sep 2017 14:55:22 +0000 (15:55 +0100)
Make deeper, to compensate for ease of travel using 3D noise tunnels.
Make depth more progressive with value:

Ore, upper limit

Coal 64 no change
Iron 0 no change
Tin -32 > -64
Copper -16 > -128
Gold -64 > -256
Diamond -128 > -512
Mese crystal -64 > -512
Mese block -1024 no change

Make y of 1st density increase deeper but following a similar logic to before:

Ore, upper limit

Coal 0 no change
Iron -64 no change
Tin -128 no change
Copper -64 > -256
Gold -256 > -1024
Diamond -256 > -1024
Mese crystal -256 > -1024
Mese block -2048 new

Add second, denser layer of mese blocks with a decrease of separation and
increase in density equal to mese ore layers.

mods/default/mapgen.lua

index ebb93d36817e285be8c29614683cfff95214b573..4503d5301824343a0b4a31e8a69f56c983e3da0f 100644 (file)
@@ -591,13 +591,13 @@ function default.register_ores()
                y_max          = -64,
        })
 
-       -- Copper
+       -- Tin
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_copper",
+               ore            = "default:stone_with_tin",
                wherein        = "default:stone",
-               clust_scarcity = 9 * 9 * 9,
+               clust_scarcity = 10 * 10 * 10,
                clust_num_ores = 5,
                clust_size     = 3,
                y_min          = 1025,
@@ -606,33 +606,33 @@ function default.register_ores()
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_copper",
+               ore            = "default:stone_with_tin",
                wherein        = "default:stone",
-               clust_scarcity = 12 * 12 * 12,
+               clust_scarcity = 13 * 13 * 13,
                clust_num_ores = 4,
                clust_size     = 3,
-               y_min          = -63,
-               y_max          = -16,
+               y_min          = -127,
+               y_max          = -64,
        })
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_copper",
+               ore            = "default:stone_with_tin",
                wherein        = "default:stone",
-               clust_scarcity = 9 * 9 * 9,
+               clust_scarcity = 10 * 10 * 10,
                clust_num_ores = 5,
                clust_size     = 3,
                y_min          = -31000,
-               y_max          = -64,
+               y_max          = -128,
        })
 
-       -- Tin
+       -- Copper
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_tin",
+               ore            = "default:stone_with_copper",
                wherein        = "default:stone",
-               clust_scarcity = 10 * 10 * 10,
+               clust_scarcity = 9 * 9 * 9,
                clust_num_ores = 5,
                clust_size     = 3,
                y_min          = 1025,
@@ -641,24 +641,24 @@ function default.register_ores()
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_tin",
+               ore            = "default:stone_with_copper",
                wherein        = "default:stone",
-               clust_scarcity = 13 * 13 * 13,
+               clust_scarcity = 12 * 12 * 12,
                clust_num_ores = 4,
                clust_size     = 3,
-               y_min          = -127,
-               y_max          = -32,
+               y_min          = -255,
+               y_max          = -128,
        })
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_tin",
+               ore            = "default:stone_with_copper",
                wherein        = "default:stone",
-               clust_scarcity = 10 * 10 * 10,
+               clust_scarcity = 9 * 9 * 9,
                clust_num_ores = 5,
                clust_size     = 3,
                y_min          = -31000,
-               y_max          = -128,
+               y_max          = -256,
        })
 
        -- Gold
@@ -681,8 +681,8 @@ function default.register_ores()
                clust_scarcity = 15 * 15 * 15,
                clust_num_ores = 3,
                clust_size     = 2,
-               y_min          = -255,
-               y_max          = -64,
+               y_min          = -1023,
+               y_max          = -256,
        })
 
        minetest.register_ore({
@@ -693,17 +693,17 @@ function default.register_ores()
                clust_num_ores = 5,
                clust_size     = 3,
                y_min          = -31000,
-               y_max          = -256,
+               y_max          = -1024,
        })
 
-       -- Mese crystal
+       -- Diamond
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_mese",
+               ore            = "default:stone_with_diamond",
                wherein        = "default:stone",
-               clust_scarcity = 14 * 14 * 14,
-               clust_num_ores = 5,
+               clust_scarcity = 15 * 15 * 15,
+               clust_num_ores = 4,
                clust_size     = 3,
                y_min          = 1025,
                y_max          = 31000,
@@ -711,34 +711,34 @@ function default.register_ores()
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_mese",
+               ore            = "default:stone_with_diamond",
                wherein        = "default:stone",
-               clust_scarcity = 18 * 18 * 18,
-               clust_num_ores = 3,
-               clust_size     = 2,
-               y_min          = -255,
-               y_max          = -64,
+               clust_scarcity = 17 * 17 * 17,
+               clust_num_ores = 4,
+               clust_size     = 3,
+               y_min          = -1023,
+               y_max          = -512,
        })
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_mese",
+               ore            = "default:stone_with_diamond",
                wherein        = "default:stone",
-               clust_scarcity = 14 * 14 * 14,
-               clust_num_ores = 5,
+               clust_scarcity = 15 * 15 * 15,
+               clust_num_ores = 4,
                clust_size     = 3,
                y_min          = -31000,
-               y_max          = -256,
+               y_max          = -1024,
        })
 
-       -- Diamond
+       -- Mese crystal
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_diamond",
+               ore            = "default:stone_with_mese",
                wherein        = "default:stone",
-               clust_scarcity = 15 * 15 * 15,
-               clust_num_ores = 4,
+               clust_scarcity = 14 * 14 * 14,
+               clust_num_ores = 5,
                clust_size     = 3,
                y_min          = 1025,
                y_max          = 31000,
@@ -746,24 +746,24 @@ function default.register_ores()
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_diamond",
+               ore            = "default:stone_with_mese",
                wherein        = "default:stone",
-               clust_scarcity = 17 * 17 * 17,
-               clust_num_ores = 4,
-               clust_size     = 3,
-               y_min          = -255,
-               y_max          = -128,
+               clust_scarcity = 18 * 18 * 18,
+               clust_num_ores = 3,
+               clust_size     = 2,
+               y_min          = -1023,
+               y_max          = -512,
        })
 
        minetest.register_ore({
                ore_type       = "scatter",
-               ore            = "default:stone_with_diamond",
+               ore            = "default:stone_with_mese",
                wherein        = "default:stone",
-               clust_scarcity = 15 * 15 * 15,
-               clust_num_ores = 4,
+               clust_scarcity = 14 * 14 * 14,
+               clust_num_ores = 5,
                clust_size     = 3,
                y_min          = -31000,
-               y_max          = -256,
+               y_max          = -1024,
        })
 
        -- Mese block
@@ -786,9 +786,20 @@ function default.register_ores()
                clust_scarcity = 36 * 36 * 36,
                clust_num_ores = 3,
                clust_size     = 2,
-               y_min          = -31000,
+               y_min          = -2047,
                y_max          = -1024,
        })
+
+       minetest.register_ore({
+               ore_type       = "scatter",
+               ore            = "default:mese",
+               wherein        = "default:stone",
+               clust_scarcity = 28 * 28 * 28,
+               clust_num_ores = 5,
+               clust_size     = 3,
+               y_min          = -31000,
+               y_max          = -2048,
+       })
 end