diff --git a/depends.txt b/depends.txt index 77e8d97..25f25cc 100644 --- a/depends.txt +++ b/depends.txt @@ -1 +1,2 @@ intllib? +doc_items? diff --git a/init.lua b/init.lua index d9a9bc6..40d5936 100644 --- a/init.lua +++ b/init.lua @@ -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 diff --git a/locale/de.txt b/locale/de.txt index 69e5d63..e9fb9fb 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -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. diff --git a/locale/template.txt b/locale/template.txt index 7943f42..c654e55 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -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.