Added savannah biome with acacia and dry grass

This commit is contained in:
TenPlus1 2015-11-01 21:23:26 +00:00
parent 85dfd7aeba
commit ecd0a23ed9
2 changed files with 33 additions and 8 deletions

View File

@ -430,6 +430,18 @@ minetest.register_biome({
depth_filler = 5, depth_filler = 5,
y_min = 3, y_min = 3,
y_max = 25, -- was 61 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, heat_point = 55,
humidity_point = 25, humidity_point = 25,
}) })
@ -636,10 +648,10 @@ minetest.register_decoration({
-- acacia tree -- acacia tree
minetest.register_decoration({ minetest.register_decoration({
deco_type = "schematic", deco_type = "schematic",
place_on = {"default:desert_sand"}, place_on = {"default:desert_sand", "default:dirt_with_dry_grass"},
sidelen = 80, sidelen = 80,
fill_ratio = 0.004, fill_ratio = 0.004,
biomes = {"desert"}, biomes = {"desert", "savannah"},
schematic = path.."acaciatree.mts", schematic = path.."acaciatree.mts",
flags = "place_center_x, place_center_z", flags = "place_center_x, place_center_z",
}) })
@ -713,6 +725,19 @@ minetest.register_decoration({
decoration = "default:dry_shrub", 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 -- flowers & strawberry
minetest.register_decoration({ minetest.register_decoration({
deco_type = "simple", deco_type = "simple",

View File

@ -423,15 +423,15 @@ minetest.register_craft({
-- X pattern craft recipes (5x a in X pattern gives 5 b) -- X pattern craft recipes (5x a in X pattern gives 5 b)
for _,items in pairs({ for _,items in pairs({
{"cobble", "gravel"}, {"default:cobble", "default:gravel"},
{"gravel", "dirt"}, {"default:gravel", "default:dirt"},
{"dirt", "sand"}, {"default:dirt", "default:sand"},
{"ice", "snow"}, {"default:ice", "default:snow"},
{"ethereal:dry_dirt", "default:desert_sand"},
}) do }) do
local a,b = unpack(items) local a,b = unpack(items)
a = "default:"..a
minetest.register_craft({ minetest.register_craft({
output = "default:"..b.." 5", output = b.." 5",
recipe = { recipe = {
{a, "", a}, {a, "", a},
{"", a, ""}, {"", a, ""},