summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-11-01 21:23:26 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2015-11-01 21:23:26 +0000
commitecd0a23ed90e564be7a860b6c35593c91fb41367 (patch)
tree9080f1c8d79fc06ded1db5f19c508759e0f99adc
parent85dfd7aebab4d246405a6eb72c0704d5d52fca2e (diff)
Added savannah biome with acacia and dry grass
-rw-r--r--mapgen_v7n.lua29
-rw-r--r--plantlife.lua12
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, ""},