Skip to content

Commit

Permalink
Default/mapgen: Add ores above y = 1024
Browse files Browse the repository at this point in the history
Each ore's rarity is equal to that occuring below y= -1024
  • Loading branch information
paramat committed Jul 5, 2016
1 parent 1886d29 commit d476d01
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions mods/default/mapgen.lua
Expand Up @@ -136,6 +136,17 @@ function default.register_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",
Expand All @@ -160,6 +171,17 @@ function default.register_ores()

-- 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",
Expand Down Expand Up @@ -206,6 +228,17 @@ function default.register_ores()

-- 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",
Expand All @@ -230,6 +263,17 @@ function default.register_ores()

-- 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",
Expand All @@ -254,6 +298,17 @@ function default.register_ores()

-- 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",
Expand All @@ -278,6 +333,17 @@ function default.register_ores()

-- 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",
Expand All @@ -302,6 +368,17 @@ function default.register_ores()

-- 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",
Expand Down

0 comments on commit d476d01

Please sign in to comment.