Use stratum ore to add the missing sandstone types
authorParamat <paramat@users.noreply.github.com>
Sun, 29 Apr 2018 06:15:11 +0000 (07:15 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Apr 2018 06:15:11 +0000 (07:15 +0100)
Add silver sandstone strata to 'cold desert' biome.
Add sandstone and desert_sandstone strata to 'desert' biome.

mods/default/mapgen.lua

index 6892743b7536169fe59d0fb206516638de985b7c..7f0fbd887df091d36d1e1fcdcb418f0d07354c37 100644 (file)
@@ -412,11 +412,109 @@ end
 
 function default.register_ores()
 
-       -- Blob ore
-       -- These first to avoid other ores in blobs
+       -- Stratum ores.
+       -- These obviously first.
+
+       -- Silver sandstone
+
+       minetest.register_ore({
+               ore_type        = "stratum",
+               ore             = "default:silver_sandstone",
+               wherein         = {"default:stone"},
+               clust_scarcity  = 1,
+               y_max           = 46,
+               y_min           = 10,
+               noise_params    = {
+                       offset = 28,
+                       scale = 16,
+                       spread = {x = 128, y = 128, z = 128},
+                       seed = 90122,
+                       octaves = 1,
+               },
+               stratum_thickness = 4,
+               biomes = {"cold_desert"},
+       })
+
+       minetest.register_ore({
+               ore_type        = "stratum",
+               ore             = "default:silver_sandstone",
+               wherein         = {"default:stone"},
+               clust_scarcity  = 1,
+               y_max           = 42,
+               y_min           = 6,
+               noise_params    = {
+                       offset = 24,
+                       scale = 16,
+                       spread = {x = 128, y = 128, z = 128},
+                       seed = 90122,
+                       octaves = 1,
+               },
+               stratum_thickness = 2,
+               biomes = {"cold_desert"},
+       })
+
+       -- Desert sandstone
+
+       minetest.register_ore({
+               ore_type        = "stratum",
+               ore             = "default:desert_sandstone",
+               wherein         = {"default:desert_stone"},
+               clust_scarcity  = 1,
+               y_max           = 46,
+               y_min           = 10,
+               noise_params    = {
+                       offset = 28,
+                       scale = 16,
+                       spread = {x = 128, y = 128, z = 128},
+                       seed = 90122,
+                       octaves = 1,
+               },
+               stratum_thickness = 4,
+               biomes = {"desert"},
+       })
+
+       minetest.register_ore({
+               ore_type        = "stratum",
+               ore             = "default:desert_sandstone",
+               wherein         = {"default:desert_stone"},
+               clust_scarcity  = 1,
+               y_max           = 42,
+               y_min           = 6,
+               noise_params    = {
+                       offset = 24,
+                       scale = 16,
+                       spread = {x = 128, y = 128, z = 128},
+                       seed = 90122,
+                       octaves = 1,
+               },
+               stratum_thickness = 2,
+               biomes = {"desert"},
+       })
+
+       -- Sandstone
+
+       minetest.register_ore({
+               ore_type        = "stratum",
+               ore             = "default:sandstone",
+               wherein         = {"default:desert_stone"},
+               clust_scarcity  = 1,
+               y_max           = 39,
+               y_min           = 3,
+               noise_params    = {
+                       offset = 21,
+                       scale = 16,
+                       spread = {x = 128, y = 128, z = 128},
+                       seed = 90122,
+                       octaves = 1,
+               },
+               stratum_thickness = 2,
+               biomes = {"desert"},
+       })
+
+       -- Blob ore.
+       -- These before scatter ores to avoid other ores in blobs.
 
        -- Clay
-       -- This first to avoid clay in sand blobs
 
        minetest.register_ore({
                ore_type        = "blob",