Skip to content

Commit

Permalink
Ores (non-mgv6 mapgens): New distributions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
paramat committed Sep 25, 2017
1 parent f33cc02 commit 74ed63f
Showing 1 changed file with 63 additions and 52 deletions.
115 changes: 63 additions & 52 deletions mods/default/mapgen.lua
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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({
Expand All @@ -693,77 +693,77 @@ 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,
})

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,
})

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
Expand All @@ -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


Expand Down

0 comments on commit 74ed63f

Please sign in to comment.