From 07006c5d3feceb3e08c9e541dffd4b6fff41da43 Mon Sep 17 00:00:00 2001 From: Toby plowy Date: Sat, 28 Jan 2017 21:56:25 +0100 Subject: [PATCH] gravestone --- mods/bones/init.lua | 22 +++++++++---- mods/bones/models/tombstone.obj | 42 +++++++++++++++++++++++++ mods/bones/textures/bones_bottom.png | Bin 740 -> 0 bytes mods/bones/textures/bones_front.png | Bin 656 -> 0 bytes mods/bones/textures/bones_rear.png | Bin 637 -> 0 bytes mods/bones/textures/bones_side.png | Bin 700 -> 0 bytes mods/bones/textures/bones_top.png | Bin 662 -> 0 bytes mods/bones/textures/tombstone.png | Bin 0 -> 1686 bytes mods/bones/textures/tombstone_item.png | Bin 0 -> 833 bytes 9 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 mods/bones/models/tombstone.obj delete mode 100644 mods/bones/textures/bones_bottom.png delete mode 100644 mods/bones/textures/bones_front.png delete mode 100644 mods/bones/textures/bones_rear.png delete mode 100644 mods/bones/textures/bones_side.png delete mode 100644 mods/bones/textures/bones_top.png create mode 100644 mods/bones/textures/tombstone.png create mode 100644 mods/bones/textures/tombstone_item.png diff --git a/mods/bones/init.lua b/mods/bones/init.lua index 9542cab..0574119 100644 --- a/mods/bones/init.lua +++ b/mods/bones/init.lua @@ -26,15 +26,25 @@ local share_bones_time_early = tonumber(minetest.setting_get("share_bones_time_e minetest.register_node("bones:bones", { description = "Bones", + drawtype = "mesh", + mesh = "tombstone.obj", tiles = { - "bones_top.png^[transform2", - "bones_bottom.png", - "bones_side.png", - "bones_side.png", - "bones_rear.png", - "bones_front.png" + "tombstone.png", }, + visual_scale = 0.5, + wield_image = "tombstone_item.png", + wield_scale = {x=1.0, y=1.0, z=1.0}, paramtype2 = "facedir", + paramtype = "light", + selection_box = { + type = "fixed", + fixed = {-0.4, -0.5, -0.0, 0.4, 0.5, 0.3} + }, + collision_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 1, 0.3} + }, + inventory_image = "tombstone_item.png", groups = {dig_immediate = 2}, sounds = default.node_sound_gravel_defaults(), diff --git a/mods/bones/models/tombstone.obj b/mods/bones/models/tombstone.obj new file mode 100644 index 0000000..65239b3 --- /dev/null +++ b/mods/bones/models/tombstone.obj @@ -0,0 +1,42 @@ +# Blender v2.78 (sub 0) OBJ File: '' +# www.blender.org +mtllib tombstone.mtl +o Cube_Cube.001 +v -0.853184 -1.046431 0.507511 +v -0.853184 0.945959 0.681823 +v -0.853184 0.991776 0.158128 +v -0.853184 -1.000613 -0.016184 +v 0.853184 0.991776 0.158128 +v 0.853184 -1.000613 -0.016184 +v 0.853184 0.945959 0.681823 +v 0.853184 -1.046431 0.507511 +vt 0.4583 0.3750 +vt 0.4583 0.8750 +vt 0.3750 0.8750 +vt 0.3750 0.3750 +vt 0.0833 0.8750 +vt 0.0833 0.3750 +vt -0.0000 0.8750 +vt 0.0000 0.3750 +vt 0.7500 0.3750 +vt 0.7500 0.8750 +vt 0.3750 0.8750 +vt 0.6667 0.8750 +vt 0.6667 1.0000 +vt 0.3750 1.0000 +vt 0.3750 1.0000 +vt 0.0833 1.0000 +vn -1.0000 -0.0000 0.0000 +vn 0.0000 0.0872 -0.9962 +vn 1.0000 -0.0000 0.0000 +vn 0.0000 -0.0872 0.9962 +vn 0.0000 -0.9962 -0.0872 +vn 0.0000 0.9962 0.0872 +usemtl None +s 1 +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 4/4/2 3/3/2 5/5/2 6/6/2 +f 6/6/3 5/5/3 7/7/3 8/8/3 +f 8/9/4 7/10/4 2/2/4 1/1/4 +f 4/11/5 6/12/5 8/13/5 1/14/5 +f 5/5/6 3/3/6 2/15/6 7/16/6 diff --git a/mods/bones/textures/bones_bottom.png b/mods/bones/textures/bones_bottom.png deleted file mode 100644 index 859c6bbe243f4f1f7397a95007df53e52432a00b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 740 zcmVC+k?{+(k@!Q)QrL-)|BuQ-Bj-n`vq9jS;I7SE!1_O@cP`BH4 zUDvkl)oN8$l^_T&FE5==r)io49su$@&$6uB?Y3=;CX-3qwhY5al7tZAd44vVWm)$7 z`-?G7)AW#}l(H-BnSdRXgnTcj1L;6v}qcaWe@+9 zWtn9e##mL=`FxIKStf++_j_5Eo2ChZAkT9`i0}LB^?EQEP)ZqwF->RO$pJ42f}$vdkkM%5`@UfqcXxLT&-3f`n&k|dU8zrMcS-`^>vs;Y7v=XqWb1e&H5Md3IOrS#vwfByjk WgJ0kD14Ksv0000qC?hP5b0006nNkl2%6Dw{6?^eJu!r!C+un*2~MwUkgepA;f00S*=#OVHf~rvss${=H>>#?d|RV zJc^<;bUvTg7K=r-S{)1qdwY8T2qA=!^zaXFwOVOt0GUpwvs$eRg~H?GqvJTgTDrcz zzQ4Z*U|E(Ph9M!OQmH7VeiWn82*BatVLFb-W5X~grQL2fW7{^RlrfgJBZNp>6GF^p zGuyV)pB@|>xUO5T*ELFM>d$rEr>7?X$H&LIt^>&Ba-4HYsbyJ02-7rsy`IJxdwY9h zjQPG_E|5SC5uVlIWn@`Z1zWqxmA=Dj)F zZnsLQEX!=$etdicu-onK@9%fJU6Le1h?|?6EX(@7cU|}V{QN8kg2Un9c^-h5mlpuf z&(DmpaU6Z$|NQ)9jOBR_Ac~@*D6C-^2q7027vner08o}?p68r%&bd;mX_~64wAM+I zD5Z!I#c@2F&CGkTSoD1_r5uLg{rw%l-Q694q9_0m$8pNC6hcfNIOlEKc3o!_0E7?# zx~|h&Tc^`$Hk$=Ouv{(;9)NYmFv0&Z@1g) z>+5L&0Da&0ec!e%0IRNR-}mDH6JEXQ%uG<6(DDdlG1WK06zMl00000NkvXXu0mjfV(}}) diff --git a/mods/bones/textures/bones_side.png b/mods/bones/textures/bones_side.png deleted file mode 100644 index a07595f45f075dcb4e235a16e85707c435105bf5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 700 zcmV;t0z>_YP)T+F%Hc{ z+9ZuhgP}wbL6Nv9t^`5o%HQn5T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file mode 100644 index 0000000000000000000000000000000000000000..15c8406f900629049083dc09e21308fa40ed360f GIT binary patch literal 1686 zcmV;H25I?;P)WFU8GbZ8()Nlj2>E@cM*00sI-A857 zJ)=Y z07Qho>zPh>=)E7-Ld1EGO%jqMK`97PXqyI5bX`v|Daeow|K`n`^sYy1&Bx-s0P4C% z8-qsg8 z3O^>{{~CZcX1o%dcf+M~Xk&;W(D{Ifpp7EN$jWeRqj(##0X;P*OHcQ`)9MhEoR#SZmQr(KId2Iqn}EATaiW z=Ir#8rmi=Q+qUh%9q(bSxx^O{nz{kSrg49cFI>H(tWt`+DCqmQ(wJo#S}BYfWN$W` zQA~=VK$OBckJXysJ!z7V=WnwKkY_ncDU8u%c}7`QOeV$V|FW#GMiWDTpW$Bxy6d_j z5^D)Q5M$)k>(~7A$rH-5g0q+j~?N? z=X^Hf=;(;E(^G!`#TSSSC3SRk#QAJ?iQo4f=wswLW(anQMq zkbIDgYNfdO$xQ&h|Nignef}Be=NJ6+$Acnwnx=ZgoeeZDI@!-J&PT#!Y z=&K`)F*I$nd4c)G1zDPM_jh*zID2!-bUMX3NADcYIgB;nK>6^yyQKwfy?d9sc$78FzpC z8(thA)AtUo71~&`EG0>jQ3;@4uE;1Tih`zYut|baineLUCle4EdTLQ(#%8{90Mi>& z%0-Dtq^|3YE*~D==VCUaX&Ryk2loyLBAn08_`}y^UprThd|S`+_*7ielbU4WVKvgJ%F;Rm~2fDf!;Z~w&nQv7^5`; zoV9(G+f=(SSRO#?ERxwF$Z^v<)a zs$odw8ExCKtSUqVV+RA*b{$GVhZ7JBp$hL?21d%xG(~71Zf;4vc zA{)L36us-mkDCr-45z1Oo1qrt=wh{Exm;a6fIQEsmKA*$NYWGpLJY(h@S~sCT4R%h z-~%B>L?YH2LWta$PFb#&_|6Y}AoTrve6zMHA{)MQj$hrr&3v)Icb+uOxW+ZEagA$S g;~Lkv#xKWz0dQ)_QLSh2YXATM07*qoM6N<$f)gPqs{jB1 literal 0 HcmV?d00001 diff --git a/mods/bones/textures/tombstone_item.png b/mods/bones/textures/tombstone_item.png new file mode 100644 index 0000000000000000000000000000000000000000..fb664e3854d9e4266e6bf3a7d0e73b1e1f04b3b0 GIT binary patch literal 833 zcmV-H1HSx;P)k@)}s03B&m zSad^gZEa<4bN~PV002XBWnpw>WFU8GbZ8()Nlj2>E@cM*00N~+L_t(I%Z-yyYa3S- z#eZ++%}AD`7>#5nAV)10w62mUYkB8Q9PF+VC~i01cGFMLjk|F1C+OOXHV_(ONE}kS zatvMsyl$EpIWCQBtJciOnvpfq%$wImVz({{^umD)_uM~R&Jm49gF>Oef5Z2EfU}zK z`|sqL^?Loi%>XMaDw11OS~Xgkb`Z zCW=Q-eiozHe6 zYiw<8VHgHs&|ON?lvHb+Vu34_3gvQ{k!+S!YXCBt49|Xf@NH?b%HrZ8VtIL)TCK*$ z#s-#w_FNDDxP#*qC^|)4&jq096zOz2OpK3nseDBMY;JBM8XsNei?6>SpU<=Z`>r0z zjbfT6{ix5|rF48B+p-wVU%+!co<96h0L*><74mW+$4}pXM;ImC`s_=NJIC1BEPH!< z0F=vR+HM=q^KqO4A67n~doo~pvc%NX6jB-nBbLOukj1ubOv9w#?=vwmLD4Cqv}Q0E zaO3(7+HRX5=rR~4ob-oituZdrO{$NpR3BFX#Q(uUvw1c^%+Jri)4uO>=f62K+uQsNR(&{7g4>hp00000 LNkvXXu0mjfKY?@M literal 0 HcmV?d00001