From ecd0a23ed90e564be7a860b6c35593c91fb41367 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 1 Nov 2015 21:23:26 +0000 Subject: Added savannah biome with acacia and dry grass --- mapgen_v7n.lua | 29 +++++++++++++++++++++++++++-- plantlife.lua | 12 ++++++------ 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/mapgen_v7n.lua b/mapgen_v7n.lua index 0e6bc43..f5ac5f3 100644 --- a/mapgen_v7n.lua +++ b/mapgen_v7n.lua @@ -430,6 +430,18 @@ minetest.register_biome({ depth_filler = 5, y_min = 3, y_max = 25, -- was 61 + heat_point = 65, + humidity_point = 25, +}) + +minetest.register_biome({ + name = "savannah", + node_top = "default:dirt_with_dry_grass", + depth_top = 1, + node_filler = "default:dirt", + depth_filler = 5, + y_min = 3, + y_max = 50, heat_point = 55, humidity_point = 25, }) @@ -636,10 +648,10 @@ minetest.register_decoration({ -- acacia tree minetest.register_decoration({ deco_type = "schematic", - place_on = {"default:desert_sand"}, + place_on = {"default:desert_sand", "default:dirt_with_dry_grass"}, sidelen = 80, fill_ratio = 0.004, - biomes = {"desert"}, + biomes = {"desert", "savannah"}, schematic = path.."acaciatree.mts", flags = "place_center_x, place_center_z", }) @@ -713,6 +725,19 @@ minetest.register_decoration({ decoration = "default:dry_shrub", }) +-- dry grass +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_dry_grass"}, + sidelen = 80, + fill_ratio = 0.25, + biomes = {"savannah"}, + decoration = { + "default:dry_grass_1", "default:dry_grass_2", "default:dry_grass_3", + "default:dry_grass_4", "default:dry_grass_5" + }, +}) + -- flowers & strawberry minetest.register_decoration({ deco_type = "simple", diff --git a/plantlife.lua b/plantlife.lua index 5a444fe..e3b974c 100644 --- a/plantlife.lua +++ b/plantlife.lua @@ -423,15 +423,15 @@ minetest.register_craft({ -- X pattern craft recipes (5x a in X pattern gives 5 b) for _,items in pairs({ - {"cobble", "gravel"}, - {"gravel", "dirt"}, - {"dirt", "sand"}, - {"ice", "snow"}, + {"default:cobble", "default:gravel"}, + {"default:gravel", "default:dirt"}, + {"default:dirt", "default:sand"}, + {"default:ice", "default:snow"}, + {"ethereal:dry_dirt", "default:desert_sand"}, }) do local a,b = unpack(items) - a = "default:"..a minetest.register_craft({ - output = "default:"..b.." 5", + output = b.." 5", recipe = { {a, "", a}, {"", a, ""}, -- cgit v1.2.3