From 52648bcc16e1fd0c6ecc08c64ef2f1f02412893f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 31 Aug 2017 18:32:52 +0200 Subject: [PATCH] Add small balloon oak (oak variant) For ca. every 12 oaks, there is 1 small ballon oak. --- mods/ITEMS/mcl_core/functions.lua | 10 +++++++-- .../schematics/mcl_core_oak_balloon_small.mts | Bin 0 -> 117 bytes mods/MAPGEN/mcl_biomes/init.lua | 19 ++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 mods/ITEMS/mcl_core/schematics/mcl_core_oak_balloon_small.mts diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 6d0636030f..6645399179 100644 --- a/mods/ITEMS/mcl_core/functions.lua +++ b/mods/ITEMS/mcl_core/functions.lua @@ -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 diff --git a/mods/ITEMS/mcl_core/schematics/mcl_core_oak_balloon_small.mts b/mods/ITEMS/mcl_core/schematics/mcl_core_oak_balloon_small.mts new file mode 100644 index 0000000000000000000000000000000000000000..fdbf835af89b612b60651c89dd821516ce1395bc GIT binary patch literal 117 zcmeYb3HD`RVPIuoXJD;|00w3T=ETe*2L9aSocQGYqExG#)WovXVg_EgKuJ+*YQ>!7 z1O*0(g975+8}eGJVgwfQvCJ@t=y4EJz9OQwLr;w-m}6&G$@T}|B?TV_*>7P8l#{n% KV7TQHt^@!l