From ace7ec953ea492c7c641dfeb2ce22985956fb7db Mon Sep 17 00:00:00 2001 From: Paramat Date: Fri, 4 May 2018 23:05:47 +0100 Subject: [PATCH] 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. --- mods/default/README.txt | 4 ++ mods/default/mapgen.lua | 64 ++++++++++++++++++- mods/default/nodes.lua | 33 +++++++++- mods/default/textures/default_moss.png | Bin 0 -> 485 bytes mods/default/textures/default_moss_side.png | Bin 0 -> 328 bytes mods/default/textures/default_permafrost.png | Bin 0 -> 283 bytes mods/default/textures/default_stones.png | Bin 0 -> 411 bytes 7 files changed, 98 insertions(+), 3 deletions(-) create mode 100644 mods/default/textures/default_moss.png create mode 100644 mods/default/textures/default_moss_side.png create mode 100644 mods/default/textures/default_permafrost.png create mode 100644 mods/default/textures/default_stones.png diff --git a/mods/default/README.txt b/mods/default/README.txt index 1c5e9e35..bb7523ef 100644 --- a/mods/default/README.txt +++ b/mods/default/README.txt @@ -114,6 +114,10 @@ paramat (CC BY-SA 3.0): default_bookshelf_slot.png -- Derived from a texture by Gambit (CC-BY-SA 3.0) default_marram_grass_*.png -- Derived from textures by TumeniNodes (CC-BY-SA 3.0) default_emergent_jungle_sapling.png + default_permafrost.png -- Derived from a texture by Neuromancer (CC BY-SA 3.0) + default_stones.png -- Derived from a texture by sofar (CC0 1.0) + default_moss.png + default_moss_side.png TumeniNodes (CC BY-SA 3.0): default_desert_cobble.png -- Derived from a texture by brunob.santos (CC BY-SA 3.0) diff --git a/mods/default/mapgen.lua b/mods/default/mapgen.lua index c84e2076..8b1c9574 100644 --- a/mods/default/mapgen.lua +++ b/mods/default/mapgen.lua @@ -948,11 +948,25 @@ function default.register_biomes(upper_limit) -- Tundra minetest.register_biome({ - name = "tundra", - node_dust = "default:snowblock", + name = "tundra_highland", + node_dust = "default:snow", node_riverbed = "default:gravel", depth_riverbed = 2, y_max = upper_limit, + y_min = 49, + heat_point = 0, + humidity_point = 40, + }) + + minetest.register_biome({ + name = "tundra", + node_top = "default:permafrost_with_stones", + depth_top = 1, + node_filler = "default:permafrost", + depth_filler = 1, + node_riverbed = "default:gravel", + depth_riverbed = 2, + y_max = 48, y_min = 2, heat_point = 0, humidity_point = 40, @@ -2028,6 +2042,52 @@ function default.register_decorations() }, }) + -- Tundra moss + + minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:permafrost_with_stones"}, + sidelen = 4, + noise_params = { + offset = -0.8, + scale = 2.0, + spread = {x = 100, y = 100, z = 100}, + seed = 53995, + octaves = 3, + persist = 1.0 + }, + biomes = {"tundra"}, + y_max = 48, + y_min = 2, + decoration = "default:permafrost_with_moss", + place_offset_y = -1, + flags = "force_placement", + }) + + -- Tundra patchy snow + + minetest.register_decoration({ + deco_type = "simple", + place_on = { + "default:permafrost_with_moss", + "default:permafrost_with_stones", + "default:stone" + }, + sidelen = 4, + noise_params = { + offset = 0, + scale = 1.0, + spread = {x = 100, y = 100, z = 100}, + seed = 172555, + octaves = 3, + persist = 1.0 + }, + biomes = {"tundra"}, + y_max = 48, + y_min = 2, + decoration = "default:snow", + }) + -- Coral reef minetest.register_decoration({ diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index 77bccb28..7d65f300 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -53,6 +53,10 @@ default:dirt_with_snow default:dirt_with_rainforest_litter default:dirt_with_coniferous_litter +default:permafrost +default:permafrost_with_stones +default:permafrost_with_moss + default:sand default:desert_sand default:silver_sand @@ -63,7 +67,6 @@ default:clay default:snow default:snowblock - default:ice default:cave_ice @@ -490,6 +493,34 @@ minetest.register_node("default:dirt_with_coniferous_litter", { }), }) +minetest.register_node("default:permafrost", { + description = "Permafrost", + tiles = {"default_permafrost.png"}, + groups = {cracky = 3}, + sounds = default.node_sound_dirt_defaults(), +}) + +minetest.register_node("default:permafrost_with_stones", { + description = "Permafrost with Stones", + tiles = {"default_permafrost.png^default_stones.png", + "default_permafrost.png"}, + groups = {cracky = 3}, + drop = "default:permafrost", + sounds = default.node_sound_gravel_defaults(), +}) + +minetest.register_node("default:permafrost_with_moss", { + description = "Permafrost with Moss", + tiles = {"default_moss.png", "default_permafrost.png", + {name = "default_permafrost.png^default_moss_side.png", + tileable_vertical = false}}, + groups = {cracky = 3}, + drop = "default:permafrost", + sounds = default.node_sound_dirt_defaults({ + footstep = {name = "default_grass_footstep", gain = 0.25}, + }), +}) + minetest.register_node("default:sand", { description = "Sand", tiles = {"default_sand.png"}, diff --git a/mods/default/textures/default_moss.png b/mods/default/textures/default_moss.png new file mode 100644 index 0000000000000000000000000000000000000000..479038e9c2107b3d4dff4f80cb527308927bd516 GIT binary patch literal 485 zcmV+YDO!FhTz@KEfh%5u zD`15zVTUbZh%IA^E@X=?WsNUqkT7YHFlv)9Ym_l;mN9LYGH;qQaGW!7oiuWvHFKaf zbfPwQr8jt{H+iTydZ{>jt2lhDIexD?f3Z7&vO9sZJcPGBhPpn7yFQ7&KZ?IVi@-sR z!9VRhY+Do5)+8%3zR3(=R&%oD*}vYdT?MylBsB1E;Yj3wH@3t|Ba|}{GJu1?D>MD z4k1)e(~c)Ad1^paG{QwuF7B&Nb55ZuDQABFnAV?PPQwhYZj>y>(hke4W8z>P)?Twc z67Ce^_p^ikZ<#y!fjLtuBC!J7cQ)Z-SEk862#|(Qw>rY;v$|VWhdu@(n77%+-83~i b%R~Pk(t;bo&@^<}00000NkvXXu0mjfZ_~(a literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_moss_side.png b/mods/default/textures/default_moss_side.png new file mode 100644 index 0000000000000000000000000000000000000000..4a20345e6b72152983bd907641ef72e0dc207251 GIT binary patch literal 328 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbK}SAb85D?=cIbF92uqJn#}f_J8} zPnNQOu1a8mYEYqCaIsownR-}-Mr4gCD->4DNL`27ZSo=&6)7&Z>H!lONvr|2uQ| XCXO(bPjjSz_A+?7`njxgN@xNAkQI4q literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_permafrost.png b/mods/default/textures/default_permafrost.png new file mode 100644 index 0000000000000000000000000000000000000000..f1edbab44e66a521cfe54feee3af6e95254f60fc GIT binary patch literal 283 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!aez;VD?3mD8-oxRqbN6vC?C57 zAG@R=w~Pp%yttr}q=>4FxQ4u>mXeIFs=R@QlA)%uwXtr2t@;(9_Qjqqjv*44dHWrO zSQI&!BPCTBMgIT4_4Lrf%Tq-zJ+07>)6ffazoXQ}5!Vvw_|0$Ds=4X^qHnXU$QM{6 za&Rv literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_stones.png b/mods/default/textures/default_stones.png new file mode 100644 index 0000000000000000000000000000000000000000..09c5ee1481b2f9a4ec709f7c82f1005576b6c2ed GIT binary patch literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbMfmH?j+S0Eh`5fK9du|NFJr7nHgCb8CjWGAds7#ot=}D zlM4bx1qB7gg+(PGP+C$_US3`a1T`SgPzwU}wYAN4b#?Xi&2U{n8{^==EtMB*U`=VxP%W84g>ZZX= z)pbW|b8C+@cnLk3S~&9$&!f`56{l=E96Ez-PTkm~top~zHK}X=o4_Z<$Jd7Fni#(o z)Nc`+7QHW~KdsLA7%%tzjygvEl25OEgU($&d+UR>`mJ4F;hl$HytF^aKWEOWc^hYB b|7H`I&FM5f;p`=#0~tJB{an^LB{Ts5(Mhai literal 0 HcmV?d00001