Skip to content

Commit

Permalink
Use stratum ore to add the missing sandstone types
Browse files Browse the repository at this point in the history
Add silver sandstone strata to 'cold desert' biome.
Add sandstone and desert_sandstone strata to 'desert' biome.
  • Loading branch information
paramat committed Apr 29, 2018
1 parent bbb88e6 commit aedd209
Showing 1 changed file with 101 additions and 3 deletions.
104 changes: 101 additions & 3 deletions mods/default/mapgen.lua
Expand Up @@ -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",
Expand Down

0 comments on commit aedd209

Please sign in to comment.