Skip to content

Commit

Permalink
Biomes: New surface node for rainforest
Browse files Browse the repository at this point in the history
Moist rainforest plant litter.
Textures by npx.
  • Loading branch information
paramat committed Feb 28, 2017
1 parent 9d3a526 commit d1b1325
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
4 changes: 4 additions & 0 deletions mods/default/README.txt
Expand Up @@ -198,6 +198,10 @@ Ferk (CC0 1.0)
default_item_smoke.png
default_item_smoke.ogg, based on sound by http://opengameart.org/users/bart

npx (CC BY-SA 3.0)
default_rainforest_litter.png
default_rainforest_litter_side.png

Glass breaking sounds (CC BY 3.0):
1: http://www.freesound.org/people/cmusounddesign/sounds/71947/
2: http://www.freesound.org/people/Tomlija/sounds/97669/
Expand Down
8 changes: 4 additions & 4 deletions mods/default/mapgen.lua
Expand Up @@ -1058,7 +1058,7 @@ function default.register_biomes()
minetest.register_biome({
name = "rainforest",
--node_dust = "",
node_top = "default:dirt_with_grass",
node_top = "default:dirt_with_rainforest_litter",
depth_top = 1,
node_filler = "default:dirt",
depth_filler = 3,
Expand Down Expand Up @@ -1322,7 +1322,7 @@ function default.register_decorations()

minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dirt_with_grass", "default:dirt"},
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
sidelen = 80,
fill_ratio = 0.1,
biomes = {"rainforest", "rainforest_swamp"},
Expand All @@ -1335,7 +1335,7 @@ function default.register_decorations()

minetest.register_decoration({
deco_type = "schematic",
place_on = {"default:dirt_with_grass", "default:dirt"},
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
sidelen = 80,
fill_ratio = 0.005,
biomes = {"rainforest", "rainforest_swamp"},
Expand Down Expand Up @@ -1596,7 +1596,7 @@ function default.register_decorations()

minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass"},
place_on = {"default:dirt_with_rainforest_litter"},
sidelen = 80,
fill_ratio = 0.1,
biomes = {"rainforest"},
Expand Down
16 changes: 16 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -44,6 +44,7 @@ default:dirt_with_grass
default:dirt_with_grass_footsteps
default:dirt_with_dry_grass
default:dirt_with_snow
default:dirt_with_rainforest_litter
default:sand
default:desert_sand
Expand Down Expand Up @@ -386,6 +387,21 @@ minetest.register_node("default:dirt_with_snow", {
}),
})
minetest.register_node("default:dirt_with_rainforest_litter", {
description = "Dirt with Rainforest Litter",
tiles = {
"default_rainforest_litter.png",
"default_dirt.png",
{name = "default_dirt.png^default_rainforest_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_rainforest_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.

0 comments on commit d1b1325

Please sign in to comment.