Use animation for new_style_water
authorPilzAdam <PilzAdam@gmx.de>
Sat, 9 Feb 2013 20:14:37 +0000 (21:14 +0100)
committerPilzAdam <pilzadam@minetest.net>
Sun, 17 Mar 2013 15:51:36 +0000 (16:51 +0100)
mods/default/init.lua

index 53bd66b2594b264a96ceea9b13239c11b6ff35fe..b0329413104dea5e391258ef5c1da463c06c072a 100644 (file)
@@ -1146,7 +1146,11 @@ minetest.register_node("default:water_source", {
        },
        special_tiles = {
                -- New-style water source material (mostly unused)
-               {name="default_water.png", backface_culling=false},
+               {
+                       name="default_water_source_animated.png",
+                       animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0},
+                       backface_culling = false,
+               }
        },
        alpha = WATER_ALPHA,
        paramtype = "light",
@@ -1205,7 +1209,11 @@ minetest.register_node("default:lava_source", {
        },
        special_tiles = {
                -- New-style lava source material (mostly unused)
-               {name="default_lava.png", backface_culling=false},
+               {
+                       name="default_lava_source_animated.png",
+                       animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0},
+                       backface_culling = false,
+               }
        },
        paramtype = "light",
        light_source = LIGHT_MAX - 1,