From 0ab3ca5477cf6f2c8bc3a46598d14476c747b3bc Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 10 Feb 2017 18:30:04 +0100 Subject: [PATCH] Basic command block animation --- mods/redstone/mesecons_commandblock/init.lua | 5 ++--- .../textures/jeija_commandblock_off.png | Bin 513 -> 916 bytes .../textures/jeija_commandblock_on.png | Bin 513 -> 916 bytes 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mods/redstone/mesecons_commandblock/init.lua b/mods/redstone/mesecons_commandblock/init.lua index fb75cdf123..66b2ed4788 100644 --- a/mods/redstone/mesecons_commandblock/init.lua +++ b/mods/redstone/mesecons_commandblock/init.lua @@ -176,8 +176,7 @@ end minetest.register_node("mesecons_commandblock:commandblock_off", { description = "Command Block", - tiles = {"jeija_commandblock_off.png"}, - inventory_image = minetest.inventorycube("jeija_commandblock_off.png"), + tiles = {{name="jeija_commandblock_off.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=2}}}, groups = {mesecon_effector_off=1, not_in_creative_inventory=1, oddly_breakable_by_hand=5}, drop = "", diggable = false, @@ -194,7 +193,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", { }) minetest.register_node("mesecons_commandblock:commandblock_on", { - tiles = {"jeija_commandblock_on.png"}, + tiles = {{name="jeija_commandblock_off.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=2}}}, groups = {mesecon_effector_on=1, not_in_creative_inventory=1, oddly_breakable_by_hand=5}, drop = "", on_blast = function() end, diff --git a/mods/redstone/mesecons_textures/textures/jeija_commandblock_off.png b/mods/redstone/mesecons_textures/textures/jeija_commandblock_off.png index 933a62b415d50a31304f9655bcc4b7ffd3947bf0..46835c89c9e4effebae2afc322e3a9b0127e4a69 100644 GIT binary patch delta 907 zcmV;619bd>1e6Dm7k_{V0ssI2N2bZe?^JG%heMHD!e|WdHyJ5=lfs zRA}Dqn$1g8Q5eS0ztN&qNG-~RkkFS=ZlXnDj?t!#NfNjmkbhc;xEKSGzC>`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