mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-27 22:52:59 +00:00
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:
commit
150868f03b
1 changed files with 3 additions and 2 deletions
|
@ -1747,7 +1747,6 @@ local function generate_tree_decorations(minp, maxp, seed, data, param2_data, ar
|
||||||
return lvm_used
|
return lvm_used
|
||||||
end
|
end
|
||||||
|
|
||||||
local pr_shroom = PseudoRandom(os.time()-24359)
|
|
||||||
-- Generate mushrooms in caves manually.
|
-- Generate mushrooms in caves manually.
|
||||||
-- Minetest's API does not support decorations in caves yet. :-(
|
-- Minetest's API does not support decorations in caves yet. :-(
|
||||||
local generate_underground_mushrooms = function(minp, maxp, seed)
|
local generate_underground_mushrooms = function(minp, maxp, seed)
|
||||||
|
@ -1758,6 +1757,7 @@ local generate_underground_mushrooms = function(minp, maxp, seed)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local pr_shroom = PseudoRandom(seed)
|
||||||
local bpos
|
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"})
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
local pr_nether = PseudoRandom(os.time()+667)
|
|
||||||
local nether_wart_chance
|
local nether_wart_chance
|
||||||
if mg_name == "v6" then
|
if mg_name == "v6" then
|
||||||
nether_wart_chance = 85
|
nether_wart_chance = 85
|
||||||
|
@ -1806,6 +1805,8 @@ local generate_nether_decorations = function(minp, maxp, seed)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local pr_nether = PseudoRandom(seed)
|
||||||
|
|
||||||
-- Eternal fire on netherrack
|
-- Eternal fire on netherrack
|
||||||
special_deco(rack, function(bpos)
|
special_deco(rack, function(bpos)
|
||||||
-- Eternal fire on netherrack
|
-- Eternal fire on netherrack
|
||||||
|
|
Loading…
Reference in a new issue