mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-02 07:43:48 +01:00
Add hardness to help entries
parent
564c94e18e
commit
0abf913197
@ -76,3 +76,14 @@ doc.sub.items.register_factoid(nil, "use", function(itemstring, def)
|
|||||||
end
|
end
|
||||||
return ""
|
return ""
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
-- Hardness
|
||||||
|
doc.sub.items.register_factoid("nodes", "mining", function(itemstring, def)
|
||||||
|
local hardness = def._mcl_hardness
|
||||||
|
if not hardness then
|
||||||
|
hardness = 0
|
||||||
|
end
|
||||||
|
return string.format("Hardness: %.2f", hardness)
|
||||||
|
end)
|
||||||
|
|
||||||
|
-- TODO: Blast resistance (omitted for now because explosions ignore hardness)
|
||||||
|
Loading…
Reference in New Issue
Block a user