summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helptexts.lua6
-rw-r--r--init.lua9
2 files changed, 12 insertions, 3 deletions
diff --git a/helptexts.lua b/helptexts.lua
index 2062139..f50539c 100644
--- a/helptexts.lua
+++ b/helptexts.lua
@@ -115,10 +115,10 @@ local export_longdesc = {
["default:stone_with_diamond"] = S("Diamonds are very rare and hard and can be found in clusters deep in the underground. They appear inside stone in clusters of about 4 blocks at a height of -128 or lower and are more common at a height of -256 or lower."),
["default:stonebrick"] = buildnode,
["default:desert_stonebrick"] = buildnode,
- ["default:dirt_with_grass"] = S("Very common on the surface, found in grasslands, forests and jungles. It is a resourceful block which supports the growth and spreading of many small plants and trees. Dirt with grass will turn its neighbor dirt blocks into dirt with grass, when they are in direct sunlight. If this block is in darkness, it will turn into naked dirt eventually. This block can be turned into soil for farming with a hoe. Dirt with grass turns into dirt with snow when a snow block is placed on top of it."),
+ ["default:dirt_with_grass"] = S("Very common on the surface, found in grasslands, forests and jungles. It is a resourceful block which supports the growth and spreading of many small plants and trees. This block can be turned into soil for farming with a hoe. Dirt with grass turns into dirt with snow when a snow block is placed on top of it."),
["default:dirt_with_grass_footsteps"] = S("A decorational variant of dirt with grass, it looks like someone has stepped on the grass. Unlike dirt with grass, it doesn't change on its own and doesn't spread its grass on other dirt blocks. This block can be turned into soil for farming with a hoe."),
- ["default:dirt_with_dry_grass"] = S("Common on the surface, found in savannahs. Dirt with dry grass will turn its neighbor dirt blocks into dirt with dry grass, when they are in direct sunlight. If this block is in darkness, it will turn into naked dirt eventually. This block can be turned into soil for farming with a hoe."),
- ["default:dirt_with_snow"] = S("Dirt with a snow cover, found in cold regions. This block will turn its neighbor dirt blocks into dirt with snow when they are exposed to sunlight. If this block is in darkness, it will turn into naked dirt eventually. This block can be turned into soil for farming with a hoe."),
+ ["default:dirt_with_dry_grass"] = S("Common on the surface, found in savannahs. This block can be turned into soil for farming with a hoe."),
+ ["default:dirt_with_snow"] = S("Dirt with a snow cover, found in cold regions. This block can be turned into soil for farming with a hoe."),
["default:snow"] = S("A thin layer of snow. When it it on top of dirt, the dirt will slowly turn into dirt with snow. When snow lands on dirt with grass, it immediately turns into dirt with snow."),
["default:snowblock"] = S("A very thick layer of snow, filling an entire block. Snow this thick can usually only be found in arctic regions. When this block is placed on top of dirt with grass, the dirt with grass turns into dirt with snow."),
["default:ice"] = S("Ice is found in arctic regions. It can appear either in huge glacier formations below snow blocks, or above water."),
diff --git a/init.lua b/init.lua
index 35f07b0..8b2e8dd 100644
--- a/init.lua
+++ b/init.lua
@@ -230,6 +230,14 @@ local function f_leafdecay(itemstring, def)
return formstring
end
+local function f_spreading_dirt_type(itemstring, def)
+ if def.groups.spreading_dirt_type then
+ return S("Under sunlight, this block slowly spreads its dirt cover towards nearby dirt blocks. In the shadows, this block eventually loses its dirt cover and turns into plain dirt.")
+ else
+ return ""
+ end
+end
+
--[[ Node defines skeleton key and key callbacks which probably implies that
it can be unlocked by keys ]]
local function f_key(itemstring, def)
@@ -246,6 +254,7 @@ doc.sub.items.register_factoid("nodes", "groups", f_fire)
doc.sub.items.register_factoid("nodes", "groups", f_flora)
doc.sub.items.register_factoid("nodes", "groups", f_leafdecay)
doc.sub.items.register_factoid("nodes", "groups", f_soil)
+doc.sub.items.register_factoid("nodes", "groups", f_spreading_dirt_type)
-- Add node aliases
for i=2,5 do