Working population and more desert_stone

master
qwertymine3 2015-11-21 21:05:03 +00:00
parent 3d467ddaea
commit f026252e77
3 changed files with 11 additions and 9 deletions

View File

@ -1 +1,2 @@
default
flowers

View File

@ -693,7 +693,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
data[vi] = planets[nixyz]
--simple population
local pop = set.pop[planets[nixyz]]
if pop and planets[nixyz-side_length] == c_air and math.random(1,10000) < pop.rarity then
if pop and y < maxp.y and planets[nixyz+side_length] == c_air
and math.random(1,10000) < pop.rarity then
local num = math.random(1,pop.rand_max)
local cum = 0
for i=#pop,1,-1 do

View File

@ -91,7 +91,7 @@ local sand_sandstone = {
}
local desert_sand = {
rarity = 6,
crust_thickness = 1,
crust_thickness = 3,
filling_material = "default:desert_sand",
crust_top_material = "default:desert_sand",
crust_material = "default:desert_stone",
@ -183,7 +183,7 @@ local long_grass = {
}
local grass_pop = {
node = "default:grass",
node = "default:dirt_with_grass",
population_chance = 0.5,
red_flower,green_flower,blue_flower,yellow_flower,white_flower,
purple_flower,orange_flower,long_grass,
@ -197,7 +197,7 @@ local jungle_grass = {
local jungle_pop = {
node = "default:jungleleaves",
population_chance = 0.2,
population_chance = 0.08,
jungle_grass,
}
@ -213,7 +213,7 @@ local sand_pop = {
reeds,long_grass,
}
local reeds = {
local dry_shrub = {
node = "default:dry_shrub",
rarity = 1,
}
@ -231,13 +231,13 @@ local red_shroom = {
}
local brown_shroom = {
node = "flower:mushroom_brown",
node = "flowers:mushroom_brown",
rarity = 1,
}
local stone_pop = {
node = "default:stone",
population_chance = 0.1,
population_chance = 0.01,
brown_shroom,red_shroom,
}
@ -248,8 +248,8 @@ local drygrass = {
}
local drygrass_pop = {
node = "default:grass",
population_chance = 0.5,
node = "default:dirt_with_dry_grass",
population_chance = 0.3,
drygrass,
}