summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua9
1 files changed, 9 insertions, 0 deletions
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