1
0
Fork 0

Generalize some anvil attributes in help

This commit is contained in:
Wuzzy 2018-02-04 07:00:07 +01:00
parent 197afa664b
commit 4608a2f98d
2 changed files with 5 additions and 5 deletions

View File

@ -152,11 +152,11 @@ doc.sub.items.register_factoid(nil, "groups", function(itemstring, def)
end) end)
doc.sub.items.register_factoid("nodes", "gravity", function(itemstring, def) doc.sub.items.register_factoid("nodes", "gravity", function(itemstring, def)
if minetest.get_item_group(itemstring, "anvil") ~= 0 then local s = ""
return "This anvil is very heavy and damages and crushes (nearly) everything under its weight." if minetest.get_item_group(itemstring, "crush_after_fall") == 1 then
else s = s .. "This block crushes any block it falls into."
return ""
end end
return s
end) end)
-- Mining, hardness and all that -- Mining, hardness and all that

View File

@ -337,7 +337,7 @@ end
local anvildef0 = table.copy(anvildef) local anvildef0 = table.copy(anvildef)
anvildef0.description = "Anvil" anvildef0.description = "Anvil"
anvildef0._doc_items_longdesc = anvildef0._doc_items_longdesc =
[[The anvil allows you to repair tools and armor, and to give names to items. It has a limited durability, however. The anvil is able to fall and very heavy. Don't let it fall on your head! It crushes (nearly) everything under its weight and hurts everyone on its way down.]] [[The anvil allows you to repair tools and armor, and to give names to items. It has a limited durability, however. Don't let it fall on your head, it could be quite painful!]]
anvildef0._doc_items_usagehelp = anvildef0._doc_items_usagehelp =
"To use an anvil, rightclick it. An anvil has 2 input slots (on the left) and one output slot.".."\n".. "To use an anvil, rightclick it. An anvil has 2 input slots (on the left) and one output slot.".."\n"..
"To rename items, put an item stack in one of the item slots while keeping the other input slot empty. Type in a name, hit enter or “Set Name”, then take the renamed item from the output slot.".."\n".. "To rename items, put an item stack in one of the item slots while keeping the other input slot empty. Type in a name, hit enter or “Set Name”, then take the renamed item from the output slot.".."\n"..