Animated torches
authorPerttu Ahola <celeron55@gmail.com>
Sun, 2 Sep 2012 20:58:21 +0000 (23:58 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 2 Sep 2012 21:22:06 +0000 (00:22 +0300)
mods/default/README.txt
mods/default/init.lua
mods/default/textures/default_torch_animated.png [new file with mode: 0644]
mods/default/textures/default_torch_on_ceiling_animated.png [new file with mode: 0644]
mods/default/textures/default_torch_on_floor.png
mods/default/textures/default_torch_on_floor_animated.png [new file with mode: 0644]

index 22dc14dab48886220df291132b94ef1c7843d012..23e6aad64c09199ed53a43829e5aa911a88abe28 100644 (file)
@@ -61,4 +61,10 @@ Originating from G4JC's Almost MC Texture Pack:
   default_torch.png
   default_torch_on_ceiling.png
   default_torch_on_floor.png
-  
+
+VanessaE's animated torches (WTFPL):
+  default_torch_animated.png
+  default_torch_on_ceiling_animated.png
+  default_torch_on_floor_animated.png
+  default_torch_on_floor.png
+
index c2927e72320a4f8893e193e92d4946116c88c792..2dbb8f513e3f2fbb13aa6e5442d5ced4fbeb6288 100644 (file)
@@ -1098,7 +1098,12 @@ minetest.register_node("default:lava_source", {
 minetest.register_node("default:torch", {
        description = "Torch",
        drawtype = "torchlike",
-       tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
+       --tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
+       tiles = {
+               {name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
+               {name="default_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
+               {name="default_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
+       },
        inventory_image = "default_torch_on_floor.png",
        wield_image = "default_torch_on_floor.png",
        paramtype = "light",
diff --git a/mods/default/textures/default_torch_animated.png b/mods/default/textures/default_torch_animated.png
new file mode 100644 (file)
index 0000000..ca1668c
Binary files /dev/null and b/mods/default/textures/default_torch_animated.png differ
diff --git a/mods/default/textures/default_torch_on_ceiling_animated.png b/mods/default/textures/default_torch_on_ceiling_animated.png
new file mode 100644 (file)
index 0000000..b101561
Binary files /dev/null and b/mods/default/textures/default_torch_on_ceiling_animated.png differ
index 0b2195fd9d60c0d6cf84dd39289673524b1d3fea..925a59af960eb65250a99618fc383d636643f8b7 100644 (file)
Binary files a/mods/default/textures/default_torch_on_floor.png and b/mods/default/textures/default_torch_on_floor.png differ
diff --git a/mods/default/textures/default_torch_on_floor_animated.png b/mods/default/textures/default_torch_on_floor_animated.png
new file mode 100644 (file)
index 0000000..0b55818
Binary files /dev/null and b/mods/default/textures/default_torch_on_floor_animated.png differ