Use new doc_items interface

master
Wuzzy 2016-10-31 02:16:19 +01:00
parent 5f142c3777
commit 7c84d89b27
2 changed files with 1 additions and 8 deletions

View File

@ -1,2 +1 @@
intllib?
doc_items?

View File

@ -32,6 +32,7 @@ end
minetest.register_node("origin:origin",{
description = S("The Origin"),
x_doc_items_longdesc = S("The Origin is the starting block of this world. On the Origin the earliest visitors of this world arrive and it is the first block at which all other blocks can be built to, so that builders can build their architectural masterpieces in a world which would be (usually) empty otherwise."),
groups = { not_in_creative_inventory = 1, in_doc = 1, immortal = 1 },
diggable = false,
tiles = {"origin_origin.png"},
@ -69,10 +70,3 @@ minetest.register_on_generated(function(minp, maxp, seed)
end
end
end)
-- Add item help
if minetest.get_modpath("doc_items") ~= nil then
doc.sub.items.set_items_longdesc({
["origin:origin"] = S("The Origin is the starting block of this world. On the Origin the earliest visitors of this world arrive and it is the first block at which all other blocks can be built to, so that builders can build their architectural masterpieces in a world which would be (usually) empty otherwise."),
})
end