summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-08 04:14:40 +0200
committerWuzzy <almikes@aol.com>2016-08-08 04:14:40 +0200
commite06ff14e511fba65158f656094f78268c1a9c5a6 (patch)
treeda9f5453367a1c59f153eff693d3bac11eec76e0
parent754f620f91d6c6ebbd766cc880184979e10915a8 (diff)
Add item documentation
-rw-r--r--depends.txt1
-rw-r--r--init.lua37
2 files changed, 38 insertions, 0 deletions
diff --git a/depends.txt b/depends.txt
index d85a8da..45e66c4 100644
--- a/depends.txt
+++ b/depends.txt
@@ -4,3 +4,4 @@ vessels?
flowers?
farming?
mana?
+doc_items?
diff --git a/init.lua b/init.lua
index 743eb4c..9e27417 100644
--- a/init.lua
+++ b/init.lua
@@ -410,3 +410,40 @@ minetest.register_craft({
recipe = { "pep:jumpplus", "pep:jumpminus" }
})
+
+
+if minetest.get_modpath("doc_items") ~= nil then
+ doc.sub.items.set_items_longdesc({
+ ["pep:grav0"] = "When you drink this potion, gravity stops affecting you, as if you were in space. The effect lasts for 20 seconds.",
+ ["pep:gravreset"] = "Drinking it will stop all gravity effects you currently have.",
+ ["pep:breath"] = "Drinking it gives you breath underwater for 30 seconds.",
+ ["pep:jumpplus"] = "Drinking it will make you jump higher for 30 seconds.",
+ ["pep:jumpminus"] = "Drinking it will make you jump lower for 30 seconds.",
+ ["pep:jumpreset"] = "Drinking it will stop all jumping effects you may currently have.",
+ ["pep:speedplus"] = "Drinking it will make you run faster for 30 seconds.",
+ ["pep:speedminus"] = "Drinking it will make you walk slower for 30 seconds.",
+ ["pep:speedreset"] = "Drinking it will stop all speed effects you may currently have.",
+ ["pep:regen"] = "Drinking it makes you regnerate health. Every 2 seconds, you get 1 HP, 10 times in total.",
+ ["pep:regen2"] = "Drinking it makes you regnerate health quickly. Every second you get 2 HP, 10 times in total.",
+ ["pep:mole"] = "Drinking it will start an effect which will magically attempt to mine any two blocks in front of you horizontally, as if you were using a steel pickaxe on them. The effect lasts for 18 seconds.",
+ ["pep:manaregen"] = "Drinking it will increase your mana regeneration rate by 0.5 for 10 seconds.",
+ ["pep:manaregen2"] = "Drinking it will increase your mana regeneration rate by 1 for 10 seconds.",
+ })
+ local use = "Hold it in your hand, then leftclick to drink it."
+ doc.sub.items.set_items_usagehelp({
+ ["pep:grav0"] = use,
+ ["pep:gravreset"] = use,
+ ["pep:breath"] = use,
+ ["pep:jumpplus"] = use,
+ ["pep:jumpminus"] = use,
+ ["pep:jumpreset"] = use,
+ ["pep:speedplus"] = use,
+ ["pep:speedminus"] = use,
+ ["pep:speedreset"] = use,
+ ["pep:regen"] = use,
+ ["pep:regen2"] = use,
+ ["pep:mole"] = use,
+ ["pep:manaregen"] = use,
+ ["pep:manaregen2"] = use,
+ })
+end