forked from mtcontrib/riesenpilz
generate big red mushrooms
This commit is contained in:
parent
1b3a3a6d28
commit
f08515b92d
35
mapgen.lua
35
mapgen.lua
@ -225,6 +225,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
local bigtype
|
||||||
local boden = {x=x,y=ground_y+1,z=z}
|
local boden = {x=x,y=ground_y+1,z=z}
|
||||||
if pr:next(1,15) == 1 then
|
if pr:next(1,15) == 1 then
|
||||||
data[area:index(x, ground_y+1, z)] = c.dry_shrub
|
data[area:index(x, ground_y+1, z)] = c.dry_shrub
|
||||||
@ -236,24 +237,28 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
riesenpilz_circle(c.riesenpilz_red, boden, pr:next(4,5), 3)
|
riesenpilz_circle(c.riesenpilz_red, boden, pr:next(4,5), 3)
|
||||||
elseif pr:next(1,100) == 1 then
|
elseif pr:next(1,100) == 1 then
|
||||||
riesenpilz_circle(c.riesenpilz_fly_agaric, boden, 4, 3)
|
riesenpilz_circle(c.riesenpilz_fly_agaric, boden, 4, 3)
|
||||||
|
elseif pr:next(1,340) == 10 then
|
||||||
|
bigtype = 2
|
||||||
|
elseif pr:next(1,380) == 1 then
|
||||||
|
bigtype = 1
|
||||||
|
elseif pr:next(1,390) == 20 then
|
||||||
|
bigtype = 3
|
||||||
|
elseif pr:next(1,800) == 7 then
|
||||||
|
bigtype = 5
|
||||||
elseif pr:next(1,4000) == 1 then
|
elseif pr:next(1,4000) == 1 then
|
||||||
riesenpilz_circle(c.riesenpilz_lavashroom, boden, pr:next(5,6), 3)
|
riesenpilz_circle(c.riesenpilz_lavashroom, boden, pr:next(5,6), 3)
|
||||||
elseif pr:next(1,5000) == 1 then
|
elseif pr:next(1,5000) == 1 then
|
||||||
riesenpilz_circle(c.riesenpilz_glowshroom, boden, 3, 3)
|
riesenpilz_circle(c.riesenpilz_glowshroom, boden, 3, 3)
|
||||||
elseif pr:next(1,380) == 1 then
|
elseif pr:next(1,6000) == 2 then
|
||||||
tab[num] = {1, boden}
|
local raretype = pr:next(1,200)
|
||||||
num = num+1
|
if raretype == 15 then
|
||||||
elseif pr:next(1,340) == 10 then
|
bigtype = 4
|
||||||
tab[num] = {2, boden}
|
elseif raretype == 54 then
|
||||||
num = num+1
|
bigtype = 6
|
||||||
elseif pr:next(1,390) == 20 then
|
end
|
||||||
tab[num] = {3, boden}
|
end
|
||||||
num = num+1
|
if bigtype then
|
||||||
elseif pr:next(1,6000) == 2 and pr:next(1,200) == 15 then
|
tab[num] = {bigtype, boden}
|
||||||
tab[num] = {4, boden}
|
|
||||||
num = num+1
|
|
||||||
elseif pr:next(1,800) == 7 then
|
|
||||||
tab[num] = {5, boden}
|
|
||||||
num = num+1
|
num = num+1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -282,6 +287,8 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
|||||||
riesenpilz.lavashroom(p, data, area)
|
riesenpilz.lavashroom(p, data, area)
|
||||||
elseif m == 5 then
|
elseif m == 5 then
|
||||||
riesenpilz.parasol(p, data, area)
|
riesenpilz.parasol(p, data, area)
|
||||||
|
elseif m == 6 then
|
||||||
|
riesenpilz.red45(p, data, area)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
riesenpilz.inform("giant shrooms generated", 2, t2)
|
riesenpilz.inform("giant shrooms generated", 2, t2)
|
||||||
|
Loading…
Reference in New Issue
Block a user