Rename item to “Looup tool”, change error texts

This commit is contained in:
Wuzzy 2016-08-10 01:06:17 +02:00
parent 175119ebee
commit 7b70caeebe

View File

@ -16,11 +16,11 @@ doc_identifier.identify = function(itemstack, user, pointed_thing)
local show_message = function(username, itype)
local message
if itype == "error_item" then
message = "The identification tool was unable to extract information from this item."
message = "No help entry for this item could be found."
elseif itype == "error_node" then
message = "The identification tool was unable to extract information from this block."
message = "No help entry for this block could be found."
elseif itype == "error_object" or itype == "error_unknown_thing" then
message = "The identification tool was unable to extract information from this thing."
message = "No help entry for this object could be found."
elseif itype == "player" then
message = "This is a player."
end
@ -96,7 +96,7 @@ function doc_identifier.liquid_mode(itemstack, user, pointed_thing)
end
minetest.register_tool("doc_identifier:identifier_solid", {
description = "Identification tool",
description = "Lookup tool",
tool_capabilities = {},
range = 10,
wield_image = "doc_identifier_identifier.png",
@ -107,7 +107,7 @@ minetest.register_tool("doc_identifier:identifier_solid", {
on_secondary_use = doc_identifier.liquid_mode,
})
minetest.register_tool("doc_identifier:identifier_liquid", {
description = "Identification tool",
description = "Lookup tool",
tool_capabilities = {},
range = 10,
groups = { not_in_creative_inventory = 1 },