summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua16
1 files changed, 14 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 76de1f7..d29c0ab 100644
--- a/init.lua
+++ b/init.lua
@@ -411,12 +411,24 @@ doc.new_category("craftitems", {
end
})
-
-
+doc.sub.minetest_game = {}
+doc.sub.minetest_game.help = {}
+doc.sub.minetest_game.help.longdesc = {}
+doc.sub.minetest_game.help.usagehelp = {}
+-- Gather help texts
+function doc.sub.minetest_game.add_helptexts(longdesc, usagehelp)
+ for k,v in pairs(longdesc) do
+ doc.sub.minetest_game.help.longdesc[k] = v
+ end
+ for k,v in pairs(usagehelp) do
+ doc.sub.minetest_game.help.usagehelp[k] = v
+ end
+end
dofile(minetest.get_modpath("doc_minetest_game") .. "/helptexts.lua")
local function gather_descs()
+ local help = doc.sub.minetest_game.help
doc.new_entry("nodes", "air", {
name = "Air",
data = {