Biomes: Add 'dirt with coniferous litter' node for coniferous forest
authorparamat <paramat@users.noreply.github.com>
Fri, 22 Dec 2017 00:59:42 +0000 (00:59 +0000)
committerparamat <mat.gregory@virginmedia.com>
Sun, 24 Dec 2017 00:33:21 +0000 (00:33 +0000)
mods/default/README.txt
mods/default/mapgen.lua
mods/default/nodes.lua
mods/default/textures/default_coniferous_litter.png [new file with mode: 0644]
mods/default/textures/default_coniferous_litter_side.png [new file with mode: 0644]
mods/flowers/mapgen.lua

index fb30e268ebbdcc2ce2a201a02ac950fd3c7d2411..d27e8a870b63bf38c53d21bd3d31822ce8851ab2 100644 (file)
@@ -117,6 +117,8 @@ paramat (CC BY-SA 3.0):
 
 TumeniNodes (CC BY-SA 3.0):
   default_desert_cobble.png -- Derived from a texture by brunob.santos (CC BY-SA 3.0)
+  default_coniferous_litter.png
+  default_coniferous_litter_side.png
 
 BlockMen (CC BY-SA 3.0):
   default_aspen_leaves.png -- Derived from Sofar's texture
index 7cd6066607903dc1e221e0e191696f38df362812..e06d1285fda7f8a49e304bd94c2c34f04feec510 100644 (file)
@@ -1064,7 +1064,7 @@ function default.register_biomes(upper_limit)
        minetest.register_biome({
                name = "coniferous_forest",
                --node_dust = "",
-               node_top = "default:dirt_with_grass",
+               node_top = "default:dirt_with_coniferous_litter",
                depth_top = 1,
                node_filler = "default:dirt",
                depth_filler = 3,
@@ -1613,8 +1613,7 @@ local function register_grass_decoration(offset, scale, length)
                        persist = 0.6
                },
                biomes = {"grassland", "grassland_dunes", "deciduous_forest",
-                       "coniferous_forest", "coniferous_forest_dunes",
-                       "floatland_grassland"},
+                       "coniferous_forest_dunes", "floatland_grassland"},
                y_min = 1,
                y_max = 31000,
                decoration = "default:grass_" .. length,
@@ -1718,7 +1717,7 @@ function default.register_decorations()
 
        minetest.register_decoration({
                deco_type = "schematic",
-               place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
+               place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
                sidelen = 16,
                noise_params = {
                        offset = 0.036,
@@ -1737,7 +1736,7 @@ function default.register_decorations()
 
        minetest.register_decoration({
                deco_type = "schematic",
-               place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
+               place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
                sidelen = 80,
                noise_params = {
                        offset = 0.0018,
index b60c48377b22cbe2d65aee4221a6c3f5e6b9926f..2522230812a94dbd3a9c73bd08a258423ef9965d 100644 (file)
@@ -51,6 +51,7 @@ default:dirt_with_grass_footsteps
 default:dirt_with_dry_grass
 default:dirt_with_snow
 default:dirt_with_rainforest_litter
+default:dirt_with_coniferous_litter
 
 default:sand
 default:desert_sand
@@ -464,6 +465,21 @@ minetest.register_node("default:dirt_with_rainforest_litter", {
        }),
 })
 
+minetest.register_node("default:dirt_with_coniferous_litter", {
+       description = "Dirt with Coniferous Litter",
+       tiles = {
+               "default_coniferous_litter.png",
+               "default_dirt.png",
+               {name = "default_dirt.png^default_coniferous_litter_side.png",
+                       tileable_vertical = false}
+       },
+       groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
+       drop = "default:dirt",
+       sounds = default.node_sound_dirt_defaults({
+               footstep = {name = "default_grass_footstep", gain = 0.4},
+       }),
+})
+
 minetest.register_node("default:sand", {
        description = "Sand",
        tiles = {"default_sand.png"},
diff --git a/mods/default/textures/default_coniferous_litter.png b/mods/default/textures/default_coniferous_litter.png
new file mode 100644 (file)
index 0000000..9a77b34
Binary files /dev/null and b/mods/default/textures/default_coniferous_litter.png differ
diff --git a/mods/default/textures/default_coniferous_litter_side.png b/mods/default/textures/default_coniferous_litter_side.png
new file mode 100644 (file)
index 0000000..a254bf5
Binary files /dev/null and b/mods/default/textures/default_coniferous_litter_side.png differ
index 8e8c493680730b2371314ddf9ef24c14b225c759..b13c9731af290567c43eafd3250b83e183bc62b5 100644 (file)
@@ -84,7 +84,7 @@ end
 local function register_flower(seed, name)
        minetest.register_decoration({
                deco_type = "simple",
-               place_on = {"default:dirt_with_grass"},
+               place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
                sidelen = 16,
                noise_params = {
                        offset = -0.02,
@@ -105,7 +105,7 @@ end
 local function register_mushroom(name)
        minetest.register_decoration({
                deco_type = "simple",
-               place_on = {"default:dirt_with_grass"},
+               place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
                sidelen = 16,
                noise_params = {
                        offset = 0,