Merge pull request 'mapgen/mcl_mapgen_core: base mushrooms and nether decorations off block seed' (#43) from e/Mineclonia:mapgen-nondet into master

Reviewed-on: https://git.minetest.land/Mineclonia/Mineclonia/pulls/43
Reviewed-by: erlehmann <nils+git.minetest.land@dieweltistgarnichtso.net>
Reviewed-by: Elias Åström <ryvnf@riseup.net>
This commit is contained in:
erlehmann 2021-05-01 23:41:12 +00:00
commit 150868f03b
1 changed files with 3 additions and 2 deletions

View File

@ -1747,7 +1747,6 @@ local function generate_tree_decorations(minp, maxp, seed, data, param2_data, ar
return lvm_used
end
local pr_shroom = PseudoRandom(os.time()-24359)
-- Generate mushrooms in caves manually.
-- Minetest's API does not support decorations in caves yet. :-(
local generate_underground_mushrooms = function(minp, maxp, seed)
@ -1758,6 +1757,7 @@ local generate_underground_mushrooms = function(minp, maxp, seed)
return
end
local pr_shroom = PseudoRandom(seed)
local bpos
local stone = minetest.find_nodes_in_area_under_air(minp, maxp, {"mcl_core:stone", "mcl_core:dirt", "mcl_core:mycelium", "mcl_core:podzol", "mcl_core:andesite", "mcl_core:diorite", "mcl_core:granite", "mcl_core:stone_with_coal", "mcl_core:stone_with_iron", "mcl_core:stone_with_gold"})
@ -1775,7 +1775,6 @@ local generate_underground_mushrooms = function(minp, maxp, seed)
end
end
local pr_nether = PseudoRandom(os.time()+667)
local nether_wart_chance
if mg_name == "v6" then
nether_wart_chance = 85
@ -1806,6 +1805,8 @@ local generate_nether_decorations = function(minp, maxp, seed)
end
local pr_nether = PseudoRandom(seed)
-- Eternal fire on netherrack
special_deco(rack, function(bpos)
-- Eternal fire on netherrack