summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-23 14:54:53 +0100
committerWuzzy <almikes@aol.com>2016-12-23 14:54:53 +0100
commit927efcfe045a3f677ea0f041b5f907c50026d2fc (patch)
tree517bc3d07b234a78bf5055620c161ac3870a50bb /init.lua
parentccb158a663e880ac0dd19439be160ed3193f1e78 (diff)
Add spreading_dirt_type factoid
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