diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -213,6 +213,17 @@ local function f_leafdecay(itemstring, def) return formstring end +--[[ Node defines skeleton key and key callbacks which probably implies that +it can be unlocked by keys ]] +local function f_key(itemstring, def) + if def.on_key_use and def.on_skeleton_key_use then + return S("This block is compatible with keys.") + else + return "" + end +end + +doc.sub.items.register_factoid("nodes", "use", f_key) 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) |