Skip to content

Commit

Permalink
Version 4.0 Beta
Browse files Browse the repository at this point in the history
Complete overhaul of the lake generator, much more efficient now.
Sandstone biome added, look for it in low humidity areas.  Heaven biome
implementation started, uncomment the code to preview.
  • Loading branch information
HeroOfTheWinds committed Jul 18, 2014
1 parent b53d126 commit 43b4093
Show file tree
Hide file tree
Showing 15 changed files with 473 additions and 294 deletions.
23 changes: 23 additions & 0 deletions functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,29 @@ function skylands:appletree(x, y, z, area, data)
end
end

function skylands:goldentree(x, y, z, area, data)

local c_tree = minetest.get_content_id("default:tree")
local c_gapple = minetest.get_content_id("skylands:golden_apple")
local c_gleaves = minetest.get_content_id("skylands:golden_leaves")
for j = -2, 4 do
if j >= 1 then
for i = -2, 2 do
for k = -2, 2 do
local vi = area:index(x + i, y + j + 1, z + k)
if math.random(48) == 2 then
data[vi] = c_gapple
elseif math.random(3) ~= 2 then
data[vi] = c_gleaves
end
end
end
end
local vi = area:index(x, y + j, z)
data[vi] = c_tree
end
end

function skylands:grass(data, vi)
local c_grass1 = minetest.get_content_id("default:grass_1")
local c_grass2 = minetest.get_content_id("default:grass_2")
Expand Down
Loading

0 comments on commit 43b4093

Please # to comment.