diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-07 18:28:54 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-01-07 18:28:54 +0000 |
commit | a54fb59a0e70fc70e141486b68c1b0fa5ed3b573 (patch) | |
tree | 6e5c813dba6bf0ace577bef300b13d956d88f6c3 /mapgen.lua | |
parent | a9f3896ae764f6fa48472b987ac3b33a50b48b78 (diff) |
added coral and silver sand (minetest 0.4.15 only)
Diffstat (limited to 'mapgen.lua')
-rw-r--r-- | mapgen.lua | 41 |
1 files changed, 39 insertions, 2 deletions
@@ -136,8 +136,13 @@ add_biome("caves", nil, "default:desert_stone", 3, "air", 8, add_biome("grayness", nil, "ethereal:gray_dirt", 1, "default:dirt", 3,
nil, nil, nil, nil, nil, 2, 41, 15, 30, ethereal.grayness)
-add_biome("grayness_ocean", nil, "default:sand", 1, "default:sand", 2,
- nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness)
+if minetest.registered_nodes["default:silver_sand"] then
+ add_biome("grayness_ocean", nil, "default:silver_sand", 2, "default:sand", 2,
+ nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness)
+else
+ add_biome("grayness_ocean", nil, "default:sand", 1, "default:sand", 2,
+ nil, nil, nil, nil, nil, -192, 1, 15, 30, ethereal.grayness)
+end
add_biome("grassytwo", nil, "ethereal:green_dirt", 1, "default:dirt", 3,
nil, nil, nil, nil, nil, 1, 91, 15, 40, ethereal.grassytwo)
@@ -576,6 +581,38 @@ minetest.register_on_generated(function(minp, maxp) end
end)
+-- coral reef (0.4.15 only)
+if minetest.registered_nodes["default:coral_orange"] then
+
+-- override corals so crystal shovel can pick them up intact
+minetest.override_item("default:coral_skeleton", {groups = {crumbly = 3}})
+minetest.override_item("default:coral_orange", {groups = {crumbly = 3}})
+minetest.override_item("default:coral_brown", {groups = {crumbly = 3}})
+
+ minetest.register_decoration({
+ deco_type = "schematic",
+ place_on = {"default:sand"},
+ noise_params = {
+ offset = -0.1,
+ scale = 0.1,
+ spread = {x = 200, y = 200, z = 200},
+ seed = 7013,
+ octaves = 3,
+ persist = 1,
+ },
+ biomes = {
+ "desert_ocean",
+ "grove_ocean",
+ },
+ y_min = -8,
+ y_max = -2,
+ schematic = dpath .. "corals.mts",
+ flags = "place_center_x, place_center_z",
+ rotation = "random",
+ })
+end
+
+
-- is baked clay mod active? add new flowers if so
if minetest.get_modpath("bakedclay") then
|