diff options
author | Wuzzy <almikes@aol.com> | 2016-08-01 23:19:49 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-08-01 23:19:49 +0200 |
commit | 7c45abfee3c8c9203857f7708f2163ee65f71774 (patch) | |
tree | 60a52494ee971b313876f95e6bb8e6808896a148 | |
parent | 157465aa342b3e9b0c6b65993f9d294b41157405 (diff) |
Improve light texts
-rw-r--r-- | init.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |