From 18049bf2290500e97e6238f1975d1fbcb7c18177 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Wed, 25 Jun 2014 05:59:34 -0400 Subject: [PATCH] Add various kinds of decorative clocks. (as usual, no crafting recipes are available yet) --- homedecor/clocks.lua | 103 ++++++++++++++++++ homedecor/init.lua | 1 + homedecor/misc_nodes.lua | 1 + .../textures/homedecor_alarm_clock_back.png | Bin 0 -> 192 bytes .../textures/homedecor_alarm_clock_bottom.png | Bin 0 -> 157 bytes .../textures/homedecor_alarm_clock_front.png | Bin 0 -> 195 bytes .../textures/homedecor_alarm_clock_sides.png | Bin 0 -> 121 bytes .../textures/homedecor_alarm_clock_top.png | Bin 0 -> 156 bytes .../homedecor_analog_clock_plastic_back.png | Bin 0 -> 306 bytes .../homedecor_analog_clock_plastic_edges.png | Bin 0 -> 98 bytes .../homedecor_analog_clock_plastic_front.png | Bin 0 -> 345 bytes .../homedecor_analog_clock_wood_back.png | Bin 0 -> 387 bytes .../homedecor_analog_clock_wood_edges.png | Bin 0 -> 323 bytes .../homedecor_analog_clock_wood_front.png | Bin 0 -> 527 bytes .../textures/homedecor_digital_clock_back.png | Bin 0 -> 188 bytes .../homedecor_digital_clock_edges.png | Bin 0 -> 98 bytes .../homedecor_digital_clock_front.png | Bin 0 -> 215 bytes 17 files changed, 105 insertions(+) create mode 100644 homedecor/clocks.lua create mode 100644 homedecor/textures/homedecor_alarm_clock_back.png create mode 100644 homedecor/textures/homedecor_alarm_clock_bottom.png create mode 100644 homedecor/textures/homedecor_alarm_clock_front.png create mode 100644 homedecor/textures/homedecor_alarm_clock_sides.png create mode 100644 homedecor/textures/homedecor_alarm_clock_top.png create mode 100644 homedecor/textures/homedecor_analog_clock_plastic_back.png create mode 100644 homedecor/textures/homedecor_analog_clock_plastic_edges.png create mode 100644 homedecor/textures/homedecor_analog_clock_plastic_front.png create mode 100644 homedecor/textures/homedecor_analog_clock_wood_back.png create mode 100644 homedecor/textures/homedecor_analog_clock_wood_edges.png create mode 100644 homedecor/textures/homedecor_analog_clock_wood_front.png create mode 100644 homedecor/textures/homedecor_digital_clock_back.png create mode 100644 homedecor/textures/homedecor_digital_clock_edges.png create mode 100644 homedecor/textures/homedecor_digital_clock_front.png diff --git a/homedecor/clocks.lua b/homedecor/clocks.lua new file mode 100644 index 00000000..83d80fe5 --- /dev/null +++ b/homedecor/clocks.lua @@ -0,0 +1,103 @@ +minetest.register_node("homedecor:analog_clock_plastic", { + description = "Analog clock (plastic)", + drawtype = "nodebox", + tiles = { + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_edges.png", + "homedecor_analog_clock_plastic_back.png", + "homedecor_analog_clock_plastic_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -8/32, -3/32, 15/32, 8/32, 3/32, 16/32 }, + { -7/32, -5/32, 15/32, 7/32, 5/32, 16/32 }, + { -6/32, -6/32, 15/32, 6/32, 6/32, 16/32 }, + { -5/32, -7/32, 15/32, 5/32, 7/32, 16/32 }, + { -3/32, -8/32, 15/32, 3/32, 8/32, 16/32 } + } + }, + selection_box = { + type = "fixed", + fixed = { -8/32, -8/32, 15/32, 8/32, 8/32, 16/32 } + }, + groups = {snappy=3}, +}) + +minetest.register_node("homedecor:analog_clock_wood", { + description = "Analog clock (wood)", + drawtype = "nodebox", + tiles = { + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_edges.png", + "homedecor_analog_clock_wood_back.png", + "homedecor_analog_clock_wood_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -8/32, -3/32, 15/32, 8/32, 3/32, 16/32 }, + { -7/32, -5/32, 15/32, 7/32, 5/32, 16/32 }, + { -6/32, -6/32, 15/32, 6/32, 6/32, 16/32 }, + { -5/32, -7/32, 15/32, 5/32, 7/32, 16/32 }, + { -3/32, -8/32, 15/32, 3/32, 8/32, 16/32 } + } + }, + selection_box = { + type = "fixed", + fixed = { -8/32, -8/32, 15/32, 8/32, 8/32, 16/32 } + }, + groups = {snappy=3}, +}) + +minetest.register_node("homedecor:digital_clock", { + description = "Digital clock", + drawtype = "nodebox", + tiles = { + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_edges.png", + "homedecor_digital_clock_back.png", + "homedecor_digital_clock_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + {-0.28125, -0.25, 0.4375, 0.3125, 0.25, 0.5}, + } + }, + groups = {snappy=3}, +}) + +minetest.register_node("homedecor:alarm_clock", { + description = "Alarm clock", + drawtype = "nodebox", + tiles = { + "homedecor_alarm_clock_top.png", + "homedecor_alarm_clock_bottom.png", + "homedecor_alarm_clock_sides.png", + "homedecor_alarm_clock_sides.png^[transformFX", + "homedecor_alarm_clock_back.png", + "homedecor_alarm_clock_front.png" + }, + paramtype = "light", + paramtype2 = "facedir", + node_box = { + type = "fixed", + fixed = { + { -9/32, -16/32, 7/32, 10/32, -5/32, 16/32 }, + } + }, + groups = {snappy=3}, +}) diff --git a/homedecor/init.lua b/homedecor/init.lua index faec921e..da3d5c5d 100644 --- a/homedecor/init.lua +++ b/homedecor/init.lua @@ -77,6 +77,7 @@ dofile(homedecor.modpath.."/laundry.lua") dofile(homedecor.modpath.."/furnaces.lua") dofile(homedecor.modpath.."/nightstands.lua") +dofile(homedecor.modpath.."/clocks.lua") dofile(homedecor.modpath.."/crafts.lua") dofile(homedecor.modpath.."/crafts_nomoreblocks.lua") diff --git a/homedecor/misc_nodes.lua b/homedecor/misc_nodes.lua index 15d9284f..0a810d91 100644 --- a/homedecor/misc_nodes.lua +++ b/homedecor/misc_nodes.lua @@ -388,3 +388,4 @@ minetest.register_node("homedecor:chimney", { sounds = default.node_sound_stone_defaults() }) + diff --git a/homedecor/textures/homedecor_alarm_clock_back.png b/homedecor/textures/homedecor_alarm_clock_back.png new file mode 100644 index 0000000000000000000000000000000000000000..722fdcce58db6bee5590b9f729144aa374453451 GIT binary patch literal 192 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={W+C5zyLp+YZoutTjK!L|~cj_)a zM+?R-?}8k^hT}yY^B+7Yr`MK=x>(&Cz|Cr(=4T{h0lssGL(|(ajAX!Ce?bk(&4OZRZu}VefG?%tD qTm72M8sO!r85@2rD)~&!WpzGJRc=;xxk{ju7(8A5T-G@yGywoSVn?3< literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_alarm_clock_bottom.png b/homedecor/textures/homedecor_alarm_clock_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..d8ae29fd061ecf7cb6a07a43f918688571256784 GIT binary patch literal 157 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WQaoK8Lp+WrCrGd^P7vv73N+wy zJE$Qc)F8Ne#mt$KmB;2zNz@O1TaS?83{ F1ORuGHX8r{ literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_alarm_clock_front.png b/homedecor/textures/homedecor_alarm_clock_front.png new file mode 100644 index 0000000000000000000000000000000000000000..ea6c11da3cbd82058dbad60a0f41dc3e179ab430 GIT binary patch literal 195 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={Wx;$MRLp+YZo$SqbK!L-heVO^? zFc_{?73gPG<{hZ z6gV4_BPMRXbRzJ)?}popJDvq*7inyJ&7W~Mb>!45WezTr|-z;7@p}|I)?p2)cDG`jb4te^4iX!hm5O}HLi2wx!1tyc{y}$BwUH6y--g`tOB5SQN1^`4P#<;F4Gv7^P?nbYw$~kxQG=#7$ zi=M;mj-Hw0pj<{oJvsn5=MYgL9F+2jXzTC$zOL&_4-svjK$Ze)?bbOALk=zBNt=(k zF`;>$b7)x#9s*5)h@|SS`hF=zM0P5OG3L~$)3o-D?qZeTCEO@!RK-F03qc7jDG34BZNg&;nyYX-OX96ed4@oS;tr?>OCiT)A8W z4(`=Ti9vIho#TxyJ!Qjb2d8AvIOPSZ3| z6kW>h8Z66Vbdn?)$MI5j%OJ}#A;h|_+qND1aU35@rIZlD@}6x80DyCDG~2d4mYj0{ r_{^vOWRI1u^;J)`uhQyMq*00000NkvXXu0mjfsxFhO literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_analog_clock_wood_back.png b/homedecor/textures/homedecor_analog_clock_wood_back.png new file mode 100644 index 0000000000000000000000000000000000000000..76cb41c19bbd6b0ea8f9dbe6deedc26c5864f353 GIT binary patch literal 387 zcmV-}0et?6P)Nkl1&R`U7-D?a?mfMB z?xM5a%OnzW?IW_ivx~-xJumbLXb+AY{e&Uwp#l2^Rd$zyIRXsVh&z zT{I!#qopKWF?}6GoYG_pk6uWuLgEt-z!lXveSn!-aH+v>H@--Qgv_;jPZ<~(Fw=WS zra5wQBH0IKI?@oMkxfAcT1wKy!~{+Y@_Y9{k_z0E@QyAB!}#afvigo^>HXf9>8= hf<}*mQ7{T%004|vjy6x}n7{x4002ovPDHLkV1m%Zr)~fM literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_analog_clock_wood_edges.png b/homedecor/textures/homedecor_analog_clock_wood_edges.png new file mode 100644 index 0000000000000000000000000000000000000000..aab00e740667ae7d77ac25b7ddc05c238cb5e3a3 GIT binary patch literal 323 zcmV-J0lfZ+P) zZt4#D`STwGZ2&tv6VtVOPZ?+iuHAdeq@^UyKubVdA22X5Fx`0cm3F3IzW0gAP(y-t z7U(MRF@68`nRXUvDM`~dlCRx+%5?w5C)!!S$;Hcb>Iw~0(Wxs>nRJ!-XdB6#T)eam zB1H)r`an^FkM?B|O>^>%M_-v3XbeW{gVFk6v_2TE4@T<)YNR4&8F4{ork|3c{Ey#! ze)aC{p^MM>_&8p@dn+l*f9uh+Ll>X1viyGk`OEvyUnE8OHyycs`^h`v)gQk20swD2 VxQ4{f5Jdn0002ovPDHLkV1lZ{mtg<^ literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_analog_clock_wood_front.png b/homedecor/textures/homedecor_analog_clock_wood_front.png new file mode 100644 index 0000000000000000000000000000000000000000..60cfd66dbfc9ce0da182c097b4b09f8003e01580 GIT binary patch literal 527 zcmV+q0`UEbP)( z@y)r5SHFGvIBo4E{MuRYONTgV@CwN&s_8})w4+JA?<#+E_iBjKuQmH_kQsdWk!B0p z}ON1{D<*Gc&X0%a@}B zE+Zo&Bcr3ejhHYWna*FQgJ0l~C;#oZv_ikOjd-opxqJoi_9LLJWZltdbDeM>+7(Rb` z`}@b&BPT9?|MqGAmaEh$uG0ezxj9)G7#QAv`YOoB{r=Nef<}*mQ7{T%004fm+c+eZ RJiq_|002ovPDHLkV1m+f1&jay literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_digital_clock_back.png b/homedecor/textures/homedecor_digital_clock_back.png new file mode 100644 index 0000000000000000000000000000000000000000..2f3b70d3809e1dabc11e6bc0b0df66939f567705 GIT binary patch literal 188 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={Wnmt_{Lp+WrCrGd^P7pCj;);xj zn2>(0Q&`=AHFAU2(}xcguYS>w-c=*Ri>Z-PvD1U!i$U zjYFK#(OLW%a_l-Ts}A$ziHlEnoY)o75iWJ_B5R_=f1BvA{gZx)ty!bdY?SekS;=`$ k1b2aGFVMmsrcDeC_qUmE&is2X73drWPgg&ebxsLQ06}p=+yDRo literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_digital_clock_edges.png b/homedecor/textures/homedecor_digital_clock_edges.png new file mode 100644 index 0000000000000000000000000000000000000000..41c2a7c838343e0a6823d8151d683b5f781bbd29 GIT binary patch literal 98 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1SJ1Ryj={WG(BA$Lp+YZJ?qHGz`(*{kh1&V w%qb7Hi$!VR(OJf^ zOy{K70!iLPW$E_Q85{{p$C{3Ii#x}3j>r>A z6?gpBu+HF9v19rWS@7w literal 0 HcmV?d00001