Skip to content

Commit ace7ec9

Browse files
authoredMay 4, 2018
Biomes: Add tundra lowland with permafrost, stones, moss and snow
Move previous tundra to highland and remove the snowblocks that are unsuitable for a fairly dry biome, use snow slabs instead.
1 parent b52ea3d commit ace7ec9

File tree

7 files changed

+98
-3
lines changed

7 files changed

+98
-3
lines changed
 

Diff for: ‎mods/default/README.txt

+4
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ paramat (CC BY-SA 3.0):
114114
default_bookshelf_slot.png -- Derived from a texture by Gambit (CC-BY-SA 3.0)
115115
default_marram_grass_*.png -- Derived from textures by TumeniNodes (CC-BY-SA 3.0)
116116
default_emergent_jungle_sapling.png
117+
default_permafrost.png -- Derived from a texture by Neuromancer (CC BY-SA 3.0)
118+
default_stones.png -- Derived from a texture by sofar (CC0 1.0)
119+
default_moss.png
120+
default_moss_side.png
117121

118122
TumeniNodes (CC BY-SA 3.0):
119123
default_desert_cobble.png -- Derived from a texture by brunob.santos (CC BY-SA 3.0)

Diff for: ‎mods/default/mapgen.lua

+62-2
Original file line numberDiff line numberDiff line change
@@ -948,11 +948,25 @@ function default.register_biomes(upper_limit)
948948
-- Tundra
949949

950950
minetest.register_biome({
951-
name = "tundra",
952-
node_dust = "default:snowblock",
951+
name = "tundra_highland",
952+
node_dust = "default:snow",
953953
node_riverbed = "default:gravel",
954954
depth_riverbed = 2,
955955
y_max = upper_limit,
956+
y_min = 49,
957+
heat_point = 0,
958+
humidity_point = 40,
959+
})
960+
961+
minetest.register_biome({
962+
name = "tundra",
963+
node_top = "default:permafrost_with_stones",
964+
depth_top = 1,
965+
node_filler = "default:permafrost",
966+
depth_filler = 1,
967+
node_riverbed = "default:gravel",
968+
depth_riverbed = 2,
969+
y_max = 48,
956970
y_min = 2,
957971
heat_point = 0,
958972
humidity_point = 40,
@@ -2028,6 +2042,52 @@ function default.register_decorations()
20282042
},
20292043
})
20302044

2045+
-- Tundra moss
2046+
2047+
minetest.register_decoration({
2048+
deco_type = "simple",
2049+
place_on = {"default:permafrost_with_stones"},
2050+
sidelen = 4,
2051+
noise_params = {
2052+
offset = -0.8,
2053+
scale = 2.0,
2054+
spread = {x = 100, y = 100, z = 100},
2055+
seed = 53995,
2056+
octaves = 3,
2057+
persist = 1.0
2058+
},
2059+
biomes = {"tundra"},
2060+
y_max = 48,
2061+
y_min = 2,
2062+
decoration = "default:permafrost_with_moss",
2063+
place_offset_y = -1,
2064+
flags = "force_placement",
2065+
})
2066+
2067+
-- Tundra patchy snow
2068+
2069+
minetest.register_decoration({
2070+
deco_type = "simple",
2071+
place_on = {
2072+
"default:permafrost_with_moss",
2073+
"default:permafrost_with_stones",
2074+
"default:stone"
2075+
},
2076+
sidelen = 4,
2077+
noise_params = {
2078+
offset = 0,
2079+
scale = 1.0,
2080+
spread = {x = 100, y = 100, z = 100},
2081+
seed = 172555,
2082+
octaves = 3,
2083+
persist = 1.0
2084+
},
2085+
biomes = {"tundra"},
2086+
y_max = 48,
2087+
y_min = 2,
2088+
decoration = "default:snow",
2089+
})
2090+
20312091
-- Coral reef
20322092

20332093
minetest.register_decoration({

Diff for: ‎mods/default/nodes.lua

+32-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ default:dirt_with_snow
5353
default:dirt_with_rainforest_litter
5454
default:dirt_with_coniferous_litter
5555
56+
default:permafrost
57+
default:permafrost_with_stones
58+
default:permafrost_with_moss
59+
5660
default:sand
5761
default:desert_sand
5862
default:silver_sand
@@ -63,7 +67,6 @@ default:clay
6367
6468
default:snow
6569
default:snowblock
66-
6770
default:ice
6871
default:cave_ice
6972
@@ -490,6 +493,34 @@ minetest.register_node("default:dirt_with_coniferous_litter", {
490493
}),
491494
})
492495

496+
minetest.register_node("default:permafrost", {
497+
description = "Permafrost",
498+
tiles = {"default_permafrost.png"},
499+
groups = {cracky = 3},
500+
sounds = default.node_sound_dirt_defaults(),
501+
})
502+
503+
minetest.register_node("default:permafrost_with_stones", {
504+
description = "Permafrost with Stones",
505+
tiles = {"default_permafrost.png^default_stones.png",
506+
"default_permafrost.png"},
507+
groups = {cracky = 3},
508+
drop = "default:permafrost",
509+
sounds = default.node_sound_gravel_defaults(),
510+
})
511+
512+
minetest.register_node("default:permafrost_with_moss", {
513+
description = "Permafrost with Moss",
514+
tiles = {"default_moss.png", "default_permafrost.png",
515+
{name = "default_permafrost.png^default_moss_side.png",
516+
tileable_vertical = false}},
517+
groups = {cracky = 3},
518+
drop = "default:permafrost",
519+
sounds = default.node_sound_dirt_defaults({
520+
footstep = {name = "default_grass_footstep", gain = 0.25},
521+
}),
522+
})
523+
493524
minetest.register_node("default:sand", {
494525
description = "Sand",
495526
tiles = {"default_sand.png"},

Diff for: ‎mods/default/textures/default_moss.png

485 Bytes
Loading

Diff for: ‎mods/default/textures/default_moss_side.png

328 Bytes
Loading

Diff for: ‎mods/default/textures/default_permafrost.png

283 Bytes
Loading

Diff for: ‎mods/default/textures/default_stones.png

411 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.