summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-12-13 02:47:44 +0100
committerWuzzy <almikes@aol.com>2016-12-13 02:47:44 +0100
commitac7f881f49f35ad6a705ff1d0fc264b39fd0de1a (patch)
tree38bd78e47d4df6d3a001e6507382c6b03c9d6a53 /init.lua
parent08e39375ec2531e38dc3b65c1efc362538a40a0b (diff)
Add support for cools_lava group
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index cda571c..4583add 100644
--- a/init.lua
+++ b/init.lua
@@ -150,6 +150,15 @@ end
-- Minetest Game Factoids
+-- Group cools_lava
+local function f_cools_lava(itemstring, def)
+ if def.groups.cools_lava ~= nil then
+ return S("This block turns adjacent lava sources into obsidian and adjacent flowing lava into stone.")
+ else
+ return ""
+ end
+end
+
-- Groups flammable, puts_out_fire
local function f_fire(itemstring, def)
local s = ""
@@ -224,6 +233,7 @@ local function f_key(itemstring, def)
end
doc.sub.items.register_factoid("nodes", "use", f_key)
+doc.sub.items.register_factoid("nodes", "groups", f_cools_lava)
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)