summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2016-08-05 04:15:06 +0200
committerWuzzy <almikes@aol.com>2016-08-05 04:15:06 +0200
commitb534fc83e77466afed8e36c9c1682fc8c328895f (patch)
tree95f5f123a4157564c7fb586abd80ef87ce31577e /init.lua
parent92305e409854fddd884b7fa4656b197cf5b77f30 (diff)
Special punching
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua22
1 files changed, 12 insertions, 10 deletions
diff --git a/init.lua b/init.lua
index 9421e8f..629ace5 100644
--- a/init.lua
+++ b/init.lua
@@ -208,12 +208,13 @@ doc.new_category("nodes", {
if data.def.liquids_pointable == true then
formstring = formstring .. "This block points to liquids.\n"
end
+ if data.def.on_use ~= nil then
+ formstring = formstring .. "Punches with this block don't work as usual\\; melee combat and mining are either not possible or work differently.\n"
+ end
formstring = formstring .. "\n"
- formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities)
-
- formstring = formstring .. "\n"
+ formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) .. "\n"
formstring = formstring .. "Collidable: "..yesno(data.def.walkable).. "\n"
local liquid
@@ -549,12 +550,13 @@ doc.new_category("tools", {
if data.def.liquids_pointable == true then
formstring = formstring .. "This tool points to liquids.\n"
end
+ if data.def.on_use ~= nil then
+ formstring = formstring .. "Punches with this tool don't work as usual\\; melee combat and mining are either not possible or work differently.\n"
+ end
formstring = formstring .. "\n"
- formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities)
-
- formstring = formstring .. "\n"
+ formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) .. "\n"
-- Show other “exposable” groups
local gstring, gcount = groups_to_string(data.def.groups, miscgroups)
@@ -601,12 +603,12 @@ doc.new_category("craftitems", {
if data.def.liquids_pointable == true then
formstring = formstring .. "This item points to liquids.\n"
end
-
+ if data.def.on_use ~= nil then
+ formstring = formstring .. "Punches with this item don't work as usual\\; melee combat and mining are either not possible or work differently.\n"
+ end
formstring = formstring .. "\n"
- formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities)
-
- formstring = formstring .. "\n"
+ formstring = formstring .. toolcaps_to_text(data.def.tool_capabilities) .. "\n"
-- Show other “exposable” groups
local gstring, gcount = groups_to_string(data.def.groups, miscgroups)