Skip to content

Commit d560f59

Browse files
committedFeb 1, 2017
Ores: Add silver sand blob ore, relocate other blob ores
1 parent b06368a commit d560f59

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed
 

Diff for: ‎mods/default/mapgen.lua

+22-8
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ minetest.register_alias("mapgen_stair_sandstonebrick", "stairs:stair_sandstonebr
4545

4646
function default.register_ores()
4747
minetest.clear_registered_ores()
48+
4849
-- Blob ores
4950
-- These first to avoid other ores in blobs
5051

5152
-- Clay
52-
-- This first to avoid clay in sand blobs
5353

5454
minetest.register_ore({
5555
ore_type = "blob",
@@ -70,17 +70,16 @@ function default.register_ores()
7070
},
7171
})
7272

73-
-- Sand
73+
-- Silver sand
7474

7575
minetest.register_ore({
7676
ore_type = "blob",
77-
ore = "default:sand",
78-
wherein = {"default:stone", "default:sandstone",
79-
"default:desert_stone"},
77+
ore = "default:silver_sand",
78+
wherein = {"default:stone"},
8079
clust_scarcity = 16 * 16 * 16,
8180
clust_size = 5,
82-
y_min = -31,
83-
y_max = 0,
81+
y_min = -31000,
82+
y_max = 31000,
8483
noise_threshold = 0.0,
8584
noise_params = {
8685
offset = 0.5,
@@ -90,6 +89,13 @@ function default.register_ores()
9089
octaves = 1,
9190
persist = 0.0
9291
},
92+
biomes = {"icesheet_ocean", "tundra", "tundra_beach", "tundra_ocean",
93+
"taiga", "taiga_ocean", "snowy_grassland", "snowy_grassland_ocean",
94+
"grassland", "grassland_dunes", "grassland_ocean", "coniferous_forest",
95+
"coniferous_forest_dunes", "coniferous_forest_ocean", "deciduous_forest",
96+
"deciduous_forest_shore", "deciduous_forest_ocean", "cold_desert",
97+
"cold_desert_ocean", "savanna", "savanna_shore", "savanna_ocean",
98+
"rainforest", "rainforest_swamp", "rainforest_ocean", "underground"}
9399
})
94100

95101
-- Dirt
@@ -112,7 +118,8 @@ function default.register_ores()
112118
persist = 0.0
113119
},
114120
biomes = {"taiga", "snowy_grassland", "grassland", "coniferous_forest",
115-
"deciduous_forest", "savanna", "rainforest"}
121+
"deciduous_forest", "deciduous_forest_shore", "savanna", "savanna_shore",
122+
"rainforest", "rainforest_swamp"}
116123
})
117124

118125
-- Gravel
@@ -134,6 +141,13 @@ function default.register_ores()
134141
octaves = 1,
135142
persist = 0.0
136143
},
144+
biomes = {"icesheet_ocean", "tundra", "tundra_beach", "tundra_ocean",
145+
"taiga", "taiga_ocean", "snowy_grassland", "snowy_grassland_ocean",
146+
"grassland", "grassland_dunes", "grassland_ocean", "coniferous_forest",
147+
"coniferous_forest_dunes", "coniferous_forest_ocean", "deciduous_forest",
148+
"deciduous_forest_shore", "deciduous_forest_ocean", "cold_desert",
149+
"cold_desert_ocean", "savanna", "savanna_shore", "savanna_ocean",
150+
"rainforest", "rainforest_swamp", "rainforest_ocean", "underground"}
137151
})
138152

139153
-- Scatter ores

0 commit comments

Comments
 (0)
Please sign in to comment.