1
0
Fork 0

Add small balloon oak (oak variant)

For ca. every 12 oaks, there is 1 small ballon oak.
This commit is contained in:
Wuzzy 2017-08-31 18:32:52 +02:00
parent e2ac0c79ee
commit 52648bcc16
3 changed files with 27 additions and 2 deletions

View File

@ -324,8 +324,14 @@ end
-- Oak -- Oak
function mcl_core.generate_oak_tree(pos) function mcl_core.generate_oak_tree(pos)
local path = minetest.get_modpath("mcl_core") .. local r = math.random(1, 12)
"/schematics/mcl_core_oak_classic.mts" local path
if r == 1 then
path = minetest.get_modpath("mcl_core") .. "/schematics/mcl_core_oak_balloon_small.mts"
else
path = minetest.get_modpath("mcl_core") .. "/schematics/mcl_core_oak_classic.mts"
end
minetest.place_schematic({x = pos.x - 2, y = pos.y - 1 , z = pos.z - 2}, path, "random", nil, false) minetest.place_schematic({x = pos.x - 2, y = pos.y - 1 , z = pos.z - 2}, path, "random", nil, false)
end end

View File

@ -1040,6 +1040,25 @@ local function register_decorations()
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
rotation = "random", rotation = "random",
}) })
minetest.register_decoration({
deco_type = "schematic",
place_on = {"mcl_core:dirt_with_grass", "mcl_core:dirt"},
sidelen = 16,
noise_params = {
offset = 0.002083,
scale = 0.0022,
spread = {x = 250, y = 250, z = 250},
seed = 3,
octaves = 3,
persist = 0.6,
},
biomes = {"deciduous_forest"},
y_min = 1,
y_max = mcl_vars.mg_overworld_max,
schematic = minetest.get_modpath("mcl_core").."/schematics/mcl_core_oak_balloon_small.mts",
flags = "place_center_x, place_center_z",
rotation = "random",
})
-- Jungle tree -- Jungle tree
minetest.register_decoration({ minetest.register_decoration({