diff options
author | Wuzzy <almikes@aol.com> | 2016-12-23 14:54:53 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-12-23 14:54:53 +0100 |
commit | 927efcfe045a3f677ea0f041b5f907c50026d2fc (patch) | |
tree | 517bc3d07b234a78bf5055620c161ac3870a50bb /init.lua | |
parent | ccb158a663e880ac0dd19439be160ed3193f1e78 (diff) |
Add spreading_dirt_type factoid
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |