summaryrefslogtreecommitdiff
path: root/helptexts.lua
diff options
context:
space:
mode:
Diffstat (limited to 'helptexts.lua')
-rw-r--r--helptexts.lua14
1 files changed, 11 insertions, 3 deletions
diff --git a/helptexts.lua b/helptexts.lua
index 4e298c2..7c80a6e 100644
--- a/helptexts.lua
+++ b/helptexts.lua
@@ -437,7 +437,7 @@ local export_usagehelp = {
["bucket:bucket_river_water"] = S("Rightclick on any block to empty the bucket and put a river water source on this spot."),
["bucket:bucket_lava"] = S("Choose a place where you want to empty the bucket, then get in a safe spot somewhere above it. Be prepared to run away when something goes wrong as the lava will soon start to flow after placing. To empty the bucket (which places a lava source), rightclick on your chosen place."),
- ["bones:bones"] = S("Point to the bones to see to whom they belong to. If nothing is displayed, they belong to nobody and are empty; they behave any other block in this case. Otherwise, rightclick on the bones to access the inventory, punch it to obtain all items and the bones immediately, or at least as many items as you can carry. ")..bonesstring..bonesstring2..S("It is only possible to take from this inventory, nothing can be stored into it."),
+ ["bones:bones"] = S("Point to the bones to see to whom they belong to. If nothing is displayed, they belong to nobody and are empty; they behave any other block in this case. Otherwise, rightclick on the bones to access the inventory, punch it to obtain all items and the bones immediately, or at least as many items as you can carry. ") .. bonesstring .. bonesstring2 .. S("It is only possible to take from this inventory, nothing can be stored into it."),
["tnt:gunpowder"] = S("Place gunpowder on the ground to create gunpowder trails. Punch it with a torch to light the gunpowder. Lit gunpowder will ignite all neighbor (including diagonals) gunpowder tiles and TNTs."),
["tnt:tnt"] = S("Place the TNT on the ground and punch it with a torch to light it and quickly get in a safe distance before it explodes. Burning gunpowder trails and blocks which set nearby blocks on fire will also ignite the TNT."),
@@ -474,5 +474,13 @@ local export_generation = {
["default:nyancat_rainbow"] = S("These blocks are extremely rare. They only appear behind a Nyan Cat, which itself can appear randomly anywhere."),
}
-doc.sub.items.set_items_longdesc(export_longdesc)
-doc.sub.items.set_items_usagehelp(export_usagehelp)
+for itemstring, longdesc in pairs(export_longdesc) do
+ if minetest.registered_items[itemstring] ~= nil then
+ minetest.override_item(itemstring, { x_doc_items_longdesc = longdesc } )
+ end
+end
+for itemstring, usagehelp in pairs(export_usagehelp) do
+ if minetest.registered_items[itemstring] ~= nil then
+ minetest.override_item(itemstring, { x_doc_items_usagehelp = usagehelp} )
+ end
+end