Skip to content

Commit

Permalink
Biomes: Add 'dirt with coniferous litter' node for coniferous forest
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Dec 24, 2017
1 parent 5b57815 commit 8ab7c54
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 7 deletions.
2 changes: 2 additions & 0 deletions mods/default/README.txt
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions mods/default/mapgen.lua
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down
16 changes: 16 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -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
Expand Down Expand Up @@ -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"},
Expand Down
Binary file added mods/default/textures/default_coniferous_litter.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions mods/flowers/mapgen.lua
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 8ab7c54

Please sign in to comment.