From 7c45abfee3c8c9203857f7708f2163ee65f71774 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 1 Aug 2016 23:19:49 +0200 Subject: Improve light texts --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 5dba68f..704aa07 100644 --- a/init.lua +++ b/init.lua @@ -194,7 +194,6 @@ doc.new_category("nodes", { formstring = formstring .. "Renewable liquid: "..yesno(renew).. "\n" end formstring = formstring .. "Pointable: "..yesno(data.def.pointable).. "\n" - formstring = formstring .. "Transparent to sunlight: "..yesno(data.def.sunlight_propagates).. "\n" formstring = formstring .. "\n" @@ -215,6 +214,13 @@ doc.new_category("nodes", { elseif data.def.light_source == 1 then formstring = formstring .. "This block glows faintly. It is barely noticable.\n" end + if data.def.paramtype == "light" and data.def.sunlight_propagates then + formstring = formstring .. "This block allows light to propagate with a small loss of brightness, but sunlight can go through without loss.\n" + elseif data.def.paramtype == "light" then + formstring = formstring .. "This block allows light to propagate with a small loss of brightness.\n" + elseif data.def.sunlight_propagates then + formstring = formstring .. "This block allows sunlight to propagate without loss in brightness.\n" + end if data.def.climbable == true then formstring = formstring .. "This block can be climbed.\n" end -- cgit v1.2.3