forked from MineClone5/MineClone5
Generate kelp/seagrass in v6
This commit is contained in:
parent
e0e73b8ee8
commit
8b6dc30943
|
@ -854,6 +854,100 @@ local function register_mgv6_decorations()
|
|||
y_max = mcl_vars.overworld_max,
|
||||
decoration = "mcl_flowers:tallgrass",
|
||||
})
|
||||
|
||||
-- Seagrass and kelp
|
||||
local materials = {"dirt","sand"}
|
||||
for i=1, #materials do
|
||||
local mat = materials[i]
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
spawn_by = {"group:water"},
|
||||
num_spawn_by = 1,
|
||||
place_on = {"mcl_core:"..mat},
|
||||
sidelen = 8,
|
||||
noise_params = {
|
||||
offset = 0.04,
|
||||
scale = 0.3,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
seed = 421,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
flags = "force_placement",
|
||||
place_offset_y = -1,
|
||||
y_min = mcl_vars.overworld_min,
|
||||
y_max = 0,
|
||||
decoration = "mcl_ocean:seagrass_"..mat,
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
spawn_by = {"group:water"},
|
||||
num_spawn_by = 1,
|
||||
place_on = {"mcl_core:mat"},
|
||||
sidelen = 8,
|
||||
noise_params = {
|
||||
offset = 0.08,
|
||||
scale = 0.03,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
seed = 421,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
flags = "force_placement",
|
||||
place_offset_y = -1,
|
||||
y_min = mcl_vars.overworld_min,
|
||||
y_max = -5,
|
||||
decoration = "mcl_ocean:seagrass_"..mat,
|
||||
})
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
spawn_by = {"group:water"},
|
||||
num_spawn_by = 1,
|
||||
place_on = {"mcl_core:"..mat},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.01,
|
||||
scale = 0.01,
|
||||
spread = {x = 300, y = 300, z = 300},
|
||||
seed = seed,
|
||||
octaves = 5,
|
||||
persist = 0.62,
|
||||
},
|
||||
flags = "force_placement",
|
||||
place_offset_y = -1,
|
||||
y_min = mcl_vars.overworld_min,
|
||||
y_max = -6,
|
||||
decoration = "mcl_ocean:kelp_"..mat,
|
||||
param2 = 16,
|
||||
param2_max = 96,
|
||||
})
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
spawn_by = {"group:water"},
|
||||
num_spawn_by = 1,
|
||||
place_on = {"mcl_core:"..mat},
|
||||
sidelen = 16,
|
||||
noise_params = {
|
||||
offset = 0.01,
|
||||
scale = 0.01,
|
||||
spread = {x = 100, y = 100, z = 100},
|
||||
seed = seed,
|
||||
octaves = 5,
|
||||
persist = 0.62,
|
||||
},
|
||||
flags = "force_placement",
|
||||
place_offset_y = -1,
|
||||
y_min = mcl_vars.overworld_min,
|
||||
y_max = -15,
|
||||
decoration = "mcl_ocean:kelp_"..mat,
|
||||
param2 = 32,
|
||||
param2_max = 160,
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
-- Add a small amount of tall grass everywhere to avoid areas completely empty devoid of tall grass
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
|
|
Loading…
Reference in New Issue