From 8b24eeb398ae3eea0d9e3f0ac49bbd82dc453029 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 12 Mar 2021 17:13:10 -0500 Subject: [PATCH] Add Interface textures --- assets/interface.xcf | Bin 0 -> 2863 bytes .../phycon/models/block/interface_side.json | 17 ++--- .../phycon/models/item/network_interface.json | 58 +++++------------- .../phycon/textures/block/interface_back.png | Bin 0 -> 864 bytes .../phycon/textures/block/interface_front.png | Bin 0 -> 921 bytes 5 files changed, 26 insertions(+), 49 deletions(-) create mode 100644 assets/interface.xcf create mode 100644 src/main/resources/assets/phycon/textures/block/interface_back.png create mode 100644 src/main/resources/assets/phycon/textures/block/interface_front.png diff --git a/assets/interface.xcf b/assets/interface.xcf new file mode 100644 index 0000000000000000000000000000000000000000..abf81a312e5f2cceca059dc735ae8b8394ad5119 GIT binary patch literal 2863 zcmd5-zi-<{6qZi3W5+e({+w!*jjhP3Aw(J?2li0d859F;pn)(v2s9K?ROpzZK{0I( ztk|mHsG$gi&P5@hgNx2xwe)ZBY}7*s1BESk2p}=vJCOzhxNhO0$Vu<+``-KB)BWI4 zb;I13UsQGZt6V;xK${DV@Q<)}VaX)A_hC~TKO_=lXdl3&aQrC5r27zd2Ai#;bhc`l zX073XCn)&dL%UXSYMT7D;XIX#n_reFGAE>lS*h2ub=%O$N9tdfnhxKq$xUm|(C*$` z((6@g&$8tuF=XxflZu=ZpZr~fpIj2o%i=@f7tQ@j)o9e^d=8Ai!9tRK-Y^{5XjGrp znv`Mbdb8%pLLb9p_@F|fQE4)hNH)Z)*Nf>WsF4o5w3&%c1a8__DAGb60bfhJh*@V!F1x)%0a*1 zTOsgmulJHbp?7f5D@-SX752;MXLzKQU`a_Ri6AZALp;y>eLGKJr`M|zxMy>2BNXIW zWAqFjDIY9S#;f^s`p%s+B$;f#pUDuo-Rmt7NN2Ly3_?MMeKI1ClnLf3X(E`u#1xu5 zt&mKde5ul;tMNsJ*KBz~+{U-*#Az;M*FAB1qGC<*;{-U`3xYpg5+ncbk^elmTqxuU zh2>n1Ee{L1dK9Bai#B{_ywlMw zdz z@EFQXWNcnB3Z2NM``dls#Wj(s+M&uESRcJP$+ zf4x@eRZn)^gOC0yP=eZxzs95JqfH18ern>97+h2HkzZXELtTDGC9x?#6$ z)zHB&sID@7sM-e81B2NEs322q5;J>b=u905E^>(`^+Q8#g;Z5k)j&>*DxZ$>2 zfs*)GH{i0BmTi*^MGZx_i5rHbpBlOXp@KXGUsf6_CG;n{m@CTZR7NcUrS!9qDJ3yC zHPC6gs!{?E(;1Sb_Q-WoZKfTWTD$E!re->B+tnNs{DPVqGl!b%Ff(wNJAeu@%_T8& zM~=y~f#4#SXwp1%w020fvZgu6X;Wp?Eo-Lcz}lcBJ~kb=+;ZD>Nrs|M*>s6Jj%1!X zW*NdV^2+$Ktzmf!{fQ~&igG5E(YAn6=2^(fTVifnVA6E8@)mfQ&X6p1M;$-aW&FtF z-EPPCxaW7e9qxPJ7u4g-8}g3NyufFj0aTFj4vAT3+{1Q)qPlis1vyCLNk=RR_} zR2g+G?r|U11tsyZ=fl;px}6TmP}H})4sqX?yi?z^AheKY;mdZ1)-L)JPs|nNJSxL? gfl}UC$gEv4Hy(I2U2g4yhv^K-GkAUccYBz44dFj~t^fc4 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/phycon/models/block/interface_side.json b/src/main/resources/assets/phycon/models/block/interface_side.json index 3adc96d..479b753 100644 --- a/src/main/resources/assets/phycon/models/block/interface_side.json +++ b/src/main/resources/assets/phycon/models/block/interface_side.json @@ -1,19 +1,22 @@ { "parent": "block/block", "textures": { - "cable": "phycon:block/cable_straight" + "cable": "phycon:block/cable_straight", + "particle": "#front", + "back": "phycon:block/interface_back", + "front": "phycon:block/interface_front" }, "elements": [ { "from": [2, 0, 2], "to": [14, 2, 14], "faces": { - "down": { "texture": "phycon:block/interface_front" }, - "up": { "texture": "phycon:block/interface_back" }, - "north": { "texture": "phycon:block/interface_side" }, - "south": { "texture": "phycon:block/interface_side" }, - "west": { "texture": "phycon:block/interface_side" }, - "east": { "texture": "phycon:block/interface_side" } + "down": { "texture": "#front" }, + "up": { "texture": "#back" }, + "north": { "texture": "#back" }, + "south": { "texture": "#back" }, + "west": { "texture": "#back" }, + "east": { "texture": "#back" } } }, { diff --git a/src/main/resources/assets/phycon/models/item/network_interface.json b/src/main/resources/assets/phycon/models/item/network_interface.json index 80055f0..eed862a 100644 --- a/src/main/resources/assets/phycon/models/item/network_interface.json +++ b/src/main/resources/assets/phycon/models/item/network_interface.json @@ -2,53 +2,27 @@ "parent": "block/block", "display": { "firstperson_righthand": { - "rotation": [0, 215, 0], - "translation": [0, 0, 0], - "scale": [0.4, 0.4, 0.4] - }, - "thirdperson_righthand": { - "rotation": [75, 215, 0], - "translation": [0, -2.5, 0], - "scale": [0.375, 0.375, 0.375] + "rotation": [ 0, 215, 0 ], + "translation": [ 3, 0, -3 ], + "scale": [ 0.40, 0.40, 0.40 ] } }, + "textures": { + "front": "phycon:block/interface_front", + "back": "phycon:block/switch" + }, "elements": [ { - "_comment": "cable center", - "from": [6, 6, 6], - "to": [10, 10, 10], + "from": [14, 2, 2], + "to": [16, 14, 14], "faces": { - "down": { "texture": "phycon:block/cable_center" }, - "up": { "texture": "phycon:block/cable_center" }, - "north": { "texture": "phycon:block/cable_center" }, - "south": { "texture": "phycon:block/cable_center" }, - "west": { "texture": "phycon:block/cable_center" }, - "east": { "texture": "phycon:block/cable_center" } - } - }, - { - "_comment": "interface side", - "from": [2, 2, 14], - "to": [14, 14, 16], - "faces": { - "down": { "texture": "phycon:block/interface_side" }, - "up": { "texture": "phycon:block/interface_side" }, - "north": { "texture": "phycon:block/interface_front" }, - "south": { "texture": "phycon:block/interface_back" }, - "west": { "texture": "phycon:block/interface_side" }, - "east": { "texture": "phycon:block/interface_side" } - } - }, - { - "_comment": "interface middle", - "from": [6, 6, 10], - "to": [10, 10, 14], - "faces": { - "down": { "texture": "phycon:block/cable_side" }, - "up": { "texture": "phycon:block/cable_side" }, - "west": { "texture": "phycon:block/cable_side" }, - "east": { "texture": "phycon:block/cable_side" } + "down": { "texture": "#back" }, + "up": { "texture": "#back" }, + "north": { "texture": "#back" }, + "south": { "texture": "#back" }, + "west": { "texture": "#back" }, + "east": { "texture": "#front" } } } ] -} \ No newline at end of file +} diff --git a/src/main/resources/assets/phycon/textures/block/interface_back.png b/src/main/resources/assets/phycon/textures/block/interface_back.png new file mode 100644 index 0000000000000000000000000000000000000000..2a737c0987336715a4946305b55d0dfe6f81c4d7 GIT binary patch literal 864 zcmV-m1E2hfP)EX>4Tx04R}tkv&MmKpe$iQ>9WW9qb_DkfAzR6cusQDionYs1;guFuC*#ni!H4 z7e~Rh;NZt%)xpJCR|i)?5c~jfb8}L3krMxx6k5c1aNLh~_a1le0HIN3n$%ovd`>)K(glehxvqHp#<}FOz%yfJHZw;YBNj^?taLCdn;P*Xaa`4O$`^7T ztDLtuYtq2V^-JVZ$W;L& z$2>NmL3aJ%fAG6ot2i<4B}I}z_lx6v3<05CpjmgE?_3ASz#eSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{00B5jL_t(I%f*t*PQx$|MNgah(YTF*1VU_(SioPh;2-$G z6tO5O5DIQ$yA`bL#x1Bzyqe7T&fJ_a{P!8f;Qrz9`><$zPv?5h=XI8Eo}QC-@|S4m zJbf3?Q^AUssnQs!vAzeu)P|k&j8BORB{T8YdJVwNc`^q>@uF$)!DY^*P~6N0a^Tbnb8w53p7UR@tSj9b~fe?ZGI#JG(}dk8IxhYV&_ zb=;tHeYWSJEX>4Tx04R}tkv&MmKpe$iQ>9WW9qb_DkfAzR6cusQDionYs1;guFuC*#ni!H4 z7e~Rh;NZt%)xpJCR|i)?5c~jfb8}L3krMxx6k5c1aNLh~_a1le0HIN3n$%ovd`>)K(glehxvqHp#<}FOz%yfJHZw;YBNj^?taLCdn;P*Xaa`4O$`^7T ztDLtuYtq2V^-JVZ$W;L& z$2>NmL3aJ%fAG6ot2i<4B}I}z_lx6v3<05CpjmgE?_3A~z1Nc~SrX02y>eSad^gZEa<4bO1wgWnpw> zWFU8GbZ8()Nlj2!fese{00D7HL_t(I%f*s8PQySHhCe%ACUz1cwj1OCa0P^vOCUN< zKubYMheUeLKu1RbM}Pwa3nWkkNr>&SV>=XKCK&>vWUATz_b>0ke=kdIPELEX?~idV zNi)f2vu)h>qbH4Zegla$}GoF zunfMtzN8TdY@qydS!2e|{-GvQ1cn90+-w9KcRjYdJpiJsBQ9<%{l2_bG7xnafcxi| zP80#~HYxze0IPqxK0kFR2FsmvOnGlFzZprsn6{x^0+oo1X ziejF4RXSL2Cv9;N+J^g0uktakuTDBJeMM$^4O0k@~NS~3fmzf vbM=sf?Jdoy?i8~cJo~3XQnLR7$HSOU=j+kIE{#HR00000NkvXXu0mjfXsU!5 literal 0 HcmV?d00001