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
function mcl_core.generate_oak_tree(pos)
local path = minetest.get_modpath("mcl_core") ..
"/schematics/mcl_core_oak_classic.mts"
local r = math.random(1, 12)
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)
end