mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Add blast resistance factoid
This commit is contained in:
parent
daf89c0b52
commit
8418013c04
1 changed files with 7 additions and 0 deletions
|
@ -162,6 +162,13 @@ doc.sub.items.register_factoid("nodes", "mining", function(itemstring, def)
|
||||||
else
|
else
|
||||||
datastring = datastring .. string.format("Hardness: %.2f", hardness)
|
datastring = datastring .. string.format("Hardness: %.2f", hardness)
|
||||||
end
|
end
|
||||||
|
local blast = def._mcl_blast_resistance
|
||||||
|
if not blast then
|
||||||
|
blast = 0
|
||||||
|
end
|
||||||
|
if blast >= 1000 then
|
||||||
|
datastring = datastring .. "\n" .. "This block will not be destroyed by TNT explosions."
|
||||||
|
end
|
||||||
return datastring
|
return datastring
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue