From 9e3dbe86e8d87fce50801a7c9ae697d12a4eea04 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Wed, 22 Apr 2015 21:34:56 +0200 Subject: [PATCH] Added animated texture for '?' nodes - Added eventobjects_surprise_node_animated.jpg by @Ataron - Added eventobjects_surprise_node_top.jpg - Added animation code into init.lua --- mods/eventobjects/init.lua | 19 +++++++++++++++--- .../eventobjects_surprise_node_animated.png | Bin 0 -> 857 bytes .../eventobjects_surprise_node_top.png | Bin 0 -> 194 bytes 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 mods/eventobjects/textures/eventobjects_surprise_node_animated.png create mode 100644 mods/eventobjects/textures/eventobjects_surprise_node_top.png diff --git a/mods/eventobjects/init.lua b/mods/eventobjects/init.lua index 1bb75b24..9c57b131 100644 --- a/mods/eventobjects/init.lua +++ b/mods/eventobjects/init.lua @@ -15,9 +15,22 @@ minetest.register_tool("eventobjects:spleef_shovel", { minetest.register_node("eventobjects:surprise_node", { description = "'?' block", - tiles = {"eventobjects_surprise_node.png"}, - inventory_image = "eventobjects_surprise_node.png", - wield_image = "eventobjects_surprise_node.png", + inventory_image = minetest.inventorycube("eventobjects_surprise_node.png"), + tiles = { + "eventobjects_surprise_node_top.png", "eventobjects_surprise_node_top.png", {name = "eventobjects_surprise_node_animated.png", animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.5}} + }, + special_tiles = { + { + image = "blocmario.png", + backface_culling=false, + animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6} + }, + { + image = "blocmario.png", + backface_culling=true, + animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6} + } + }, groups = {oddly_breakable_by_hand = 2}, on_construct = function(pos) local meta = minetest.get_meta(pos) diff --git a/mods/eventobjects/textures/eventobjects_surprise_node_animated.png b/mods/eventobjects/textures/eventobjects_surprise_node_animated.png new file mode 100644 index 0000000000000000000000000000000000000000..bfb4d5bb024f9921fc67f34a0109a97c25b52c78 GIT binary patch literal 857 zcmV-f1E&0mP)EK|00009a7bBm000XU z000XU0RWnu7ytkO2XskIMF-ym77Yk0wDfvZ0000TX;fHrLvL+uWo~o;00000Lvm$d zbY)~9cWHEJAV*0}P-HG;2LJ#9&q+ixE_LF zSK_ZYe$0$8657vef^Uy|cm~HMA%yVt%?G|>ZrTjeK_B$BhBFf$^=3BpO!Pj zgg&jzFhSU=r-Mf{kX{8et-d@!3MxnqO0C{sOd1oe!UKc}g7!ZxXOs#3S{Y@6SSo)W zJTigwDj;d~=Rp&PQewgwG3A(WB_7n6AWZ+$az>c2xYb3{ifkag3bnMx@Sur9(U>q! zOeqsK;z2}vUSk6N?o7+M#)N-hb!%xwOCY@prL@NJpov4tF=4Eja;MCYWn5wuns~O3H-sVtTdm)!r9MOc3VoIVRjf_?FoX4yKlmSqZ2I+b@0H$1WE7CGGQUBYh{9K6|zMf?+?5V#ci_M@WA6xcH@C%H6+~+ zV3{E3ImB*0(QS1F+2*Lu06B*UHIfS`t|Gb}3UUsyub8aQ#Z7n+b9(|vJ=E<$Ru6Ah zmu14d=Yr}`*czBuL2aZiN3Nk1+>duF6WWQXbT)Z+fAC5H{a&Fs1B*{keIhEV`BoP` zat%2Y3ljv{<`~0+CJx2IgtlU0n6T^rjTRaWNZ@ eFf*HpF(bo=c+OovJ*TFE%=UEkb6Mw<&;$Upw>1C& literal 0 HcmV?d00001