forked from MineClone5/MineClone5
mcl_mapgen_core: Make mcl_sponges an optional dependency.
This commit is contained in:
parent
c52f598e64
commit
012d0bd942
|
@ -1000,25 +1000,27 @@ local function register_mgv6_decorations()
|
||||||
|
|
||||||
-- Wet Sponge
|
-- Wet Sponge
|
||||||
-- TODO: Remove this when we got ocean monuments
|
-- TODO: Remove this when we got ocean monuments
|
||||||
minetest.register_decoration({
|
if minetest.get_modpath("mcl_cocoas") then
|
||||||
deco_type = "simple",
|
minetest.register_decoration({
|
||||||
decoration = "mcl_sponges:sponge_wet",
|
deco_type = "simple",
|
||||||
spawn_by = {"group:water"},
|
decoration = "mcl_sponges:sponge_wet",
|
||||||
num_spawn_by = 1,
|
spawn_by = {"group:water"},
|
||||||
place_on = {"mcl_core:dirt","mcl_core:sand"},
|
num_spawn_by = 1,
|
||||||
sidelen = 16,
|
place_on = {"mcl_core:dirt","mcl_core:sand"},
|
||||||
noise_params = {
|
sidelen = 16,
|
||||||
offset = 0.00295,
|
noise_params = {
|
||||||
scale = 0.006,
|
offset = 0.00295,
|
||||||
spread = {x = 250, y = 250, z = 250},
|
scale = 0.006,
|
||||||
seed = 999,
|
spread = {x = 250, y = 250, z = 250},
|
||||||
octaves = 3,
|
seed = 999,
|
||||||
persist = 0.666
|
octaves = 3,
|
||||||
},
|
persist = 0.666
|
||||||
flags = "force_placement",
|
},
|
||||||
y_min = mcl_vars.mg_lava_overworld_max + 5,
|
flags = "force_placement",
|
||||||
y_max = -20,
|
y_min = mcl_vars.mg_lava_overworld_max + 5,
|
||||||
})
|
y_max = -20,
|
||||||
|
})
|
||||||
|
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
|
||||||
minetest.register_decoration({
|
minetest.register_decoration({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name = mcl_mapgen_core
|
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, mcl_sponges, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
|
depends = mcl_init, mcl_core, biomeinfo, mcl_worlds, mcl_ocean, mcl_stairs, mcl_monster_eggs, mcl_structures
|
||||||
optional_depends = mclx_core, mcl_cocoas
|
optional_depends = mclx_core, mcl_cocoas, mcl_sponges
|
||||||
|
|
Loading…
Reference in New Issue