]> git.lizzy.rs Git - minetest.git/commitdiff
Temporarily set default biome in builtin
authorkwolekr <kwolekr@minetest.net>
Thu, 18 Dec 2014 14:55:38 +0000 (09:55 -0500)
committerkwolekr <kwolekr@minetest.net>
Thu, 18 Dec 2014 14:57:38 +0000 (09:57 -0500)
This should probably be removed when minetest_game has proper biomes.
If I hear "the whole map is just stone!" again after this, I am going to detonate.

builtin/game/builtin_biome.lua [new file with mode: 0644]
builtin/game/init.lua

diff --git a/builtin/game/builtin_biome.lua b/builtin/game/builtin_biome.lua
new file mode 100644 (file)
index 0000000..ac0397d
--- /dev/null
@@ -0,0 +1,9 @@
+minetest.register_biome({
+       name           = "Grass",
+
+       heat_point     = 50.0,
+       humidity_point = 50.0,
+       height_min = -31000,
+       height_max = 31000,
+})
+
index 3f82f85c7de54a504c692e1b2489069f2e37bc0a..6b3f9be3f75e037e57fb64220a8fa84ca8b68734 100644 (file)
@@ -25,4 +25,5 @@ dofile(gamepath.."features.lua")
 dofile(gamepath.."voxelarea.lua")
 dofile(gamepath.."forceloading.lua")
 dofile(gamepath.."statbars.lua")
+dofile(gamepath.."builtin_biome.lua")