From ff9902e96cc3b1fd36300e11e8ac7ebcdc1198ea Mon Sep 17 00:00:00 2001 From: tacigar Date: Wed, 14 Sep 2016 23:07:35 +0900 Subject: [PATCH] [UPDATE] Update active core writer's front --- maidroid_tool/core_writer.lua | 22 +++++++++++++++++- ...maidroid_tool_core_writer_front_active.png | Bin 0 -> 384 bytes ...maidroid_tool_core_writer_front_active.xcf | Bin 0 -> 2447 bytes 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 maidroid_tool/textures/maidroid_tool_core_writer_front_active.png create mode 100644 maidroid_tool/textures/maidroid_tool_core_writer_front_active.xcf diff --git a/maidroid_tool/core_writer.lua b/maidroid_tool/core_writer.lua index 0d27ba1..43c94a2 100644 --- a/maidroid_tool/core_writer.lua +++ b/maidroid_tool/core_writer.lua @@ -17,6 +17,13 @@ }, } + local selection_box = { + type = "fixed", + fixed = { + {-0.4375, -0.5, -0.4375, 0.4375, 0.25, 0.4375}, + }, + } + -- can_dig is a common callback for the core writer. local function can_dig(pos, player) local meta = minetest.get_meta(pos) @@ -101,6 +108,7 @@ is_ground_content = false, sounds = default.node_sound_stone_defaults(), node_box = node_box, + selection_box = selection_box, tiles = tiles, can_dig = can_dig, on_construct = on_construct, @@ -119,7 +127,17 @@ "maidroid_tool_core_writer_bottom.png", "maidroid_tool_core_writer_right.png", "maidroid_tool_core_writer_right.png^[transformFX", - "maidroid_tool_core_writer_front.png^[transformFX", + { + backface_culling = false, + image = "maidroid_tool_core_writer_front_active.png^[transformFX", + + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 1.5, + }, + }, { backface_culling = false, image = "maidroid_tool_core_writer_front_active.png", @@ -141,6 +159,7 @@ end minetest.register_node("maidroid_tool:core_writer_active", { + description = "test", drawtype = "nodebox", paramtype = "light", paramtype2 = "facedir", @@ -148,6 +167,7 @@ is_ground_content = false, sounds = default.node_sound_stone_defaults(), node_box = node_box, + selection_box = selection_box, tiles = tiles, can_dig = can_dig, allow_metadata_inventory_put = allow_metadata_inventory_put, diff --git a/maidroid_tool/textures/maidroid_tool_core_writer_front_active.png b/maidroid_tool/textures/maidroid_tool_core_writer_front_active.png new file mode 100644 index 0000000000000000000000000000000000000000..c5815b7dc1d3646e7c092325114c6d10d98486d7 GIT binary patch literal 384 zcmeAS@N?(olHy`uVBq!ia0vp^0zmA*!3HFSYrjteQfx`y?k)`fL2$v|<&%LToCO|{ z#S9GG!XV7ZFl&wkP>{XE)7O>#0Vf}?mGRPl9Wg*5+02lL66gHf+|;}hAeVu`xhOTU zBsE2$JhLQ2!QIn0AVn{g9Vq_9)5S3);_%xk-h9mlJTAvW&$Vh5HOVz}ELOB|o_e;pTjTu@5H0E|Yaa7s}EWYw4Rq^_T6AzQ*7!KH+cg;U& zx&5i*uWS7q9;(=61T|~PEvcPwm^oAHY2&8{Pi!m>u>lzll^^PDDvpDhUl?A79BuTK R=mG^GgQu&X%Q~loCIG{?l~w=% literal 0 HcmV?d00001 diff --git a/maidroid_tool/textures/maidroid_tool_core_writer_front_active.xcf b/maidroid_tool/textures/maidroid_tool_core_writer_front_active.xcf new file mode 100644 index 0000000000000000000000000000000000000000..dcb61b096d63e22716b730b7393109789d425db6 GIT binary patch literal 2447 zcmdT^J&)5s5S?`b32`Eh&x&HJQ?3ZQ`v+(#P83LV)H%oYSxVwlY{aEIi3*8=mexN2 zehYtr0@2f=EN`4$+i-E>lSsiRlYKM0v+rrf+Ax}3$V)GfK{WLVb^w3I0Co>91pXet zyXqqmJM1C64Zj6{Y%rgDg!89Z2O+K8w4h;J5X?i>L8I4)bNS2+zjy_~~(O8^DR#Izs8$ zhElsP>j9TuCKqEbnuqelav{0glr*`~n|YMVXzrc+3D?I#koajKkgKn!)|o#`xevy~ zXN$1f`EW-&Ki+-#{^<+vI{XK_4d=;dc-LS)ddFZa^rV7&73@}Uzk&x9d>5GSwblV( zJ~sPRSS?67`8Ne%W#g=~t(-`)>%IjT4Y~e zXBpWave}N9tMWVY8&~S8dj;emXOXK~+6B`gK>$Gj);6saK0yco$ORCw0D=Ipmz--U z+hVRV0&t_D#kfiY0pzM-bNW(2(FvpAdb}TcqoAOxjhoVo#`FJahYwDk|Be^}{{8$* z&UFX2#Z5bKv-umwVgR-Ae(1r=j0Jsd+?2lg{J;G*{~hsO=3jEIJFqQo+JT$R-!K*f vsEzkS4_;<0=xgJq^q4>4d8d}f^Q-avYJPr^7}UB$uExVzI2!oBUm)l=C9&={ literal 0 HcmV?d00001