Update all help mods

This commit is contained in:
Wuzzy 2019-03-18 13:20:17 +01:00
parent c3968209f6
commit 2237aae6c3
29 changed files with 876 additions and 525 deletions

View file

@ -1,5 +0,0 @@
doc
doc_items
doc_basics?
mcl_core?
intllib?

View file

@ -1 +0,0 @@
Adds a tool which shows help entries about almost anything which it punches.

View file

@ -1,10 +1,4 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
local S = minetest.get_translator("doc_identifier")
local doc_identifier = {}
@ -28,7 +22,7 @@ doc_identifier.identify = function(itemstack, user, pointed_thing)
elseif itype == "error_node" then
message = S("No help entry for this block could be found.")
elseif itype == "error_unknown" then
vsize = vsize + 3
vsize = vsize + 2
local mod
if param ~= nil then
local colon = string.find(param, ":")
@ -36,20 +30,23 @@ doc_identifier.identify = function(itemstack, user, pointed_thing)
mod = string.sub(param,1,colon-1)
end
end
message = S("Error: This node, item or object is undefined. This is always an error.\nThis can happen for the following reasons:\n• The mod which is required for it is not enabled\n• The author of the game or a mod has made a mistake")
message = S("Error: This node, item or object is undefined. This is always an error.").."\n"..
S("This can happen for the following reasons:").."\n"..
S("• The mod which is required for it is not enabled").."\n"..
S("• The author of the game or a mod has made a mistake")
message = message .. "\n\n"
if mod ~= nil then
if minetest.get_modpath(mod) ~= nil then
message = message .. string.format(S("It appears to originate from the mod “%s”, which is enabled."), mod)
message = message .. S("It appears to originate from the mod “@1”, which is enabled.", mod)
message = message .. "\n"
else
message = message .. string.format(S("It appears to originate from the mod “%s”, which is not enabled!"), mod)
message = message .. S("It appears to originate from the mod “@1”, which is not enabled!", mod)
message = message .. "\n"
end
end
if param ~= nil then
message = message .. string.format(S("Its identifier is “%s”."), param)
message = message .. S("Its identifier is “@1”.", param)
end
elseif itype == "error_ignore" then
message = S("This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.")
@ -61,9 +58,9 @@ doc_identifier.identify = function(itemstack, user, pointed_thing)
minetest.show_formspec(
username,
"doc_identifier:error_missing_item_info",
"size[12,"..vsize..";]" ..
"label[0,0.2;"..minetest.formspec_escape(message).."]" ..
"button_exit[4.5,"..(-0.5+vsize)..";3,1;okay;"..minetest.formspec_escape(S("OK")).."]"
"size[10,"..vsize..";]" ..
"textarea[0.5,0.2;10,"..(vsize-0.2)..";;;"..minetest.formspec_escape(message).."]" ..
"button_exit[3.75,"..(-0.5+vsize)..";3,1;okay;"..minetest.formspec_escape(S("OK")).."]"
)
end
if pointed_thing.type == "node" then
@ -165,11 +162,10 @@ end
minetest.register_tool("doc_identifier:identifier_solid", {
description = S("Lookup Tool"),
_doc_items_longdesc = S("This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used."),
_doc_items_usagehelp = S("Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid."),
_doc_items_usagehelp = S("Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by using. In liquid mode, this tool points to liquids as well while in solid mode this is not the case."),
_doc_items_hidden = false,
tool_capabilities = {},
range = 10,
groups = { disable_repair = 1 },
wield_image = "doc_identifier_identifier.png",
inventory_image = "doc_identifier_identifier.png",
liquids_pointable = false,
@ -182,7 +178,7 @@ minetest.register_tool("doc_identifier:identifier_liquid", {
_doc_items_create_entry = false,
tool_capabilities = {},
range = 10,
groups = { not_in_creative_inventory = 1, not_in_craft_guide = 1, disable_repair=1 },
groups = { not_in_creative_inventory = 1, not_in_craft_guide = 1, disable_repair = 1 },
wield_image = "doc_identifier_identifier_liquid.png",
inventory_image = "doc_identifier_identifier_liquid.png",
liquids_pointable = true,
@ -191,7 +187,6 @@ minetest.register_tool("doc_identifier:identifier_liquid", {
on_secondary_use = doc_identifier.solid_mode,
})
--- TODO: These crafting recipes are temporary. Add a different way to obtain the lookup tool
minetest.register_craft({
output = "doc_identifier:identifier_solid",
recipe = { {"group:stick", "group:stick" },

View file

@ -1,13 +0,0 @@
Error: This node, item or object is undefined. This is always an error.\nThis can happen for the following reasons:\n• The mod which is required for it is not enabled\n• The author of the game or a mod has made a mistake = Fehler: Dieser Node, Gegenstand oder dieses Objekt ist nicht definiert.\nDas ist immer ein Fehler.\nDies kann aus folgenden Gründen passieren:\n• Die Mod, die dafür benötigt wird, ist nicht aktiv\n• Der Spiel-Autor oder ein Mod-Autor machte einen Fehler
It appears to originate from the mod “%s”, which is enabled. = Es scheint von der Mod »%s« zu stammen. Sie ist aktiv.
It appears to originate from the mod “%s”, which is not enabled! = Es scheint von der Mod »%s« zu stammen. Sie ist nicht aktiv!
Its identifier is “%s”. = Der Identifkator ist »%s«.
Lookup Tool = Nachschlagewerkzeug
No help entry for this block could be found. = Für diesen Block konnte kein Hilfseintrag gefunden werden.
No help entry for this item could be found. = Für diesen Gegenstand konnte kein Hilfseintrag gefunden werden.
No help entry for this object could be found. = Für dieses Objekt konnte kein Hilfseintrag gefunden werden.
OK = OK
Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid. = Schlagen Sie einen beliebigen Block, Gegenstand oder irgendwas, worüber Sie mehr erfahren wollen. Das wird den passenden Hilfseintrag öffnen. Das Werkzeug hat zwei Modi, welcher mit einem Rechtsklick gewechselt werden kann. Im Flüssigmodus (blau) zeigt das Werkzeug auch auf Flüssigkeiten. Im Festmodus (rot) ist das nicht der Fall. Der Flüssigmodis ist notwendig, wenn Sie eine Flüssigkeit identifizieren wollen.
This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds. = Dieser Block kann nicht identifiziert werden, weil sich die Welt an dieser Stelle noch nicht materialisiert hat. Versuch es in ein paar Sekunden erneut.
This is a player. = Dies ist ein Spieler.
This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used. = Dieser nützliche kleine Helfer kann benutzt werden, um schnell etwas über die nähere Umgebung zu erfahren. Er identifiziert und analysiert Blöcke, Gegenstände und andere Dinge und zeigt ausführliche Informationen über all das, worauf man ihn anwendet.

View file

@ -0,0 +1,17 @@
# textdomain:doc_identifier
Error: This node, item or object is undefined. This is always an error.=Fehler: Dieser Node, Gegenstand oder dieses Objekt ist nicht definiert. Das ist immer ein Fehler.
This can happen for the following reasons:=Dies kann aus folgenden Gründen passieren:
• The mod which is required for it is not enabled=• Die Mod, die dafür benötigt wird, ist nicht aktiv
• The author of the game or a mod has made a mistake=• Der Spiel-Autor oder ein Mod-Autor machte einen Fehler
It appears to originate from the mod “@1”, which is enabled.=Es scheint von der Mod „@1“ zu stammen. Sie ist aktiv.
It appears to originate from the mod “@1”, which is not enabled!=Es scheint von der Mod „@1“ zu stammen. Sie ist nicht aktiv!
Its identifier is “@1”.=Der Identifikator ist „@1“.
Lookup Tool=Nachschlagewerkzeug
No help entry for this block could be found.=Für diesen Block konnte kein Hilfseintrag gefunden werden.
No help entry for this item could be found.=Für diesen Gegenstand konnte kein Hilfseintrag gefunden werden.
No help entry for this object could be found.=Für dieses Objekt konnte kein Hilfseintrag gefunden werden.
OK=OK
Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by using. In liquid mode, this tool points to liquids as well while in solid mode this is not the case.=Schlagen Sie einen beliebigen Block, Gegenstand oder irgendwas, worüber Sie mehr erfahren wollen. Das wird den passenden Hilfseintrag öffnen. Das Werkzeug hat zwei Modi, welcher mit Benutzen gewechselt werden kann. Im Flüssigmodus zeigt das Werkzeug auch auf Flüssigkeiten. Im Festmodus ist das nicht der Fall.
This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=Dieser Block kann nicht identifiziert werden, weil sich die Welt an dieser Stelle noch nicht materialisiert hat. Versuchen Sie es in ein paar Sekunden erneut.
This is a player.=Dies ist ein Spieler.
This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=Dieser nützliche kleine Helfer kann benutzt werden, um schnell etwas über die nähere Umgebung zu erfahren. Er identifiziert und analysiert Blöcke, Gegenstände und andere Dinge und zeigt ausführliche Informationen über all das, worauf man ihn anwendet.

View file

@ -0,0 +1,14 @@
# textdomain:doc_identifier
Error: This node, item or object is undefined. This is always an error.\\nThis can happen for the following reasons:\\n• The mod which is required for it is not enabled\\n• The author of the game or a mod has made a mistake=Erro: Esse bloco, item ou objeto é indefinido. Isso é sempre um erro.\\n Isso pode ter acontecido pelas seguintes rasões:\\n• O mod o qual ele precisa não está habilitado\\n• O autor do jogo ou mod comoteu um erro
It appears to originate from the mod “%s”, which is enabled.=Parece originar do mod “%s”, que está habilitado.
It appears to originate from the mod “%s”, which is not enabled!=Parece originar do mod “%s”, que não está habilitado.
Its identifier is “%s”.=Seu identificador é “%s”.
Lookup tool=Ferramenta de Pesquisa
No help entry for this block could be found.=Nenhuma entrada de ajuda para esse bloco pode ser encontrada.
No help entry for this item could be found.=Nenhuma entrada de ajuda para esse item pode ser encontrada.
No help entry for this object could be found.=Nenhuma entrada de ajuda para esse objeto pode ser encontrada.
OK=OK
Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid.=Soque qualquer bloco, item ou outra coisa sobre a qual você deseja aprender mais. Isso abrirá a entrada de ajuda apropriada. A ferramenta vem em dois modos que são alterados por um clique direito. No modo líquido (azul), esta ferramenta também aponta para líquidos, enquanto no modo sólido (vermelho) não é esse o caso. O modo líquido é necessário se você quiser identificar um líquido.
This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=Este bloco não pode ser identificado porque o mundo ainda não se materializou neste momento. Tente novamente em alguns segundos.
This is a player.=Este é um jogador.
This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=Esse pequeno e útil ajudante pode ser usado para aprender rapidamente sobre as coisas em sua volta. Ele identifica e analisa blocos, itens e outras coisas e mostra informações abrangentes sobre a coisa na qual é usado.

View file

@ -0,0 +1,14 @@
# textdomain:doc_identifier
Error: This node, item or object is undefined. This is always an error.\\nThis can happen for the following reasons:\\n• The mod which is required for it is not enabled\\n• The author of the game or a mod has made a mistake=Erro: Esse bloco, item ou objeto é indefinido. Isso é sempre um erro.\\n Isso pode ter acontecido pelas seguintes rasões:\\n• O mod o qual ele precisa não está habilitado\\n• O autor do jogo ou mod comoteu um erro
It appears to originate from the mod “%s”, which is enabled.=Parece originar do mod “%s”, que está habilitado.
It appears to originate from the mod “%s”, which is not enabled!=Parece originar do mod “%s”, que não está habilitado.
Its identifier is “%s”.=Seu identificador é “%s”.
Lookup tool=Ferramenta de Pesquisa
No help entry for this block could be found.=Nenhuma entrada de ajuda para esse bloco pode ser encontrada.
No help entry for this item could be found.=Nenhuma entrada de ajuda para esse item pode ser encontrada.
No help entry for this object could be found.=Nenhuma entrada de ajuda para esse objeto pode ser encontrada.
OK=OK
Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid.=Soque qualquer bloco, item ou outra coisa sobre a qual você deseja aprender mais. Isso abrirá a entrada de ajuda apropriada. A ferramenta vem em dois modos que são alterados por um clique direito. No modo líquido (azul), esta ferramenta também aponta para líquidos, enquanto no modo sólido (vermelho) não é esse o caso. O modo líquido é necessário se você quiser identificar um líquido.
This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=Este bloco não pode ser identificado porque o mundo ainda não se materializou neste momento. Tente novamente em alguns segundos.
This is a player.=Este é um jogador.
This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=Esse pequeno e útil ajudante pode ser usado para aprender rapidamente sobre as coisas em sua volta. Ele identifica e analisa blocos, itens e outras coisas e mostra informações abrangentes sobre a coisa na qual é usado.

View file

@ -1,13 +1,17 @@
Error: This node, item or object is undefined. This is always an error.\\nThis can happen for the following reasons:\\n• The mod which is required for it is not enabled\\n• The author of the game or a mod has made a mistake =
It appears to originate from the mod “%s”, which is enabled. =
It appears to originate from the mod “%s”, which is not enabled! =
Its identifier is “%s”. =
Lookup Tool =
No help entry for this block could be found. =
No help entry for this item could be found. =
No help entry for this object could be found. =
OK =
Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by a rightclick. In liquid mode (blue) this tool points to liquids as well while in solid mode (red) this is not the case. Liquid mode is required if you want to identify a liquid. =
This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds. =
This is a player. =
This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used. =
# textdomain:doc_identifier
Error: This node, item or object is undefined. This is always an error.=
This can happen for the following reasons:=
• The mod which is required for it is not enabled=
• The author of the game or a mod has made a mistake=
It appears to originate from the mod “@1”, which is enabled.=
It appears to originate from the mod “@1”, which is not enabled!=
Its identifier is “@1”.=
Lookup Tool=
No help entry for this block could be found.=
No help entry for this item could be found.=
No help entry for this object could be found.=
OK=
Punch any block, item or other thing about you wish to learn more about. This will open up the appropriate help entry. The tool comes in two modes which are changed by using. In liquid mode, this tool points to liquids as well while in solid mode this is not the case.=
This block cannot be identified because the world has not materialized at this point yet. Try again in a few seconds.=
This is a player.=
This useful little helper can be used to quickly learn more about about one's closer environment. It identifies and analyzes blocks, items and other things and it shows extensive information about the thing on which it is used.=

View file

@ -1 +1,4 @@
name = doc_identifier
depends = doc, doc_items
optional_depends = doc_basics, mcl_core
description = Adds a tool which shows help entries about almost anything which it punches.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 414 B

After

Width:  |  Height:  |  Size: 275 B

Before After
Before After