forked from MineClone5/MineClone5
mcl_mapgen_core: Make mcl_flowers an optional dependency.
mcl_flowers was previously an undeclared dependency of mcl_mapgen_core. Now it is both optional and declared.
This commit is contained in:
parent
7c72ce1d0d
commit
1d03a3d150
|
@ -1039,6 +1039,7 @@ local function register_mgv6_decorations()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add a small amount of tall grass everywhere to avoid areas completely empty devoid of tall grass
|
-- Add a small amount of tall grass everywhere to avoid areas completely empty devoid of tall grass
|
||||||
|
if minetest.get_modpath("mcl_flowers") then
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
deco_type = "simple",
|
deco_type = "simple",
|
||||||
place_on = {"group:grass_block_no_snow"},
|
place_on = {"group:grass_block_no_snow"},
|
||||||
|
@ -1048,6 +1049,7 @@ local function register_mgv6_decorations()
|
||||||
y_max = mcl_vars.overworld_max,
|
y_max = mcl_vars.overworld_max,
|
||||||
decoration = "mcl_flowers:tallgrass",
|
decoration = "mcl_flowers:tallgrass",
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
|
||||||
local mushrooms = {"mcl_mushrooms:mushroom_red", "mcl_mushrooms:mushroom_brown"}
|
local mushrooms = {"mcl_mushrooms:mushroom_red", "mcl_mushrooms:mushroom_brown"}
|
||||||
local mseeds = { 7133, 8244 }
|
local mseeds = { 7133, 8244 }
|
||||||
|
@ -1091,6 +1093,7 @@ local function register_mgv6_decorations()
|
||||||
decoration = "mcl_core:deadbush",
|
decoration = "mcl_core:deadbush",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("mcl_flowers") then
|
||||||
local function register_mgv6_flower(name, seed, offset, y_max)
|
local function register_mgv6_flower(name, seed, offset, y_max)
|
||||||
if offset == nil then
|
if offset == nil then
|
||||||
offset = 0
|
offset = 0
|
||||||
|
@ -1131,6 +1134,7 @@ local function register_mgv6_decorations()
|
||||||
register_mgv6_flower("blue_orchid", 64500, nil, mcl_worlds.layer_to_y(67))
|
register_mgv6_flower("blue_orchid", 64500, nil, mcl_worlds.layer_to_y(67))
|
||||||
register_mgv6_flower("oxeye_daisy", 3490)
|
register_mgv6_flower("oxeye_daisy", 3490)
|
||||||
register_mgv6_flower("poppy", 9439)
|
register_mgv6_flower("poppy", 9439)
|
||||||
|
end
|
||||||
|
|
||||||
-- Put top snow on snowy grass blocks. The v6 mapgen does not generate the top snow on its own.
|
-- Put top snow on snowy grass blocks. The v6 mapgen does not generate the top snow on its own.
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
|
|
|
@ -2,4 +2,4 @@ name = mcl_mapgen_core
|
||||||
author = Wuzzy
|
author = Wuzzy
|
||||||
description = The core of the MCL2 mapgen
|
description = The core of the MCL2 mapgen
|
||||||
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds
|
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds
|
||||||
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
|
optional_depends = mclx_core, mcl_cocoas, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures, mcl_flowers
|
||||||
|
|
Loading…
Reference in New Issue