Skip to content

Commit 8ab7c54

Browse files
committedDec 24, 2017
Biomes: Add 'dirt with coniferous litter' node for coniferous forest
1 parent 5b57815 commit 8ab7c54

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed
 

‎mods/default/README.txt

+2
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ paramat (CC BY-SA 3.0):
117117

118118
TumeniNodes (CC BY-SA 3.0):
119119
default_desert_cobble.png -- Derived from a texture by brunob.santos (CC BY-SA 3.0)
120+
default_coniferous_litter.png
121+
default_coniferous_litter_side.png
120122

121123
BlockMen (CC BY-SA 3.0):
122124
default_aspen_leaves.png -- Derived from Sofar's texture

‎mods/default/mapgen.lua

+4-5
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ function default.register_biomes(upper_limit)
10641064
minetest.register_biome({
10651065
name = "coniferous_forest",
10661066
--node_dust = "",
1067-
node_top = "default:dirt_with_grass",
1067+
node_top = "default:dirt_with_coniferous_litter",
10681068
depth_top = 1,
10691069
node_filler = "default:dirt",
10701070
depth_filler = 3,
@@ -1613,8 +1613,7 @@ local function register_grass_decoration(offset, scale, length)
16131613
persist = 0.6
16141614
},
16151615
biomes = {"grassland", "grassland_dunes", "deciduous_forest",
1616-
"coniferous_forest", "coniferous_forest_dunes",
1617-
"floatland_grassland"},
1616+
"coniferous_forest_dunes", "floatland_grassland"},
16181617
y_min = 1,
16191618
y_max = 31000,
16201619
decoration = "default:grass_" .. length,
@@ -1718,7 +1717,7 @@ function default.register_decorations()
17181717

17191718
minetest.register_decoration({
17201719
deco_type = "schematic",
1721-
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
1720+
place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
17221721
sidelen = 16,
17231722
noise_params = {
17241723
offset = 0.036,
@@ -1737,7 +1736,7 @@ function default.register_decorations()
17371736

17381737
minetest.register_decoration({
17391738
deco_type = "schematic",
1740-
place_on = {"default:dirt_with_snow", "default:dirt_with_grass"},
1739+
place_on = {"default:dirt_with_snow", "default:dirt_with_coniferous_litter"},
17411740
sidelen = 80,
17421741
noise_params = {
17431742
offset = 0.0018,

‎mods/default/nodes.lua

+16
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ default:dirt_with_grass_footsteps
5151
default:dirt_with_dry_grass
5252
default:dirt_with_snow
5353
default:dirt_with_rainforest_litter
54+
default:dirt_with_coniferous_litter
5455
5556
default:sand
5657
default:desert_sand
@@ -464,6 +465,21 @@ minetest.register_node("default:dirt_with_rainforest_litter", {
464465
}),
465466
})
466467

468+
minetest.register_node("default:dirt_with_coniferous_litter", {
469+
description = "Dirt with Coniferous Litter",
470+
tiles = {
471+
"default_coniferous_litter.png",
472+
"default_dirt.png",
473+
{name = "default_dirt.png^default_coniferous_litter_side.png",
474+
tileable_vertical = false}
475+
},
476+
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
477+
drop = "default:dirt",
478+
sounds = default.node_sound_dirt_defaults({
479+
footstep = {name = "default_grass_footstep", gain = 0.4},
480+
}),
481+
})
482+
467483
minetest.register_node("default:sand", {
468484
description = "Sand",
469485
tiles = {"default_sand.png"},
865 Bytes
Loading
Loading

‎mods/flowers/mapgen.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ end
8484
local function register_flower(seed, name)
8585
minetest.register_decoration({
8686
deco_type = "simple",
87-
place_on = {"default:dirt_with_grass"},
87+
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
8888
sidelen = 16,
8989
noise_params = {
9090
offset = -0.02,
@@ -105,7 +105,7 @@ end
105105
local function register_mushroom(name)
106106
minetest.register_decoration({
107107
deco_type = "simple",
108-
place_on = {"default:dirt_with_grass"},
108+
place_on = {"default:dirt_with_grass", "default:dirt_with_coniferous_litter"},
109109
sidelen = 16,
110110
noise_params = {
111111
offset = 0,

0 commit comments

Comments
 (0)
Please sign in to comment.