From 5024ced4d1a1408e685299d8b12bd6806fc19dc8 Mon Sep 17 00:00:00 2001 From: jp Date: Sat, 8 Aug 2015 00:37:31 +0200 Subject: [PATCH] Add Light Box --- crafts.lua | 9 +++++++++ nodes.lua | 8 ++++++++ textures/xdecor_lightbox.png | Bin 0 -> 252 bytes 3 files changed, 17 insertions(+) create mode 100644 textures/xdecor_lightbox.png diff --git a/crafts.lua b/crafts.lua index 89f19b0..fe9438b 100644 --- a/crafts.lua +++ b/crafts.lua @@ -214,6 +214,15 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "xdecor:lightbox", + recipe = { + {"group:stick", "default:torch", "group:stick"}, + {"group:stick", "default:glass", "group:stick"}, + {"group:stick", "default:torch", "group:stick"} + } +}) + minetest.register_craft({ output = "xdecor:mailbox", recipe = { diff --git a/nodes.lua b/nodes.lua index c52df7b..7f07d24 100644 --- a/nodes.lua +++ b/nodes.lua @@ -381,6 +381,14 @@ xdecor.register("lantern", { } }) +xdecor.register("lightbox", { + description = "Light Box", + tiles = {"xdecor_lightbox.png"}, + groups = {cracky=3}, + light_source = 13, + sounds = xdecor.glass +}) + local flowerstype = { "dandelion_white", "dandelion_yellow", "geranium", "rose", "tulip", "viola" } diff --git a/textures/xdecor_lightbox.png b/textures/xdecor_lightbox.png new file mode 100644 index 0000000000000000000000000000000000000000..a8ceeb587964cdf9169b51201e0fc3c71bf56fa4 GIT binary patch literal 252 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Wq?nJ>(4Kg0 zA~#L&+2Tr>dr2mITrM2x2@Xom$~s%GIW+eiI9#M|ku6{1-oD!M