From 8c68ad966217bb81617f20bae25d6d5ae6ae20d2 Mon Sep 17 00:00:00 2001 From: kilbith Date: Wed, 10 Sep 2014 18:00:51 +0200 Subject: [PATCH] Added a grandfather clock --- homedecor/crafts.lua | 10 +++ homedecor/furniture.lua | 70 +++++++++++++++++- .../homedecor_grandfather_clock_bottom.png | Bin 0 -> 621 bytes .../homedecor_grandfather_clock_inv.png | Bin 0 -> 3693 bytes .../homedecor_grandfather_clock_sides.png | Bin 0 -> 957 bytes .../homedecor_grandfather_clock_top.png | Bin 0 -> 1360 bytes 6 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 homedecor/textures/homedecor_grandfather_clock_bottom.png create mode 100644 homedecor/textures/homedecor_grandfather_clock_inv.png create mode 100644 homedecor/textures/homedecor_grandfather_clock_sides.png create mode 100644 homedecor/textures/homedecor_grandfather_clock_top.png diff --git a/homedecor/crafts.lua b/homedecor/crafts.lua index 4edf757..bd370d8 100644 --- a/homedecor/crafts.lua +++ b/homedecor/crafts.lua @@ -2652,3 +2652,13 @@ minetest.register_craft({ }, }) +minetest.register_craft({ + output = "homedecor:grandfather_clock_bottom", + recipe = { + { "building_blocks:slab_hardwood","homedecor:analog_clock_wood","building_blocks:slab_hardwood" }, + { "building_blocks:slab_hardwood","technic:brass_ingot","building_blocks:slab_hardwood" }, + { "building_blocks:slab_hardwood","technic:brass_ingot","building_blocks:slab_hardwood" } + }, +}) + + diff --git a/homedecor/furniture.lua b/homedecor/furniture.lua index dbbf0f2..3298ad0 100644 --- a/homedecor/furniture.lua +++ b/homedecor/furniture.lua @@ -730,7 +730,7 @@ minetest.register_node("homedecor:wall_shelf", { drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", - groups = { snappy = 3 }, + groups = { snappy = 3 }, node_box = { type = "fixed", fixed = { @@ -740,6 +740,74 @@ minetest.register_node("homedecor:wall_shelf", { } }) +minetest.register_node("homedecor:grandfather_clock_bottom", { + description = "Grandfather Clock", + tiles = { + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_bottom.png" + }, + inventory_image = "homedecor_grandfather_clock_inv.png", + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = { snappy = 3 }, + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.4, -0.3125, 0.5, 0.4}, -- NodeBox1 + {-0.3125, -0.4375, -0.3125, 0.3125, 0.5, 0.4}, -- NodeBox2 + {0.3125, -0.5, -0.4, 0.4, 0.5, 0.4}, -- NodeBox3 + {-0.3125, -0.5, -0.4, 0.3125, -0.405, 0.4}, -- NodeBox4 + } + }, + selection_box = { + type = "fixed", + fixed = { -0.4, -0.5, -0.4, 0.4, 1.5, 0.4 } + }, + on_place = function(itemstack, placer, pointed_thing) + return homedecor.stack_vertically(itemstack, placer, pointed_thing, + "homedecor:grandfather_clock_bottom", "homedecor:grandfather_clock_top") + end, + after_dig_node = function(pos, oldnode, oldmetadata, digger) + local pos2 = { x = pos.x, y=pos.y + 1, z = pos.z } + if minetest.get_node(pos2).name == "homedecor:grandfather_clock_top" then + minetest.remove_node(pos2) + end + end, +}) + +minetest.register_node("homedecor:grandfather_clock_top", { + tiles = { + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_sides.png", + "homedecor_grandfather_clock_top.png" + }, + drawtype = "nodebox", + paramtype = "light", + paramtype2 = "facedir", + groups = { snappy = 3, not_in_creative_inventory=1 }, + node_box = { + type = "fixed", + fixed = { + {-0.4, -0.5, -0.4, -0.3125, 0.5, 0.4}, -- NodeBox1 + {-0.3125, -0.1875, -0.4, 0.3125, 0.5, 0.4}, -- NodeBox2 + {0.3125, -0.5, -0.4, 0.4, 0.5, 0.4}, -- NodeBox3 + {-0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.4}, -- NodeBox4 + } + }, + selection_box = { + type = "fixed", + fixed = { 0, 0, 0, 0, 0, 0 } + }, +}) + -- Aliases for 3dforniture mod. minetest.register_alias("3dforniture:table", "homedecor:table") diff --git a/homedecor/textures/homedecor_grandfather_clock_bottom.png b/homedecor/textures/homedecor_grandfather_clock_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..55ffe5f8e489130998a1fa7f94eba2e3fe947031 GIT binary patch literal 621 zcmV-z0+RiSP)bCoFx0DzAl{0;`< z>*IneSvIe{AcDz3kN|OEJQ*VXO-E=~d))roxsO*tQs~3MzbA z@t4_Ha`J?>=wtE*VJz7(h{7dZDIovZU{#2MPKb&k8zgSZL4(Ai=ol<>A~5bYMG7oyiZ zR)uK292~t(-a!3T{l?;|aP-!psA0Ei+R(dbh1d(zvwm|HqUSd5h3Rt}I|lc6^%|z# zF5g{T74Gk9uO}OBV0s~U?P0Mh$a>|vE<6-WcD0(`c&(gcI$5hrx8dy9^u62kmAhf8 z>``z>{|GDYUC*(jSKR*lrB^on@;)t16vM%0ag+XETgyG_t zQLRzQ`P54?3kJ^!MlyuS8b{VP)PQ?4XdH4x5-EWN8Fq1OKn@-eWa<6Ec+k&Z6wuO& zi7*xnRzsy$%AAnFMi-S$CW+$Q#yQN1Qo_i$Zvy0TdNue1Mdol<5otQA00000NkvXX Hu0mjfSv?h4 literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_grandfather_clock_inv.png b/homedecor/textures/homedecor_grandfather_clock_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..84f9ed98a8f62d98e505be90ecb5e3bb3266bfd5 GIT binary patch literal 3693 zcmV-z4wCVSP)Ut+t7oua6l#I8{^aV~a|^rbBdBrgW?TA=7tQ=l&e z^3wOVKpqnmeQ6&HBz0^DPSd)%_!8KXEm*dEk>yC1NKquu*=x<;hqVuBSwtIzR7fD% z0I>=3@NmzpnScKIXAb;|Uv{P5_>qr}?3#nZRk4vX?K8Ymb_}(pM)0-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H3Kef#Woe+tN+{~tJrx19nriS))Fxk#@@B(xeg(ew z>}=bk-H#leec$E;b=U)zJCkWU?Y1%E*ueSgusvo~6uI`410H{|kEdQLr(1|>!vVAF zo8M_PIH#5dGle)=;2L&?J#a)G7NTmkVaCwP-$q+(M3?l&o=Sm@NRYLbHD69pzWVoY z-|g`1EAM~3V}tBn>mZ5@YcXApK_X9}N(}A4nNh2JZ&iWKYCoxATF6^R=yS&}r@|rI z*a&kMHnhG9uw-pIJh01@M9P&A?>=}(9_={?NN`}zI6R+u?17Gl?o5~c{sZ)xzGgyg z*}CZH)dFRCwWYz@I99Ty*N3SxOJtEv|7YXA4+`XuybljeCNforHU{= zE^Ra>#~f7KWVl3Xz?f{<3lN5dx&6n}$KucSWD2~yG=JxNtNx|sHGx}QS`~eTYY!y8 z{Ci_Qdv~{?4FH^3ZcMPrXzkM?DS>$dy!PReKv)=%N4ou~W7E&? zKQ#vMz#ZM+&1L)A{!y(mOZ&#oc$jRRUlE01d0n_CYH5VXQ?NcseV5dk>82-+){|H2 z`TR;6|KJ^+J^gb3H%rspU6|NEuTEiY67~FAu)JRBMs4&p3-vZ5Y0DB_uK)Dpv0|`u zHGfwk0N@Wk(%BP7dp&eVUR0!i8IAbN!aPAVBtLs0Fmv3Qq*O-}i-k{nP_@r1KBn*4@gl+V$Dr@(rf+;B7ha>+9FoFa7#oxM5P#P5QwT00000 LNkvXXu0mjflVTgi literal 0 HcmV?d00001 diff --git a/homedecor/textures/homedecor_grandfather_clock_sides.png b/homedecor/textures/homedecor_grandfather_clock_sides.png new file mode 100644 index 0000000000000000000000000000000000000000..27a5f791786da229669bf98d0b12f419e9d66b14 GIT binary patch literal 957 zcmV;u148_XP)jWZI$KPxet{I(Bk`7Fml<0dF1y?z3SoK*r08n zZdS*~EIZz-=$BVP%;T+sc!L@M-3@k+>7Up5dEH91S;EE|yPf0Sqbk+t3c%-4Pp?ol z-hTTX0NqEYCNspL^R91~Il{{DWSqsG*4gggS=t^aIO6h9!r`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