From: PilzAdam Date: Sun, 25 Nov 2012 13:18:06 +0000 (+0100) Subject: Add animation for fire X-Git-Tag: 0.4.4~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=24939c299b07507c148ddead09a52ae122120c25;p=oweals%2Fminetest_game.git Add animation for fire --- diff --git a/mods/fire/README.txt b/mods/fire/README.txt index 564d4a2a..fdbce15f 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 846a2d34..3480fcb3 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 00000000..f0444707 Binary files /dev/null and b/mods/fire/textures/fire_basic_flame_animated.png differ