Skip to content

Commit

Permalink
Ores: Add silver sand blob ore, relocate other blob ores
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Feb 1, 2017
1 parent b06368a commit d560f59
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions mods/default/mapgen.lua
Expand Up @@ -45,11 +45,11 @@ minetest.register_alias("mapgen_stair_sandstonebrick", "stairs:stair_sandstonebr

function default.register_ores()
minetest.clear_registered_ores()

-- Blob ores
-- These first to avoid other ores in blobs

-- Clay
-- This first to avoid clay in sand blobs

minetest.register_ore({
ore_type = "blob",
Expand All @@ -70,17 +70,16 @@ function default.register_ores()
},
})

-- Sand
-- Silver sand

minetest.register_ore({
ore_type = "blob",
ore = "default:sand",
wherein = {"default:stone", "default:sandstone",
"default:desert_stone"},
ore = "default:silver_sand",
wherein = {"default:stone"},
clust_scarcity = 16 * 16 * 16,
clust_size = 5,
y_min = -31,
y_max = 0,
y_min = -31000,
y_max = 31000,
noise_threshold = 0.0,
noise_params = {
offset = 0.5,
Expand All @@ -90,6 +89,13 @@ function default.register_ores()
octaves = 1,
persist = 0.0
},
biomes = {"icesheet_ocean", "tundra", "tundra_beach", "tundra_ocean",
"taiga", "taiga_ocean", "snowy_grassland", "snowy_grassland_ocean",
"grassland", "grassland_dunes", "grassland_ocean", "coniferous_forest",
"coniferous_forest_dunes", "coniferous_forest_ocean", "deciduous_forest",
"deciduous_forest_shore", "deciduous_forest_ocean", "cold_desert",
"cold_desert_ocean", "savanna", "savanna_shore", "savanna_ocean",
"rainforest", "rainforest_swamp", "rainforest_ocean", "underground"}
})

-- Dirt
Expand All @@ -112,7 +118,8 @@ function default.register_ores()
persist = 0.0
},
biomes = {"taiga", "snowy_grassland", "grassland", "coniferous_forest",
"deciduous_forest", "savanna", "rainforest"}
"deciduous_forest", "deciduous_forest_shore", "savanna", "savanna_shore",
"rainforest", "rainforest_swamp"}
})

-- Gravel
Expand All @@ -134,6 +141,13 @@ function default.register_ores()
octaves = 1,
persist = 0.0
},
biomes = {"icesheet_ocean", "tundra", "tundra_beach", "tundra_ocean",
"taiga", "taiga_ocean", "snowy_grassland", "snowy_grassland_ocean",
"grassland", "grassland_dunes", "grassland_ocean", "coniferous_forest",
"coniferous_forest_dunes", "coniferous_forest_ocean", "deciduous_forest",
"deciduous_forest_shore", "deciduous_forest_ocean", "cold_desert",
"cold_desert_ocean", "savanna", "savanna_shore", "savanna_ocean",
"rainforest", "rainforest_swamp", "rainforest_ocean", "underground"}
})

-- Scatter ores
Expand Down

0 comments on commit d560f59

Please sign in to comment.