mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 00:19:32 +01:00
Make nether wart more common in v6
This commit is contained in:
parent
1b5875582e
commit
9d409927bc
1 changed files with 7 additions and 1 deletions
|
@ -1558,6 +1558,12 @@ local generate_underground_mushrooms = function(minp, maxp, seed)
|
|||
end
|
||||
|
||||
local pr_nether = PseudoRandom(os.time()+667)
|
||||
local nehter_wart_chance
|
||||
if mg_name == "v6" then
|
||||
nether_wart_chance = 85
|
||||
else
|
||||
nether_wart_chance = 170
|
||||
end
|
||||
-- Generate Nether decorations manually: Eternal fire, mushrooms, nether wart
|
||||
-- Minetest's API does not support decorations in caves yet. :-(
|
||||
local generate_nether_decorations = function(minp, maxp, seed)
|
||||
|
@ -1614,7 +1620,7 @@ local generate_nether_decorations = function(minp, maxp, seed)
|
|||
-- Nether wart on soul sand
|
||||
-- TODO: Spawn in Nether fortresses
|
||||
special_deco(ssand, function(bpos)
|
||||
if pr_nether:next(1,170) == 1 then
|
||||
if pr_nether:next(1, nether_wart_chance) == 1 then
|
||||
minetest.set_node(bpos, {name = "mcl_nether:nether_wart"})
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue