diff options
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 |