Skip to content

Commit

Permalink
Remove builtin_biome.lua from builtin and add simple biome minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat authored and kwolekr committed Jan 12, 2015
1 parent c28a90d commit a77c85f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 33 deletions.
9 changes: 0 additions & 9 deletions builtin/game/builtin_biome.lua

This file was deleted.

1 change: 0 additions & 1 deletion builtin/game/init.lua
Expand Up @@ -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")

36 changes: 13 additions & 23 deletions games/minimal/mods/default/mapgen.lua
Expand Up @@ -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
Expand Down Expand Up @@ -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,
})

0 comments on commit a77c85f

Please sign in to comment.