diff --git a/mods/ITEMS/mcl_core/functions.lua b/mods/ITEMS/mcl_core/functions.lua index 6d0636030..664539917 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 000000000..fdbf835af Binary files /dev/null and b/mods/ITEMS/mcl_core/schematics/mcl_core_oak_balloon_small.mts differ diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index 965b90ce1..83f5657f0 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -1040,6 +1040,25 @@ local function register_decorations() flags = "place_center_x, place_center_z", 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 minetest.register_decoration({