aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-01-01 06:47:07 +0000
committerkwolekr <kwolekr@minetest.net>2015-01-11 22:32:48 -0500
commita77c85fa6df91292120fec7c499cb68f3dcad480 (patch)
tree81554abc448663e4be9fc12af6178939ecd0620a
parentc28a90dafbdfab0cf62552f8306bdf1145c120c3 (diff)
downloadminetest-a77c85fa6df91292120fec7c499cb68f3dcad480.tar.gz
minetest-a77c85fa6df91292120fec7c499cb68f3dcad480.tar.bz2
minetest-a77c85fa6df91292120fec7c499cb68f3dcad480.zip
Remove builtin_biome.lua from builtin and add simple biome minimal
-rw-r--r--builtin/game/builtin_biome.lua9
-rw-r--r--builtin/game/init.lua1
-rw-r--r--games/minimal/mods/default/mapgen.lua36
3 files changed, 13 insertions, 33 deletions
diff --git a/builtin/game/builtin_biome.lua b/builtin/game/builtin_biome.lua
deleted file mode 100644
index ac0397df6..000000000
--- a/builtin/game/builtin_biome.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-minetest.register_biome({
- name = "Grass",
-
- heat_point = 50.0,
- humidity_point = 50.0,
- height_min = -31000,
- height_max = 31000,
-})
-
diff --git a/builtin/game/init.lua b/builtin/game/init.lua
index 6b3f9be3f..3f82f85c7 100644
--- a/builtin/game/init.lua
+++ b/builtin/game/init.lua
@@ -25,5 +25,4 @@ dofile(gamepath.."features.lua")
dofile(gamepath.."voxelarea.lua")
dofile(gamepath.."forceloading.lua")
dofile(gamepath.."statbars.lua")
-dofile(gamepath.."builtin_biome.lua")
diff --git a/games/minimal/mods/default/mapgen.lua b/games/minimal/mods/default/mapgen.lua
index 8ff259c59..dd839b9a0 100644
--- a/games/minimal/mods/default/mapgen.lua
+++ b/games/minimal/mods/default/mapgen.lua
@@ -71,29 +71,6 @@ minetest.register_ore({
height_max = -17,
})
--- for float islands and far scaled
-minetest.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_coal",
- wherein = "default:stone",
- clust_scarcity = 8*8*8,
- clust_num_ores = 5,
- clust_size = 3,
- height_min = 200,
- height_max = 31000,
-})
-
-minetest.register_ore({
- ore_type = "scatter",
- ore = "default:stone_with_iron",
- wherein = "default:stone",
- clust_scarcity = 9*9*9,
- clust_num_ores = 5,
- clust_size = 3,
- height_min = 200,
- height_max = 31000,
-})
-
minetest.register_on_generated(function(minp, maxp, seed)
-- Generate clay
if maxp.y >= 2 and minp.y <= 0 then
@@ -134,3 +111,16 @@ minetest.register_on_generated(function(minp, maxp, seed)
end
end)
+--
+-- Register biome for biome API
+--
+
+minetest.register_biome({
+ name = "Grassland",
+ -- Will use defaults of omitted parameters
+ y_min = -31000,
+ y_max = 31000,
+ heat_point = 50,
+ humidity_point = 50,
+})
+