Add doc_items support

master
Wuzzy 2016-08-05 17:37:13 +02:00
parent 2995843f73
commit d33d3568bc
4 changed files with 11 additions and 1 deletions

View File

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

View File

@ -33,7 +33,7 @@ end
minetest.register_node("origin:origin",{
description = S("The Origin"),
is_ground_content = true,
groups = { not_in_creative_inventory = 1, immortal = 1 },
groups = { not_in_creative_inventory = 1, in_doc = 1, immortal = 1 },
tiles = {"origin_origin.png"},
sounds = { footstep = "origin_origin_footstep" },
is_ground_content = false,
@ -68,3 +68,10 @@ 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

View File

@ -1 +1,2 @@
The Origin = Der Ursprung
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. = Der Ursprung ist der Startblock dieser Welt. Auf dem Ursprung kommen die frühesten Besucher dieser Welt an und es ist der erste Block, von dem aus alle anderen Blöcke angebaut werden können, damit Bauarbeiter ihre architektonischen Meisterleistungen in einer Welt, die ansonsten (üblicherweise) leer wäre, vollbringen können.

View File

@ -1 +1,2 @@
The Origin
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.