Made spigot animated, so the water actually looks like it's pouring
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 9 Jun 2013 22:37:35 +0000 (18:37 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sun, 9 Jun 2013 22:37:35 +0000 (18:37 -0400)
devices.lua

index 20e3019735be2e4f0e11e66a8e75e971c2afe457..3c8c0038ceb3215ebbd36952dc5f0b8f97ae0fa5 100644 (file)
@@ -340,11 +340,40 @@ minetest.register_node("pipeworks:spigot_pouring", {
        tiles = {
                "pipeworks_spigot_sides.png",
                "default_water.png^pipeworks_spigot_bottom2.png",
-               "default_water.png^pipeworks_spigot_sides2.png",
-               "default_water.png^pipeworks_spigot_sides2.png",
-               "default_water.png^pipeworks_spigot_sides2.png",
-               "default_water.png^pipeworks_spigot_sides2.png"
+               { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png",
+                       animation = {
+                               type = "vertical_frames",
+                               aspect_w=16,
+                               aspect_h=16,
+                               length=0.8
+                       }
+               },
+               { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png",
+                       animation = {
+                               type = "vertical_frames",
+                               aspect_w=16,
+                               aspect_h=16,
+                               length=0.8
+                       }
+               },
+               { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png",
+                       animation = {
+                               type = "vertical_frames",
+                               aspect_w=16,
+                               aspect_h=16,
+                               length=0.8
+                       }
+               },
+               { name = "default_water_flowing_animated.png^pipeworks_spigot_sides2.png",
+                       animation = {
+                               type = "vertical_frames",
+                               aspect_w=16,
+                               aspect_h=16,
+                               length=0.8
+                       }
+               },
        },
+
        use_texture_alpha = true,
        sunlight_propagates = true,
        paramtype = "light",