From b3f144fa861bea71b549f63a1670e5b1deaad73f Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 24 Nov 2016 14:54:47 +0000 Subject: added swamp biome --- README.md | 1 + init.lua | 3 ++- mapgen.lua | 23 ++++++++++++++++++----- plantpack.lua | 2 +- schematics/vinetree.mts | Bin 0 -> 216 bytes 5 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 schematics/vinetree.mts diff --git a/README.md b/README.md index 43df251..4f8beac 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6) - Fixes and tweaks - Added default Abm overrides - Added 4 new plants from baked clay mod to mapgen + - Added swamp biome to outskirts of bamboo areas ### 1.20 diff --git a/init.lua b/init.lua index 1234b9f..21878a8 100644 --- a/init.lua +++ b/init.lua @@ -1,6 +1,6 @@ --[[ - Minetest Ethereal Mod (16th November 2016) + Minetest Ethereal Mod (24th November 2016) Created by ChinChow @@ -37,6 +37,7 @@ ethereal.plains = 1 -- Dry dirt with scorched trees ethereal.savannah = 1 -- Dry yellow grass with acacia tree's ethereal.fiery = 1 -- Red grass with lava craters ethereal.sandclay = 1 -- Sand areas with clay underneath +ethereal.swamp = 1 -- Swamp areas with vines on tree's, mushrooms, lilly's and clay sand -- Intllib local S diff --git a/mapgen.lua b/mapgen.lua index fb04c08..9774df4 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -205,6 +205,12 @@ add_biome("fiery_ocean", nil, "default:sand", 1, "default:sand", 2, add_biome("sandclay", nil, "default:sand", 3, "default:clay", 2, nil, nil, nil, nil, nil, 1, 11, 65, 2, ethereal.sandclay) +add_biome("swamp", nil, "ethereal:green_dirt", 1, "default:dirt", 3, + nil, nil, nil, nil, nil, 1, 7, 90, 90, ethereal.swamp) + +add_biome("swamp_ocean", nil, "default:sand", 2, "default:clay", 2, + nil, nil, nil, nil, nil, -192, 1, 90, 90, ethereal.swamp) + --= schematic decorations local add_schem = function(a, b, c, d, e, f, g) @@ -312,6 +318,9 @@ add_schem({"ethereal:bamboo_dirt"}, 0.025, {"bamboo"}, 1, 100, ethereal.bambootr -- bush add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bush, ethereal.bamboo) +-- vine tree +add_schem({"ethereal:green_dirt"}, 0.02, {"swamp"}, 1, 100, path .. "vinetree.mts", ethereal.swamp) + --= simple decorations local add_node = function(a, b, c, d, e, f, g, h, i, j) @@ -386,7 +395,8 @@ local list = { {"grassy", "ethereal:green_dirt", ethereal.grassy}, {"grassytwo", "ethereal:green_dirt", ethereal.grassytwo}, {"prairie", "ethereal:prairie_dirt", ethereal.prairie}, - {"mushroom", "ethereal:mushroom_dirt", ethereal.mushroom} + {"mushroom", "ethereal:mushroom_dirt", ethereal.mushroom}, + {"swamp", "ethereal:green_dirt", ethereal.swamp}, } -- wild red and brown mushrooms @@ -417,6 +427,7 @@ end -- jungle grass add_node({"ethereal:jungle_dirt"}, 0.10, {"junglee"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.junglee) add_node({"ethereal:green_dirt"}, 0.15, {"jumble"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.jumble) +add_node({"ethereal:green_dirt"}, 0.25, {"swamp"}, 1, 100, {"default:junglegrass"}, nil, nil, nil, ethereal.swamp) -- grass add_node({"ethereal:green_dirt"}, 0.35, {"grassy"}, 1, 100, {"default:grass_2", "default:grass_3", @@ -433,15 +444,15 @@ add_node({"ethereal:grove_dirt"}, 0.35, {"grove"}, 1, 100, {"default:grass_2", " "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.grove) add_node({"ethereal:bamboo_dirt"}, 0.35, {"bamboo"}, 1, 100, {"default:grass_2", "default:grass_3", "default:grass_4", "default:grass_5"}, nil, nil, nil, ethereal.bamboo) -add_node({"ethereal:green_dirt"}, 0.25, {"clearing"}, 1, 100, {"default:grass_2", "default:grass_3", +add_node({"ethereal:green_dirt"}, 0.35, {"clearing", "swamp"}, 1, 100, {"default:grass_3", "default:grass_4"}, nil, nil, nil, 1) -- grass on sand -add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 3, {"default:grass_2", "default:grass_3"}, nil, nil, nil, ethereal.sandclay) +add_node({"default:sand"}, 0.25, {"sandclay"}, 3, 4, {"default:grass_2", "default:grass_3"}, nil, nil, nil, ethereal.sandclay) -- ferns add_node({"ethereal:grove_dirt"}, 0.2, {"grove"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, ethereal.grove) - +add_node({"ethereal:green_dirt"}, 0.1, {"swamp"}, 1, 100, {"ethereal:fern"}, nil, nil, nil, ethereal.swamp) -- snow add_node({"ethereal:cold_dirt"}, 0.8, {"snowy"}, 4, 40, {"default:snow"}, nil, nil, nil, ethereal.snowy) @@ -456,6 +467,7 @@ add_node({"ethereal:prairie_dirt"}, 0.25, {"prairie"}, 1, 100, {"ethereal:onion_ -- papyrus add_node({"ethereal:green_dirt"}, 0.1, {"grassy"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.grassy) add_node({"ethereal:jungle_dirt"}, 0.1, {"junglee"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.junglee) +add_node({"ethereal:green_dirt"}, 0.1, {"swamp"}, 1, 1, {"default:papyrus"}, 4, "default:water_source", 1, ethereal.swamp) --= Farming Redo plants @@ -505,6 +517,7 @@ local list = { {"mesa_ocean", ethereal.mesa}, {"grove_ocean", ethereal.grove}, {"grassy_ocean", ethereal.grassy}, + {"swamp_ocean", ethereal.swamp}, } for _, row in pairs(list) do @@ -644,4 +657,4 @@ minetest.register_decoration({ num_spawn_by = 1, }) -end \ No newline at end of file +end diff --git a/plantpack.lua b/plantpack.lua index 001ac0d..517e1c2 100644 --- a/plantpack.lua +++ b/plantpack.lua @@ -147,7 +147,7 @@ minetest.register_decoration({ place_on = {"default:sand", "ethereal:green_dirt"}, sidelen = 16, fill_ratio = 0.015, - biomes = {"sandclay", "grassy_ocean", "grassy", "grassytwo", "jumble"}, + biomes = {"sandclay", "grassy_ocean", "grassy", "grassytwo", "jumble", "swamp"}, decoration = { "xanadu:wetlands_cattails", "xanadu:wetlands_pickerel", "xanadu:wetlands_mannagrass", "xanadu:wetlands_turtle" diff --git a/schematics/vinetree.mts b/schematics/vinetree.mts new file mode 100644 index 0000000..e978e40 Binary files /dev/null and b/schematics/vinetree.mts differ -- cgit v1.2.3