From 57c3a45248a6e5f4216eb6a0146b284bbaa50585 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 31 Aug 2017 21:05:04 +0200 Subject: [PATCH] Add matchstick spruce, generate more spruces --- mods/MAPGEN/mcl_biomes/init.lua | 93 ++++++++++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 2 deletions(-) diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index 35fd173ca..20acb7eb5 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -1105,7 +1105,7 @@ local function register_decorations() place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"}, sidelen = 16, noise_params = { - offset = 0.0096, + offset = 0.02, scale = 0.0022, spread = {x = 250, y = 250, z = 250}, seed = 2500, @@ -1123,7 +1123,7 @@ local function register_decorations() place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"}, sidelen = 16, noise_params = { - offset = 0.0025, + offset = 0.004, scale = 0.0022, spread = {x = 250, y = 250, z = 250}, seed = 2500, @@ -1137,6 +1137,95 @@ local function register_decorations() flags = "place_center_x, place_center_z", }) + + local a = {name = "air", prob = 0} + local t = {name = "mcl_core:sprucetree" } + local l = {name = "mcl_core:spruceleaves" } + local matchstick = { + size = {x = 3, y = 16, z = 3}, + data = { + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,l,a, + a,l,a, + a,l,a, + a,a,a, + + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + a,t,a, + l,t,l, + l,t,l, + l,t,l, + a,l,a, + + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,a,a, + a,l,a, + a,l,a, + a,l,a, + a,a,a, + }, + yslice_prob = { + -- 8-13 trunk-only levels + { ypos = 0, prob = 127 }, + { ypos = 1, prob = 127 }, + { ypos = 2, prob = 127 }, + { ypos = 3, prob = 95 }, + { ypos = 4, prob = 63 }, + { ypos = 5, prob = 31 }, + -- 2-3 leaf levels + { ypos = 14, prob = 127 }, + }, + } + minetest.register_decoration({ + deco_type = "schematic", + place_on = {"mcl_core:dirt_with_grass_snow", "mcl_core:dirt_with_grass", "mcl_core:podzol"}, + sidelen = 80, + noise_params = { + offset = -0.01, + scale = 0.025, + spread = {x = 250, y = 250, z = 250}, + seed = 2566, + octaves = 5, + persist = 0.60, + }, + biomes = {"coniferous_forest"}, + y_min = 3, + y_max = mcl_vars.mg_overworld_max, + schematic = matchstick, + flags = "place_center_x, place_center_z", + }) + -- Acacia minetest.register_decoration({ deco_type = "schematic",