Skip to content

Commit d1b1325

Browse files
committedFeb 28, 2017
Biomes: New surface node for rainforest
Moist rainforest plant litter. Textures by npx.
1 parent 9d3a526 commit d1b1325

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed
 

‎mods/default/README.txt

+4
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ Ferk (CC0 1.0)
198198
default_item_smoke.png
199199
default_item_smoke.ogg, based on sound by http://opengameart.org/users/bart
200200

201+
npx (CC BY-SA 3.0)
202+
default_rainforest_litter.png
203+
default_rainforest_litter_side.png
204+
201205
Glass breaking sounds (CC BY 3.0):
202206
1: http://www.freesound.org/people/cmusounddesign/sounds/71947/
203207
2: http://www.freesound.org/people/Tomlija/sounds/97669/

‎mods/default/mapgen.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ function default.register_biomes()
10581058
minetest.register_biome({
10591059
name = "rainforest",
10601060
--node_dust = "",
1061-
node_top = "default:dirt_with_grass",
1061+
node_top = "default:dirt_with_rainforest_litter",
10621062
depth_top = 1,
10631063
node_filler = "default:dirt",
10641064
depth_filler = 3,
@@ -1322,7 +1322,7 @@ function default.register_decorations()
13221322

13231323
minetest.register_decoration({
13241324
deco_type = "schematic",
1325-
place_on = {"default:dirt_with_grass", "default:dirt"},
1325+
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
13261326
sidelen = 80,
13271327
fill_ratio = 0.1,
13281328
biomes = {"rainforest", "rainforest_swamp"},
@@ -1335,7 +1335,7 @@ function default.register_decorations()
13351335

13361336
minetest.register_decoration({
13371337
deco_type = "schematic",
1338-
place_on = {"default:dirt_with_grass", "default:dirt"},
1338+
place_on = {"default:dirt_with_rainforest_litter", "default:dirt"},
13391339
sidelen = 80,
13401340
fill_ratio = 0.005,
13411341
biomes = {"rainforest", "rainforest_swamp"},
@@ -1596,7 +1596,7 @@ function default.register_decorations()
15961596

15971597
minetest.register_decoration({
15981598
deco_type = "simple",
1599-
place_on = {"default:dirt_with_grass"},
1599+
place_on = {"default:dirt_with_rainforest_litter"},
16001600
sidelen = 80,
16011601
fill_ratio = 0.1,
16021602
biomes = {"rainforest"},

‎mods/default/nodes.lua

+16
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ default:dirt_with_grass
4444
default:dirt_with_grass_footsteps
4545
default:dirt_with_dry_grass
4646
default:dirt_with_snow
47+
default:dirt_with_rainforest_litter
4748
4849
default:sand
4950
default:desert_sand
@@ -386,6 +387,21 @@ minetest.register_node("default:dirt_with_snow", {
386387
}),
387388
})
388389

390+
minetest.register_node("default:dirt_with_rainforest_litter", {
391+
description = "Dirt with Rainforest Litter",
392+
tiles = {
393+
"default_rainforest_litter.png",
394+
"default_dirt.png",
395+
{name = "default_dirt.png^default_rainforest_litter_side.png",
396+
tileable_vertical = false}
397+
},
398+
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
399+
drop = "default:dirt",
400+
sounds = default.node_sound_dirt_defaults({
401+
footstep = {name = "default_grass_footstep", gain = 0.4},
402+
}),
403+
})
404+
389405
minetest.register_node("default:sand", {
390406
description = "Sand",
391407
tiles = {"default_sand.png"},
940 Bytes
Loading
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.