Skip to content

Commit

Permalink
Big update (1)
Browse files Browse the repository at this point in the history
Update README. Add 'Swampland' biome. More common cave. 'Cutted tree' bugfix. Add 'amgmt_regenerate' to regenerate map chunk. Add 'amgmt_fixlight' to fix lighting. Add Savanna and Pine sapling, tree, leaves, and wood. Experimenting with minetest.register_ore.
  • Loading branch information
srifqi committed Sep 21, 2014
1 parent 1066dd9 commit f1885aa
Show file tree
Hide file tree
Showing 13 changed files with 518 additions and 242 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ CC0 1.0 Universal
- flowers

##Feature
- 15 biome
- 16 biome
- Biomes, Trees, Nodes, Ores, etc. are modifyable
- Experimental water lakes!
- 'Moreores' mod support
- New caving system! (May intersect with fissure)
- Using 9 2D perlin noise and 1 3D perlin noise
- Using 25 2D perlin noise and 1 3D perlin noise

##Noise usage
- 2 noise for height
- 2 noise for temperature and humidity
- 1 noise for experimental water lake
- 10 noise for caves
- 10 noise for cave deepness

##List of Biomes
- Frozen River
Expand All @@ -31,6 +39,7 @@ CC0 1.0 Universal
- Plains
- Flower Plains
- River
- Swampland
- Forest
- Jungle
- Savanna
Expand Down
63 changes: 49 additions & 14 deletions biome.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ badd({
return c_ice
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_sandstone
else
return c_sand
Expand All @@ -55,7 +55,7 @@ badd({
return c_water
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_sandstone
else
return c_sand
Expand Down Expand Up @@ -85,7 +85,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -116,7 +116,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -145,7 +145,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -224,7 +224,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -253,7 +253,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -283,7 +283,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -316,7 +316,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand All @@ -327,13 +327,48 @@ badd({
end
end
})
badd({
name = "Swampland",
mint = 1.25,
maxt = 1.5,
minh = 45,
maxh = 55,
trees = {{"normal",27},{"grass14",16}},
get_block = function(temp, humi, base_, wl, y)
local base = base_
if base_ < 5 and base_ > -1 then base = base % 2 - 1 end
if y > base and y > wl then
return c_air
elseif y > base and y <= wl then
if base < wl then
return c_water
elseif base >= wl then
return c_air
end
elseif y < base - 2 then
return c_stone
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
return c_dirt
else
if temp > 1.6 and base == wl then
return c_sand
else
return c_dirt_grass
end
end
end
end
})
badd({
name = "Forest",
mint = 1.25,
maxt = 1.5,
minh = 0,
maxh = 95,
trees = {{"normal",15},{"grass14",60},{"grass35",5},{"papyrus",15},{"flowers",15}},
trees = {{"normal",19},{"grass14",60},{"grass35",5},{"papyrus",16},{"flowers",18}},
get_block = function(temp, humi, base, wl, y)
if y > base and y > wl then
return c_air
Expand All @@ -345,7 +380,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -374,7 +409,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -402,7 +437,7 @@ badd({
end
elseif y < base - 2 then
return c_stone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_dirt
else
if y < wl then
Expand Down Expand Up @@ -434,7 +469,7 @@ badd({
end
elseif y < base - 2 then
return c_sandstone
elseif y < base and y > base - 3 then
elseif y < base and y >= base - 3 then
return c_sand
else
return c_sand
Expand Down
Loading

0 comments on commit f1885aa

Please sign in to comment.