Add small balloon oak (oak variant)
For ca. every 12 oaks, there is 1 small ballon oak.
This commit is contained in:
parent
e2ac0c79ee
commit
52648bcc16
3 changed files with 27 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
BIN
mods/ITEMS/mcl_core/schematics/mcl_core_oak_balloon_small.mts
Normal file
BIN
mods/ITEMS/mcl_core/schematics/mcl_core_oak_balloon_small.mts
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue