Skip to content

Commit a77c85f

Browse files
paramatkwolekr
authored andcommittedJan 12, 2015
Remove builtin_biome.lua from builtin and add simple biome minimal
1 parent c28a90d commit a77c85f

File tree

3 files changed

+13
-33
lines changed

3 files changed

+13
-33
lines changed
 

‎builtin/game/builtin_biome.lua

-9
This file was deleted.

‎builtin/game/init.lua

-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ dofile(gamepath.."features.lua")
2525
dofile(gamepath.."voxelarea.lua")
2626
dofile(gamepath.."forceloading.lua")
2727
dofile(gamepath.."statbars.lua")
28-
dofile(gamepath.."builtin_biome.lua")
2928

‎games/minimal/mods/default/mapgen.lua

+13-23
Original file line numberDiff line numberDiff line change
@@ -71,29 +71,6 @@ minetest.register_ore({
7171
height_max = -17,
7272
})
7373

74-
-- for float islands and far scaled
75-
minetest.register_ore({
76-
ore_type = "scatter",
77-
ore = "default:stone_with_coal",
78-
wherein = "default:stone",
79-
clust_scarcity = 8*8*8,
80-
clust_num_ores = 5,
81-
clust_size = 3,
82-
height_min = 200,
83-
height_max = 31000,
84-
})
85-
86-
minetest.register_ore({
87-
ore_type = "scatter",
88-
ore = "default:stone_with_iron",
89-
wherein = "default:stone",
90-
clust_scarcity = 9*9*9,
91-
clust_num_ores = 5,
92-
clust_size = 3,
93-
height_min = 200,
94-
height_max = 31000,
95-
})
96-
9774
minetest.register_on_generated(function(minp, maxp, seed)
9875
-- Generate clay
9976
if maxp.y >= 2 and minp.y <= 0 then
@@ -134,3 +111,16 @@ minetest.register_on_generated(function(minp, maxp, seed)
134111
end
135112
end)
136113

114+
--
115+
-- Register biome for biome API
116+
--
117+
118+
minetest.register_biome({
119+
name = "Grassland",
120+
-- Will use defaults of omitted parameters
121+
y_min = -31000,
122+
y_max = 31000,
123+
heat_point = 50,
124+
humidity_point = 50,
125+
})
126+

0 commit comments

Comments
 (0)
Please sign in to comment.