From 24939c299b07507c148ddead09a52ae122120c25 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Sun, 25 Nov 2012 14:18:06 +0100 Subject: [PATCH] Add animation for fire --- mods/fire/README.txt | 2 ++ mods/fire/init.lua | 8 ++++++-- mods/fire/textures/fire_basic_flame_animated.png | Bin 0 -> 2250 bytes 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 mods/fire/textures/fire_basic_flame_animated.png diff --git a/mods/fire/README.txt b/mods/fire/README.txt index 564d4a2..fdbce15 100644 --- a/mods/fire/README.txt +++ b/mods/fire/README.txt @@ -28,3 +28,5 @@ fire_small.ogg sampled from: fire_large.ogg sampled from: http://www.freesound.org/people/Dynamicell/sounds/17548/ +fire_basic_flame_animated.png: + Muadtralk diff --git a/mods/fire/init.lua b/mods/fire/init.lua index 846a2d3..3480fcb 100644 --- a/mods/fire/init.lua +++ b/mods/fire/init.lua @@ -2,8 +2,12 @@ minetest.register_node("fire:basic_flame", { description = "Fire", - drawtype = "glasslike", - tiles = {"fire_basic_flame.png"}, + drawtype = "plantlike", + tiles = {{ + name="fire_basic_flame_animated.png", + animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=1}, + }}, + inventory_image = "fire_basic_flame.png", light_source = 14, groups = {igniter=2,dig_immediate=3}, drop = '', diff --git a/mods/fire/textures/fire_basic_flame_animated.png b/mods/fire/textures/fire_basic_flame_animated.png new file mode 100644 index 0000000000000000000000000000000000000000..f04447074de71688524bc72ed8a63b2996fe5b11 GIT binary patch literal 2250 zcmV;*2sQVKP)uX|20#*OnA3oCcz5bnZe&=!T?{mKA0G}gmEHU%js;|=HcH^W{d#ZF< z`Klk-O<9JuWx$a|rCGKwS#^AcRWEF(qjJ^@Zlie6RH#R@deJ?ohNo16=RF4Q4{7n% zaF87xjx(ju=7EHGo~u{Mrelp3{yn?wZJooych9wP{_|>ns-9(f(Nb&X=e}Ao<A+NEhNd-$WK{~6+AqMld=A*7Eewk|CKeQ7 zux0}AsSrygvEaAg#@IC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