Use new doc_items desc format
This commit is contained in:
parent
1469f83d4b
commit
002d974284
10
init.lua
10
init.lua
@ -30,6 +30,8 @@ ltool.default_edit_fields = {
|
||||
--[[ This registers the sapling for planting the trees ]]
|
||||
minetest.register_node("ltool: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,
|
||||
drawtype = "plantlike",
|
||||
tiles = { "ltool_sapling.png" },
|
||||
@ -1273,11 +1275,3 @@ if minetest.get_modpath("unified_inventory") ~= nil then
|
||||
})
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user