From 723a9e5f31c39c0958896fa05a56832b71fd60d7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 14 May 2022 18:11:33 +0200 Subject: [PATCH] Add grass to biomes that have none --- mods/rp_default/mapgen.lua | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/mods/rp_default/mapgen.lua b/mods/rp_default/mapgen.lua index 5c9365c..5d2ee88 100644 --- a/mods/rp_default/mapgen.lua +++ b/mods/rp_default/mapgen.lua @@ -691,7 +691,7 @@ minetest.register_biome( heat_point = 83, humidity_point = 84, }) -register_ocean_and_beach("Dry Swamp", "rp_default:dirt", 5, "rp_default:dirt") -- force creation of beach sub-biome +register_ocean_and_beach("Dry Swamp", "rp_default:dirt", 3, "rp_default:swamp_dirt") -- force creation of beach sub-biome default.set_biome_info("Dry Swamp", "swampy") minetest.register_biome( @@ -870,7 +870,7 @@ minetest.register_ore( }, }) -minetest.register_ore( -- Dry Swamp (dirt) +minetest.register_ore( -- Dry Swamp (dirt with grass) { ore_type = "blob", ore = "rp_default:dirt_with_grass", @@ -888,7 +888,7 @@ minetest.register_ore( -- Dry Swamp (dirt) ore_type = "blob", ore = "rp_default:dirt", wherein = {"rp_default:swamp_dirt"}, - biomes = {"Dry Swamp"}, + biomes = {"Dry Swamp", "Dry Swamp Beach"}, clust_scarcity = 3*3*3, clust_num_ores = 10, clust_size = 4, @@ -2383,6 +2383,18 @@ minetest.register_decoration( y_min = 10, y_max = 32000, }) + +minetest.register_decoration( + { + deco_type = "simple", + place_on = "rp_default:dirt_with_grass", + sidelen = 16, + fill_ratio = 0.08, + biomes = {"Forest", "Deep Forest", "Birch Forest", "Tall Birch Forest", "Oak Forest", "Dense Oak Forest", "Tall Oak Forest", "Mystery Forest", "Baby Poplar Plains", "Poplar Plains", "Dry Swamp"}, + decoration = {"rp_default:grass"}, + y_min = 0, + y_max = 32000, +}) end minetest.register_decoration( @@ -2421,17 +2433,6 @@ minetest.register_decoration( }) if mg_name ~= "v6" then -minetest.register_decoration( - { - deco_type = "simple", - place_on = "rp_default:dirt_with_grass", - sidelen = 16, - fill_ratio = 0.08, - biomes = {"Forest", "Deep Forest", "Birch Forest", "Tall Birch Forest", "Oak Forest", "Dense Oak Forest", "Tall Oak Forest", "Mystery Forest"}, - decoration = {"rp_default:grass"}, - y_min = 0, - y_max = 32000, -}) minetest.register_decoration( {