From 8e5197af58d67dccc6ac800f62e832897fe40a31 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 16 Apr 2015 05:23:08 -0400 Subject: [PATCH] use mesh node for calendar --- homedecor/misc-nodes.lua | 11 +-- homedecor/models/homedecor_calendar.obj | 68 ++++++++++++++++++ homedecor/textures/homedecor_calendar.png | Bin 233 -> 395 bytes homedecor/textures/homedecor_calendar_inv.png | Bin 0 -> 2904 bytes 4 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 homedecor/models/homedecor_calendar.obj create mode 100644 homedecor/textures/homedecor_calendar_inv.png diff --git a/homedecor/misc-nodes.lua b/homedecor/misc-nodes.lua index 9a8ad949..43c2ccf9 100644 --- a/homedecor/misc-nodes.lua +++ b/homedecor/misc-nodes.lua @@ -631,17 +631,20 @@ minetest.register_alias("homedecor:tool_cabinet_top", "air") homedecor.register("calendar", { description = "Calendar", - drawtype = "signlike", + mesh = "homedecor_calendar.obj", tiles = {"homedecor_calendar.png"}, - inventory_image = "homedecor_calendar.png", - wield_image = "homedecor_calendar.png", + inventory_image = "homedecor_calendar_inv.png", + wield_image = "homedecor_calendar_inv.png", paramtype2 = "wallmounted", sunlight_propagates = true, walkable = false, selection_box = { type = "wallmounted", + wall_side = { -8/16, -8/16, -4/16, -5/16, 5/16, 4/16 }, + wall_bottom = { -4/16, -8/16, -8/16, 4/16, -5/16, 5/16 }, + wall_top = { -4/16, 5/16, -8/16, 4/16, 8/16, 5/16 } }, - groups = {choppy=2,dig_immediate=2,attached_node=1}, + groups = {choppy=2,attached_node=1}, legacy_wallmounted = true, sounds = default.node_sound_defaults(), }) diff --git a/homedecor/models/homedecor_calendar.obj b/homedecor/models/homedecor_calendar.obj new file mode 100644 index 00000000..f97dcb2a --- /dev/null +++ b/homedecor/models/homedecor_calendar.obj @@ -0,0 +1,68 @@ +# Blender v2.73 (sub 0) OBJ File: 'calendar.blend' +# www.blender.org +o Cylinder +v -0.250000 -0.500000 -0.500000 +v -0.250000 -0.375000 -0.500000 +v 0.250000 -0.375000 -0.500000 +v 0.250000 -0.500000 -0.500000 +v -0.250000 -0.500000 0.187500 +v -0.250000 -0.375000 0.187500 +v 0.250000 -0.375000 0.187500 +v 0.250000 -0.500000 0.187500 +v 0.187500 -0.500000 0.312499 +v 0.187500 -0.250000 0.312499 +v 0.187500 -0.250000 0.062499 +v 0.187500 -0.500000 0.062499 +v 0.187500 -0.250000 0.312499 +v 0.187500 -0.500000 0.312499 +v -0.187500 -0.250000 0.312499 +v -0.187500 -0.500000 0.312499 +v -0.000000 -0.500000 0.312499 +v 0.000000 -0.250000 0.312499 +v -0.187500 -0.500000 0.312499 +v -0.187500 -0.250000 0.312499 +v -0.000000 -0.500000 0.062499 +v -0.000000 -0.250000 0.062499 +v 0.000000 -0.250000 0.312499 +v -0.000000 -0.500000 0.312499 +v -0.187500 -0.250000 0.062499 +v -0.187500 -0.500000 0.062499 +vt 0.781250 0.843750 +vt 0.656250 0.843750 +vt 0.656250 0.156250 +vt 0.781250 0.156250 +vt 0.156250 0.843750 +vt 0.156250 0.156250 +vt 0.031250 0.843750 +vt 0.031250 0.156250 +vt 0.968750 0.656250 +vt 0.812500 0.656250 +vt 0.812500 0.468750 +vt 0.968750 0.468750 +vt 0.656250 0.031250 +vt 0.156250 0.031250 +vt 0.968750 1.000000 +vt 0.718750 1.000000 +vt 0.718750 0.750000 +vt 0.968750 0.750000 +vt 0.656250 0.968750 +vt 0.156250 0.968750 +vn -1.000000 0.000000 0.000000 +vn 0.000000 1.000000 -0.000000 +vn 1.000000 0.000000 0.000000 +vn 0.000000 -1.000000 0.000000 +vn 0.000000 0.000000 -1.000000 +vn 0.000000 0.000000 1.000000 +s off +f 5/1/1 6/2/1 2/3/1 1/4/1 +f 6/2/2 7/5/2 3/6/2 2/3/2 +f 7/5/3 8/7/3 4/8/3 3/6/3 +f 8/9/4 5/10/4 1/11/4 4/12/4 +f 1/13/5 2/3/5 3/6/5 4/14/5 +f 13/15/3 14/16/3 12/17/3 11/18/3 +f 24/16/1 23/15/1 22/18/1 21/17/1 +f 9/16/1 10/15/1 11/18/1 12/17/1 +f 15/15/3 16/16/3 26/17/3 25/18/3 +f 18/15/3 17/16/3 21/17/3 22/18/3 +f 19/16/1 20/15/1 25/18/1 26/17/1 +f 5/19/6 8/20/6 7/5/6 6/2/6 diff --git a/homedecor/textures/homedecor_calendar.png b/homedecor/textures/homedecor_calendar.png index 64ebb8ab5f0c82fda4dbad55e8daca9a9668ce1f..250dee31e31667b1bfe6058ed68bf0ad3f5d41fb 100644 GIT binary patch delta 369 zcmV-%0gnFZ0gD5WBYy!>Nkla=rYt-?t%T zH@hA6i2=YEL#{n@9l(T$nteyst@}&N<%KYjDnSU7dpLem)#f3xSd`)O9^Bzz0O1PPVPzu*~!P+Xq@}N-iOf ziNuH8H|wYZrfMKxWDxy20kcg)tu_6ZAW8{h--f?Yg8l^j$$Byex@j1L_~H`Sgtnll z0*J^-7_%{%PsewA`xzp_>0MD2L3b_7G755F>@Q~WK~$FIvI6FGU~zl^R5Olp>)6L> P00000NkvXXu0mjfYVxRt delta 206 zcmV;<05SiI1L*;fBYyy}Nkl2Eo){R%$-YeRr21mLr(*`RL*6@a?WJ{q}<#AlrrB0 zATSVp4lg>%v;hFXwGW0?0Gxwv1_%ZUP-6w?2Jk>*0m3JTr$+$9@+knZbm|Q#fC4Ch zP(K7nuUxPn2f(fLY&ZZ{N*-oEfKuVBzu=Weh)w|-ea*Vl4i&>i7EBp}p8x;=07*qo IM6N<$g5P*oeEikOOTz}0q$Ev2MGz8lYjB8TV<($k@6OEEA3N);FR>l3 zy>^eZnw|04b7tQ2e(!s}GsiH4OCr%~0M@PB_}iA2CACx0hbi|%wYJ_R04rDCBIBsO zE0JhjXN+l?J-fMQ)vC2kt5+wi|7!p`I$qW_YZ9*=K72sOQN0J)2mD1usHmuz?>LT` zF#seItpc!S&25EIwMMDCEsaXbJN>iiL?2R;U74g-?O4qdl@x$y*jaZ?b^>;qxF?cc6=9Dlt{ELF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