Use new doc_items interface
parent
5f142c3777
commit
7c84d89b27
|
@ -1,2 +1 @@
|
||||||
intllib?
|
intllib?
|
||||||
doc_items?
|
|
||||||
|
|
8
init.lua
8
init.lua
|
@ -32,6 +32,7 @@ end
|
||||||
|
|
||||||
minetest.register_node("origin:origin",{
|
minetest.register_node("origin:origin",{
|
||||||
description = S("The 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 },
|
groups = { not_in_creative_inventory = 1, in_doc = 1, immortal = 1 },
|
||||||
diggable = false,
|
diggable = false,
|
||||||
tiles = {"origin_origin.png"},
|
tiles = {"origin_origin.png"},
|
||||||
|
@ -69,10 +70,3 @@ minetest.register_on_generated(function(minp, maxp, seed)
|
||||||
end
|
end
|
||||||
end
|
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
|
|
||||||
|
|
Loading…
Reference in New Issue