From 788698d229943749d1f4d70bf1a203202d570ad3 Mon Sep 17 00:00:00 2001 From: kaadmy Date: Fri, 16 Oct 2015 15:09:41 -0700 Subject: [PATCH] added grove biome and removed tall trees from wilderness biome --- mods/default/mapgen.lua | 55 ++++++++++++++----- mods/default/schematics/default_talltree.mts | Bin 126 -> 147 bytes 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index 2f9bb44..c26f84c 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -101,6 +101,23 @@ minetest.register_biome( humidity_point = 40, }) +minetest.register_biome( + { + name = "Grove", + + node_top = "default:dirt_with_grass", + node_filler = "default:dirt", + + depth_filler = 4, + depth_top = 1, + + y_min = 3, + y_max = 32000, + + heat_point = 40, + humidity_point = 38, + }) + minetest.register_biome( { name = "Wilderness", @@ -115,7 +132,7 @@ minetest.register_biome( y_max = 32000, heat_point = 45, - humidity_point = 38, + humidity_point = 36, }) minetest.register_biome( @@ -348,12 +365,13 @@ minetest.register_decoration( deco_type = "schematic", place_on = {"default:dirt_with_grass"}, sidelen = 16, - fill_ratio = 0.008, + fill_ratio = 0.004, biomes = {"Wilderness"}, flags = "place_center_x, place_center_z", - schematic = minetest.get_modpath("default").."/schematics/default_talltree.mts", - y_min = 0, - y_max = 10, + replacements = {["default:leaves"] = "default:leaves_oak", ["default:tree"] = "default:tree_oak", ["default:apple"] = "air"}, + schematic = minetest.get_modpath("default").."/schematics/default_tree.mts", + y_min = -32000, + y_max = 32000, }) minetest.register_decoration( @@ -362,11 +380,10 @@ minetest.register_decoration( place_on = {"default:dirt_with_grass"}, sidelen = 16, fill_ratio = 0.004, - biomes = {"Wilderness"}, + biomes = {"Grove"}, flags = "place_center_x, place_center_z", - replacements = {["default:leaves"] = "default:leaves_oak", ["default:tree"] = "default:tree_oak", ["default:apple"] = "air"}, - schematic = minetest.get_modpath("default").."/schematics/default_tree.mts", - y_min = -32000, + schematic = minetest.get_modpath("default").."/schematics/default_talltree.mts", + y_min = 0, y_max = 32000, }) @@ -486,6 +503,18 @@ minetest.register_decoration( y_max = 32000, }) +minetest.register_decoration( + { + deco_type = "simple", + place_on = "default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.08, + biomes = {"Grove"}, + decoration = {"default:tall_grass"}, + y_min = -32000, + y_max = 32000, + }) + -- Ferns minetest.register_decoration( @@ -493,8 +522,8 @@ minetest.register_decoration( deco_type = "simple", place_on = "default:dirt_with_grass", sidelen = 16, - fill_ratio = 0.008, - biomes = {"Wilderness"}, + fill_ratio = 0.02, + biomes = {"Wilderness", "Grove"}, decoration = {"default:fern"}, y_min = -32000, y_max = 32000, @@ -594,9 +623,9 @@ minetest.register_decoration( place_on = {"default:dirt_with_grass"}, sidelen = 16, fill_ratio = 0.004, - biomes = {"Wilderness"}, + biomes = {"Wilderness", "Grove"}, flags = "place_center_x, place_center_z", - schematic = minetest.get_modpath("default").."/schematics/default_shrub.mts", + schematic = minetest.get_modpath("default").."/schematics/default_bush.mts", y_min = 3, y_max = 32000, rotation = "0", diff --git a/mods/default/schematics/default_talltree.mts b/mods/default/schematics/default_talltree.mts index 2d57fdb5bc3fa86cd5da3c91b7ee907d7bc09559..b018262fe3cfb5cd6a4feb62ceef45587f8ade6c 100644 GIT binary patch delta 95 zcmb=M%qZ#`670*s!obQP&A?g@0~2{{oEjSh{frOYRAx^2C37sP#W|()L__9`jS`JI uZX#mJQ;v2Vk+NLbGHHvU5yQEn#dRV*O$T||6n6JC1v+psFeJtK2LJ#bf+7$A delta 74 zcmV-Q0JZ;<0e%ckR8vg=1ONp95}6+AWqfN`K5Kr~>4(~Njs%`|9Oj6fD6)WuA2 gR}c0OCpMf1CqQ#?{U{jXU|^EbD4-qy05?3}a5YI7kN^Mx