Skip to content

Commit

Permalink
Make cave liquids biome-determined
Browse files Browse the repository at this point in the history
No longer use the hardcoded engine cave liquids.
Water only in '_ocean' biomes, water and lava in '_under' biomes.
  • Loading branch information
paramat committed May 18, 2019
1 parent 5c48c76 commit aee5ba6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions mods/default/mapgen.lua
Expand Up @@ -924,6 +924,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_water_top = "default:ice",
depth_water_top = 10,
node_cave_liquid = "default:water_source",
y_max = -9,
y_min = -255,
heat_point = 0,
Expand All @@ -932,6 +933,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "icesheet_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 0,
Expand Down Expand Up @@ -989,6 +991,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:gravel",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = -4,
y_min = -255,
Expand All @@ -998,6 +1001,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "tundra_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 0,
Expand Down Expand Up @@ -1030,6 +1034,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = 3,
y_min = -255,
Expand All @@ -1039,6 +1044,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "taiga_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 25,
Expand Down Expand Up @@ -1071,6 +1077,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = 3,
y_min = -255,
Expand All @@ -1080,6 +1087,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "snowy_grassland_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 20,
Expand Down Expand Up @@ -1125,6 +1133,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
y_max = 3,
y_min = -255,
heat_point = 50,
Expand All @@ -1133,6 +1142,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "grassland_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 50,
Expand Down Expand Up @@ -1178,6 +1188,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
y_max = 3,
y_min = -255,
heat_point = 45,
Expand All @@ -1186,6 +1197,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "coniferous_forest_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 45,
Expand Down Expand Up @@ -1230,6 +1242,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = -2,
y_min = -255,
Expand All @@ -1239,6 +1252,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "deciduous_forest_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 60,
Expand Down Expand Up @@ -1271,6 +1285,7 @@ function default.register_biomes(upper_limit)
node_stone = "default:desert_stone",
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = 3,
y_min = -255,
Expand All @@ -1280,6 +1295,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "desert_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 92,
Expand Down Expand Up @@ -1312,6 +1328,7 @@ function default.register_biomes(upper_limit)
node_stone = "default:sandstone",
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
y_max = 3,
y_min = -255,
heat_point = 60,
Expand All @@ -1320,6 +1337,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "sandstone_desert_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 60,
Expand Down Expand Up @@ -1350,6 +1368,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = 3,
y_min = -255,
Expand All @@ -1359,6 +1378,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "cold_desert_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 40,
Expand Down Expand Up @@ -1403,6 +1423,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = -2,
y_min = -255,
Expand All @@ -1412,6 +1433,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "savanna_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 89,
Expand Down Expand Up @@ -1456,6 +1478,7 @@ function default.register_biomes(upper_limit)
depth_filler = 3,
node_riverbed = "default:sand",
depth_riverbed = 2,
node_cave_liquid = "default:water_source",
vertical_blend = 1,
y_max = -2,
y_min = -255,
Expand All @@ -1465,6 +1488,7 @@ function default.register_biomes(upper_limit)

minetest.register_biome({
name = "rainforest_under",
node_cave_liquid = {"default:water_source", "default:lava_source"},
y_max = -256,
y_min = -31000,
heat_point = 86,
Expand Down

0 comments on commit aee5ba6

Please sign in to comment.