From 72f08d161162ba7a88701cfd234fcc875c99d2c1 Mon Sep 17 00:00:00 2001 From: tacigar Date: Wed, 14 Sep 2016 17:34:16 +0900 Subject: [PATCH] [UPDATE] Update something --- maidroid_tool/core_writer.lua | 41 +++++++++++++++--- .../textures/maidroid_tool_core_right.png | Bin 0 -> 676 bytes .../textures/maidroid_tool_core_right.xcf | Bin 0 -> 1429 bytes .../textures/maidroid_tool_core_top.png | Bin 0 -> 996 bytes .../textures/maidroid_tool_core_top.xcf | Bin 0 -> 1703 bytes 5 files changed, 34 insertions(+), 7 deletions(-) create mode 100644 maidroid_tool/textures/maidroid_tool_core_right.png create mode 100644 maidroid_tool/textures/maidroid_tool_core_right.xcf create mode 100644 maidroid_tool/textures/maidroid_tool_core_top.png create mode 100644 maidroid_tool/textures/maidroid_tool_core_top.xcf diff --git a/maidroid_tool/core_writer.lua b/maidroid_tool/core_writer.lua index 0bc9aef..cfbb64c 100644 --- a/maidroid_tool/core_writer.lua +++ b/maidroid_tool/core_writer.lua @@ -41,21 +41,48 @@ end) (); -- register a definition of a core entity. (function() - minetest.register_node("maidroid_tool:core_node", { - tiles = {"maidroid_core_empty.png"}, + local node_box = { + type = "fixed", + fixed = { + { -0.5, -0.5, -0.125, 0.5, -0.4375, 0.125}, + { -0.125, -0.5, -0.5, 0.125, -0.4375, 0.5}, + { -0.25, -0.5, -0.4375, 0.25, -0.4375, 0.4375}, + { -0.375, -0.5, -0.375, 0.375, -0.4375, 0.375}, + {-0.4375, -0.5, -0.25, 0.4375, -0.4375, 0.25}, + }, + } + local tiles = { + "maidroid_tool_core_top.png", + "maidroid_tool_core_top.png", + "maidroid_tool_core_right.png", + "maidroid_tool_core_right.png", + "maidroid_tool_core_right.png", + "maidroid_tool_core_right.png", + } + + minetest.register_node("maidroid_tool:core_node", { + drawtype = "nodebox", + tiles = tiles, + node_box = node_box, + paramtype = "light", + paramtype2 = "facedir", }) - minetest.register_entity("maidroid_tool:core_entity", { - physical = false, - visual = "wielditem", - visual_size = {x = 0.5, y = 0.5}, - nodename = "maidroid_tool:core_node", + physical = false, + visual = "wielditem", + visual_size = {x = 0.5, y = 0.5}, + collisionbox = {0, 0, 0, 0, 0, 0}, on_activate = function(self, staticdata) self.object:set_properties{textures = {"maidroid_tool:core_node"}} end, + + on_step = function(self, dtime) + local yaw = self.object:getyaw() + self.object:setyaw(yaw + 0.1) + end, }) minetest.register_on_punchnode(function(pos, node, puncher, pointed_thing) diff --git a/maidroid_tool/textures/maidroid_tool_core_right.png b/maidroid_tool/textures/maidroid_tool_core_right.png new file mode 100644 index 0000000000000000000000000000000000000000..dc20489e873c24bb076550182bfae57784d524c2 GIT binary patch literal 676 zcmV;V0$crwP)06D#x|O$q=203B&m zSad^gZEa<4bN~PV002XBWnpw>WFU8GbZ8()Nlj2>E@cM*00Ia}L_t(I%T1HZavM1e zMGwI4wqwa!q{{#QS;-$HRmqek+3E)g;?AOF&0xa?0Rp(^5=s2}{hO2siR<->B<6YM zcKbvU(HfG-uKi4*Orm#85+E`LhGlo5dU_jg`jUx{^NJU&DAB$TXcMd~{yB@uU| znLEk|E}uKrFU*p#-i15F+8OS`A#u4}I37<#Z@4?-IP(9fwbAqLgGOV}fSHk*xcj{m zxEliMwoyvK%`hvNi?vpq4!83SY&U?r(^|vKa5q{D3@|g${>>QpZKI+QpaN=JvI*!J>bP2cs0000< KMNUMnLSTYCrYc|n literal 0 HcmV?d00001 diff --git a/maidroid_tool/textures/maidroid_tool_core_right.xcf b/maidroid_tool/textures/maidroid_tool_core_right.xcf new file mode 100644 index 0000000000000000000000000000000000000000..60f0b2c6d4bbcc715e6b66d6506d11e963d49ea1 GIT binary patch literal 1429 zcmZ`%OHUI~6rPR*5GCMqCBz`IDThlN@~R0p1J3qdtTpnPthx{IqUg?Q}9Zzg*BTB>o*{o z3_iCYlMh~777NyG$QZ#jBrh-t#TL1g~)jzYIYpQ=MI}raCt3-iSUm zqF)=)uaD@{Bl-+<&O2NaP`Dni(Wyu*mL1O&4#T$LYj32Nsm*@L=eP9Bs52V)q{!f> zh_t~+K#Mn@d`T40NrVqc5|To~RY0;A#lFhGXd;9dI&YtGmd@|^ptPY38EMAMA(EZS zKpBN-u1Km!G$4(X8IoNUMr6}>F`&r6Xz&ju!UO6UqKN;foFN}4C5<2v;-q_App6I} zqK@ck>KYA40S`^%^sS42$R}fvSduiKTRS`ZpAL4v?zXm?tYd`PfUD3vCmI`9t?@Sx=ig<1k=Bw!Z3q*uU47gBVzWax_dLrG3$ zr|<{d4~%%V1Hj)+;D2oHeAx3-_=qqC)80dln07RVW=!AqQNCyB2Kmw+Km;_Wu zhXTbBOW;;f$Yg>`#(AW4fX>67)?G{^rUed|OAH@>k|`Ky(wGEHf#fMT01aPS`&-TJ L&AsPV*P5X}U1l~8 literal 0 HcmV?d00001 diff --git a/maidroid_tool/textures/maidroid_tool_core_top.png b/maidroid_tool/textures/maidroid_tool_core_top.png new file mode 100644 index 0000000000000000000000000000000000000000..71a5f375f431ac0da25a6644420d699bfeafe549 GIT binary patch literal 996 zcmV05f+|7W0?Q|03B&m zSad^gZEa<4bN~PV002XBWnpw>WFU8GbZ8()Nlj2>E@cM*00T%#L_t(I%Wae2Yg=^y z#XsMh-!q{|zF2)Lq3jmGMNlgN>Ztm zdanBgE?=3XsVRa|E=x;G=(>(6g9LZhvwZUpy1Tpi`QonxgTh?PZtM|@i;Jw>%BYp? zEI}cusqwM7QKr7JmOnGA>~0M6*YZswkqF^%m_ng|Wmy<9fL*jYv_heP=JPN=y}*Ob z5%PHlGbGuz3Vd?z1Nu&#q_d*~+bWUGu9h6Hm&Az#cEQ5u^KFY?rlyntMn^|E@=_1C z*R%KoCUe)W($?8dtxxCobee-t$JKiFmMDoTR?cR}&Uyj?9nC5h={?!UlLz*5ePJFW z6y)7^`gtZE!`d#Ij_dAkd$^6a-|7>oxp_oIBN~nJ<{Kv{l}dO`)1>NFXldO|bBm%{ zt>P-h=H@0r({wi0vo*C1^*PJ7f{!2Ar(t{8+S;P(x&-_hn(MlBMZ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