forked from MineClone5/MineClone5
Spawn Nether mushrooms after fire
This commit is contained in:
parent
cc93cd33e2
commit
19dc81842f
|
@ -1199,17 +1199,10 @@ local generate_nether_decorations = function(minp, maxp)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Eternal fire on netherrack
|
||||||
special_deco(rack, function(bpos)
|
special_deco(rack, function(bpos)
|
||||||
-- Mushrooms on netherrack
|
|
||||||
if bpos.y > mcl_vars.mg_lava_nether_max + 6 and minetest.get_node_light(bpos, 0.5) <= 12 and pr_nether:next(1,1000) <= 4 then
|
|
||||||
-- TODO: Make mushrooms appear in groups, use Perlin noise
|
|
||||||
if pr_nether:next(1,2) == 1 then
|
|
||||||
minetest.set_node(bpos, {name = "mcl_mushrooms:mushroom_brown"})
|
|
||||||
else
|
|
||||||
minetest.set_node(bpos, {name = "mcl_mushrooms:mushroom_red"})
|
|
||||||
end
|
|
||||||
-- Eternal fire on netherrack
|
-- Eternal fire on netherrack
|
||||||
elseif pr_nether:next(1,100) <= 3 then
|
if pr_nether:next(1,100) <= 3 then
|
||||||
minetest.set_node(bpos, {name = "mcl_fire:eternal_fire"})
|
minetest.set_node(bpos, {name = "mcl_fire:eternal_fire"})
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
@ -1221,6 +1214,19 @@ local generate_nether_decorations = function(minp, maxp)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- Mushrooms on netherrack
|
||||||
|
-- Note: Spawned *after* the fire because of light level checks
|
||||||
|
special_deco(rack, function(bpos)
|
||||||
|
if bpos.y > mcl_vars.mg_lava_nether_max + 6 and minetest.get_node_light(bpos, 0.5) <= 12 and pr_nether:next(1,1000) <= 4 then
|
||||||
|
-- TODO: Make mushrooms appear in groups, use Perlin noise
|
||||||
|
if pr_nether:next(1,2) == 1 then
|
||||||
|
minetest.set_node(bpos, {name = "mcl_mushrooms:mushroom_brown"})
|
||||||
|
else
|
||||||
|
minetest.set_node(bpos, {name = "mcl_mushrooms:mushroom_red"})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
-- Nether wart on soul sand
|
-- Nether wart on soul sand
|
||||||
-- TODO: Spawn in Nether fortresses
|
-- TODO: Spawn in Nether fortresses
|
||||||
special_deco(ssand, function(bpos)
|
special_deco(ssand, function(bpos)
|
||||||
|
|
Loading…
Reference in New Issue