From 2b951a73d35127f91287dce02439880b2a8b1e5b Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 7 May 2019 15:36:39 +0100 Subject: [PATCH] add swamp water pools and change version number to 1.26 --- README.md | 2 +- init.lua | 2 +- mapgen.lua | 32 ++++++++++++++++++++++++++++++++ settings.conf_example | 2 +- 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 26a9b46..d421849 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6) - 1 in 10 chance of sakura sapling growing into white sakura - Bamboo grows in higher elevation while sakura grows in lower - Added sakura wood, stairs, fence, gate and door - - Added 5.0 checks to add new biomes and decoration + - Added 5.0 checks to add new biomes and decorations ### 1.25 diff --git a/init.lua b/init.lua index 2d94411..472933e 100644 --- a/init.lua +++ b/init.lua @@ -11,7 +11,7 @@ -- DO NOT change settings below, use the settings.conf file instead ethereal = { - version = "1.25", + version = "1.26", leaftype = 0, -- 0 for 2D plantlike, 1 for 3D allfaces leafwalk = false, -- true for walkable leaves, false to fall through cavedirt = true, -- caves chop through dirt when true diff --git a/mapgen.lua b/mapgen.lua index cc9139c..578da5c 100644 --- a/mapgen.lua +++ b/mapgen.lua @@ -422,6 +422,38 @@ add_schem({"ethereal:bamboo_dirt"}, 0.08, {"bamboo"}, 1, 100, ethereal.bush, eth -- vine tree add_schem({"default:dirt_with_grass"}, 0.02, {"swamp"}, 1, 100, ethereal.vinetree, ethereal.swamp) +-- water pools in swamp areas if 5.0 detected +if minetest.registered_nodes["default:permafrost"] then +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + place_offset_y = -1, + sidelen = 16, + fill_ratio = 0.01, + biomes = {"swamp"}, + y_max = 2, + y_min = 1, + flags = "force_placement", + decoration = "default:water_source", + spawn_by = "default:dirt_with_grass", + num_spawn_by = 8, +}) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + place_offset_y = -1, + sidelen = 16, + fill_ratio = 0.1, + biomes = {"swamp"}, + y_max = 2, + y_min = 1, + flags = "force_placement", + decoration = "default:water_source", + spawn_by = {"default:dirt_with_grass", "default:water_source"}, + num_spawn_by = 8, +}) +end + -- bush minetest.register_decoration({ deco_type = "schematic", diff --git a/settings.conf_example b/settings.conf_example index 1fab02f..7ed6ea6 100644 --- a/settings.conf_example +++ b/settings.conf_example @@ -12,7 +12,7 @@ ethereal.papyruswalk = true -- papyrus can be walked on ethereal.lilywalk = true -- waterlilies can be walked on ethereal.xcraft = true -- allow cheat crafts for cobble->gravel->dirt->sand, ice->snow, dry dirt->desert sand --- Set following to 1 to enable biome or 0 to disable +-- Set following to 1 to enable biome or false to disable ethereal.glacier = 1 -- Ice glaciers with snow ethereal.bamboo = 1 -- Bamboo with sprouts ethereal.mesa = 1 -- Mesa red and orange clay with giant redwood