From 8418013c04c3e761422e259e1a0bc4c7f49425a5 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Jun 2017 22:20:27 +0200 Subject: [PATCH] Add blast resistance factoid --- mods/HELP/mcl_doc/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mods/HELP/mcl_doc/init.lua b/mods/HELP/mcl_doc/init.lua index 5f9e0e0ac9..d9326102ca 100644 --- a/mods/HELP/mcl_doc/init.lua +++ b/mods/HELP/mcl_doc/init.lua @@ -162,6 +162,13 @@ doc.sub.items.register_factoid("nodes", "mining", function(itemstring, def) else datastring = datastring .. string.format("Hardness: %.2f", hardness) 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 end)