Skip to content

Commit

Permalink
Default/mapgen.lua: Remove ores absheight flags. Add aliases for mgv6…
Browse files Browse the repository at this point in the history
… snow biomes
  • Loading branch information
paramat committed Mar 29, 2015
1 parent 9c15ebc commit 4a7a51a
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions mods/default/mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,31 @@


minetest.register_alias("mapgen_stone", "default:stone")
minetest.register_alias("mapgen_dirt", "default:dirt")
minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
minetest.register_alias("mapgen_sand", "default:sand")
minetest.register_alias("mapgen_water_source", "default:water_source")
minetest.register_alias("mapgen_lava_source", "default:lava_source")
minetest.register_alias("mapgen_gravel", "default:gravel")
minetest.register_alias("mapgen_desert_stone", "default:desert_stone")
minetest.register_alias("mapgen_desert_sand", "default:desert_sand")
minetest.register_alias("mapgen_dirt_with_snow", "default:dirt_with_snow")
minetest.register_alias("mapgen_snow", "default:snow")
minetest.register_alias("mapgen_snowblock", "default:snowblock")
minetest.register_alias("mapgen_ice", "default:ice")

minetest.register_alias("mapgen_tree", "default:tree")
minetest.register_alias("mapgen_leaves", "default:leaves")
minetest.register_alias("mapgen_apple", "default:apple")
minetest.register_alias("mapgen_jungletree", "default:jungletree")
minetest.register_alias("mapgen_jungleleaves", "default:jungleleaves")
minetest.register_alias("mapgen_apple", "default:apple")
minetest.register_alias("mapgen_water_source", "default:water_source")
minetest.register_alias("mapgen_dirt", "default:dirt")
minetest.register_alias("mapgen_sand", "default:sand")
minetest.register_alias("mapgen_gravel", "default:gravel")
minetest.register_alias("mapgen_clay", "default:clay")
minetest.register_alias("mapgen_lava_source", "default:lava_source")
minetest.register_alias("mapgen_cobble", "default:cobble")
minetest.register_alias("mapgen_mossycobble", "default:mossycobble")
minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
minetest.register_alias("mapgen_junglegrass", "default:junglegrass")
minetest.register_alias("mapgen_stone_with_coal", "default:stone_with_coal")
minetest.register_alias("mapgen_stone_with_iron", "default:stone_with_iron")
minetest.register_alias("mapgen_mese", "default:mese")
minetest.register_alias("mapgen_desert_sand", "default:desert_sand")
minetest.register_alias("mapgen_desert_stone", "default:desert_stone")
minetest.register_alias("mapgen_pinetree", "default:pinetree")
minetest.register_alias("mapgen_pine_needles", "default:pine_needles")

minetest.register_alias("mapgen_cobble", "default:cobble")
minetest.register_alias("mapgen_stair_cobble", "stairs:stair_cobble")
minetest.register_alias("mapgen_mossycobble", "default:mossycobble")


--
Expand Down Expand Up @@ -131,7 +135,6 @@ function default.register_ores()
clust_size = 6,
y_min = -31000,
y_max = 0,
flags = "absheight",
})

minetest.register_ore({
Expand Down Expand Up @@ -165,7 +168,6 @@ function default.register_ores()
clust_size = 3,
y_min = -31000,
y_max = -64,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -177,7 +179,6 @@ function default.register_ores()
clust_size = 6,
y_min = -31000,
y_max = -64,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -189,7 +190,6 @@ function default.register_ores()
clust_size = 2,
y_min = -255,
y_max = -64,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -201,7 +201,6 @@ function default.register_ores()
clust_size = 3,
y_min = -31000,
y_max = -256,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -213,7 +212,6 @@ function default.register_ores()
clust_size = 2,
y_min = -31000,
y_max = -1024,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -225,7 +223,6 @@ function default.register_ores()
clust_size = 2,
y_min = -255,
y_max = -64,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -237,7 +234,6 @@ function default.register_ores()
clust_size = 3,
y_min = -31000,
y_max = -256,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -249,7 +245,6 @@ function default.register_ores()
clust_size = 3,
y_min = -255,
y_max = -128,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -261,7 +256,6 @@ function default.register_ores()
clust_size = 3,
y_min = -31000,
y_max = -256,
flags = "absheight",
})

minetest.register_ore({
Expand All @@ -284,7 +278,6 @@ function default.register_ores()
clust_size = 3,
y_min = -31000,
y_max = -64,
flags = "absheight",
})
end

Expand Down

2 comments on commit 4a7a51a

@gaelysam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ???

@paramat
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flag was added for the floatlands of indev mapgen, but now rare ores appear in high mountains in mgv5 and mgv6, the flag in incompatible with these new mapgens.
Better to add new specific definitions for future floatlands, reflecting limits around y = 0 is crude.

Please sign in to comment.