From fc9f44317cc8e7151a715769d143e88a4cbeb588 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sun, 30 Sep 2012 04:59:14 -0400 Subject: [PATCH] added small glowing cube for use on top of short lampposts (e.g. yard lights). Made using one stick above one moreblocks super glow glass (same sort of recipe used for other microblocks, but this one's centered on the bottom face of the node). --- crafts.lua | 7 +++++ init.lua | 27 ++++++++++++++++++++ textures/homedecor_glowlight_cube_sides.png | Bin 0 -> 253 bytes textures/homedecor_glowlight_cube_tb.png | Bin 0 -> 255 bytes 4 files changed, 34 insertions(+) create mode 100644 textures/homedecor_glowlight_cube_sides.png create mode 100644 textures/homedecor_glowlight_cube_tb.png diff --git a/crafts.lua b/crafts.lua index ab879b0..918f799 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1109,4 +1109,11 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = "homedecor:glowlight_small_cube 8", + recipe = { + {"default:stick" }, + {"moreblocks:superglowglass" }, + } +}) diff --git a/init.lua b/init.lua index e5fd9df..c400c0b 100644 --- a/init.lua +++ b/init.lua @@ -952,6 +952,33 @@ minetest.register_node('homedecor:glowlight_thin', { sounds = default.node_sound_leaves_defaults(), }) +minetest.register_node('homedecor:glowlight_small_cube', { + description = "Glowlight (small cube)", + drawtype = "nodebox", + tiles = {'homedecor_glowlight_cube_tb.png', + 'homedecor_glowlight_cube_tb.png', + 'homedecor_glowlight_cube_sides.png', + 'homedecor_glowlight_cube_sides.png', + 'homedecor_glowlight_cube_sides.png', + 'homedecor_glowlight_cube_sides.png' + }, + selection_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + node_box = { + type = "fixed", + fixed = { -0.25, -0.5, -0.25, 0.25, 0, 0.25 } + }, + + sunlight_propagates = false, + paramtype = "light", + walkable = true, + groups = { snappy = 3 }, + light_source = LIGHT_MAX-1, + sounds = default.node_sound_leaves_defaults(), +}) + -- local curtaincolors = { diff --git a/textures/homedecor_glowlight_cube_sides.png b/textures/homedecor_glowlight_cube_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..f71edb41d335f6baac200da3e75da8461693f956 GIT binary patch literal 253 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4yPQ4IbUwji$y@8Ii4<#Ar`0KUhw2P#K6<~aD8c1r$UoO!{NXFk40TxH>|K& z|4NN}tCMX5zte+>fA+NO|EKiR?;Pr zOfMGn8&+*BagqIg=!>|6@LG$+F19cW_pb7#_wP?~GgWeYdQ{uD;5aM$8RiYgIk(3% w?Cyx+4^aIjbUU6Q@&mdKI;Vst0Hax2(f|Me literal 0 HcmV?d00001 diff --git a/textures/homedecor_glowlight_cube_tb.png b/textures/homedecor_glowlight_cube_tb.png new file mode 100644 index 0000000000000000000000000000000000000000..7adb363564702cd601b19264a4d07948009f45d4 GIT binary patch literal 255 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4yPQ4IqR-foy~JwH1lW zSS~oqCx1~YagqJL{yJ-eT9n}-5#BWgePZvuy01?1{ y$^v)FE%3VIom0=4l4!qy^MLMw?*GU2F9;X9C@!x0b6y1KQU*^~KbLh*2~7ay{ao7s literal 0 HcmV?d00001