0
0
Fork 0

Add matchstick spruce, generate more spruces

This commit is contained in:
Wuzzy 2017-08-31 21:05:04 +02:00
parent 6b0203f03f
commit 57c3a45248
1 changed files with 91 additions and 2 deletions

View File

@ -1105,7 +1105,7 @@ local function register_decorations()
place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"}, place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0.0096, offset = 0.02,
scale = 0.0022, scale = 0.0022,
spread = {x = 250, y = 250, z = 250}, spread = {x = 250, y = 250, z = 250},
seed = 2500, seed = 2500,
@ -1123,7 +1123,7 @@ local function register_decorations()
place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"}, place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"},
sidelen = 16, sidelen = 16,
noise_params = { noise_params = {
offset = 0.0025, offset = 0.004,
scale = 0.0022, scale = 0.0022,
spread = {x = 250, y = 250, z = 250}, spread = {x = 250, y = 250, z = 250},
seed = 2500, seed = 2500,
@ -1137,6 +1137,95 @@ local function register_decorations()
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
}) })
local a = {name = "air", prob = 0}
local t = {name = "mcl_core:sprucetree" }
local l = {name = "mcl_core:spruceleaves" }
local matchstick = {
size = {x = 3, y = 16, z = 3},
data = {
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,l,a,
a,l,a,
a,l,a,
a,a,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
a,t,a,
l,t,l,
l,t,l,
l,t,l,
a,l,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,a,a,
a,l,a,
a,l,a,
a,l,a,
a,a,a,
},
yslice_prob = {
-- 8-13 trunk-only levels
{ ypos = 0, prob = 127 },
{ ypos = 1, prob = 127 },
{ ypos = 2, prob = 127 },
{ ypos = 3, prob = 95 },
{ ypos = 4, prob = 63 },
{ ypos = 5, prob = 31 },
-- 2-3 leaf levels
{ ypos = 14, prob = 127 },
},
}
minetest.register_decoration({
deco_type = "schematic",
place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"},
sidelen = 80,
noise_params = {
offset = -0.01,
scale = 0.025,
spread = {x = 250, y = 250, z = 250},
seed = 2566,
octaves = 5,
persist = 0.60,
},
biomes = {"coniferous_forest"},
y_min = 3,
y_max = mcl_vars.mg_overworld_max,
schematic = matchstick,
flags = "place_center_x, place_center_z",
})
-- Acacia -- Acacia
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",