Use new doc_items desc format

This commit is contained in:
Wuzzy 2016-11-02 01:23:24 +01:00
parent 1469f83d4b
commit 002d974284

View File

@ -30,6 +30,8 @@ ltool.default_edit_fields = {
--[[ This registers the sapling for planting the trees ]] --[[ This registers the sapling for planting the trees ]]
minetest.register_node("ltool:sapling", { minetest.register_node("ltool:sapling", {
description = "Custom L-system tree sapling", description = "Custom L-system tree sapling",
x_doc_items_longdesc = "This artificial sapling does not come from nature and contains the genome of a genetically engineered L-system tree. Every sapling of this kind is unique. Who knows what might grow from it when you plant it?",
x_doc_items_usagehelp = "Place the sapling on any floor and wait 5 seconds for the tree to appear. To create your own saplings, you need to have the “lplant” privilege and pick a tree from the L-System Tree Utility (accessed with the server command “treeform”).",
stack_max = 1, stack_max = 1,
drawtype = "plantlike", drawtype = "plantlike",
tiles = { "ltool_sapling.png" }, tiles = { "ltool_sapling.png" },
@ -1273,11 +1275,3 @@ if minetest.get_modpath("unified_inventory") ~= nil then
}) })
end end
if minetest.get_modpath("doc_items") ~= nil then
doc.sub.items.set_items_longdesc({
["ltool:sapling"] = "This artificial sapling does not come from nature and contains the genome of a genetically engineered L-system tree. Every sapling of this kind is unique. Who knows what might grow from it when you plant it?",
})
doc.sub.items.set_items_usagehelp({
["ltool:sapling"] = "Place the sapling on any floor and wait 5 seconds for the tree to appear. To create your own saplings, you need to have the “lplant” privilege and pick a tree from the L-System Tree Utility (accessed with the server command “treeform”)."
})
end